media: add get free handle cmd [4/9]
authorTao Guo <tao.guo@amlogic.com>
Sun, 4 Nov 2018 03:22:49 +0000 (03:22 +0000)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 7 Dec 2018 10:42:16 +0000 (02:42 -0800)
PD#SWPL-1081

Problem:
Need get freed handle for DRM frame mode

Solution:
Add ioctl cmd to get freed handle

Verify:
P212

Change-Id: Ic0ce64061e334fdea5580d9f92b3e0b58caa88eb
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
include/linux/amlogic/media/utils/amstream.h

index 3dfe61d64c7e1da6bc5ecdd3fa56a64ae1a31047..d4e99764b8b92fd958de401121076731a4865335 100644 (file)
@@ -233,6 +233,7 @@ enum FRAME_BASE_VIDEO_PATH {
        FRAME_BASE_PATH_AMVIDEO,
        FRAME_BASE_PATH_AMVIDEO2,
        FRAME_BASE_PATH_V4L_VIDEO,
+       FRAME_BASE_PATH_TUNNEL_MODE,
        FRAME_BASE_PATH_MAX
 };
 
@@ -578,6 +579,7 @@ struct userdata_param_t {
 #define AMSTREAM_GET_VIDEO_AVG_BITRATE_BPS 0x811
 #define AMSTREAM_GET_ION_ID 0x812
 #define AMSTREAM_GET_NEED_MORE_DATA 0x813
+#define AMSTREAM_GET_FREED_HANDLE 0x814
 /*  video get cmd */
 #define AMSTREAM_GET_OMX_VPTS 0x860
 #define AMSTREAM_GET_TRICK_STAT 0x861