From: Tao Guo Date: Sun, 4 Nov 2018 03:22:49 +0000 (+0000) Subject: media: add get free handle cmd [4/9] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=593d8a8ec64e4a95bf612fe89dca3bb5bb4dbd53;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git media: add get free handle cmd [4/9] 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 --- diff --git a/include/linux/amlogic/media/utils/amstream.h b/include/linux/amlogic/media/utils/amstream.h index 3dfe61d64c7e..d4e99764b8b9 100644 --- a/include/linux/amlogic/media/utils/amstream.h +++ b/include/linux/amlogic/media/utils/amstream.h @@ -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