From 69ddf248a98c12fe30373c2633d77b2b8bb81912 Mon Sep 17 00:00:00 2001 From: "shuanglong.wang" Date: Thu, 10 Jan 2019 21:12:12 +0800 Subject: [PATCH] video: omx get first frame toggoled flag [1/2] PD#SWPL-4048 Problem: omx can not detect first frame have toggled Solution: omx get first frame toggoled flag Verify: verify by p212 Change-Id: I632824390287dd0257dca23a009ff8851054f68d Signed-off-by: shuanglong.wang --- drivers/amlogic/media/video_sink/video.c | 3 +++ include/linux/amlogic/media/utils/amstream.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index b0d19ea..28bf8cf 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -7856,6 +7856,9 @@ static long amvideo_ioctl(struct file *file, unsigned int cmd, ulong arg) put_user(video_onoff_state, (u32 __user *)argp); break; } + case AMSTREAM_IOC_GET_FIRST_FRAME_TOGGLED: + put_user(first_frame_toggled, (u32 __user *)argp); + break; case AMSTREAM_IOC_SET_VIDEOPEEK: videopeek = true; diff --git a/include/linux/amlogic/media/utils/amstream.h b/include/linux/amlogic/media/utils/amstream.h index d4e9976..5b44f40 100644 --- a/include/linux/amlogic/media/utils/amstream.h +++ b/include/linux/amlogic/media/utils/amstream.h @@ -176,6 +176,7 @@ #define AMSTREAM_IOC_GET_OMX_VERSION _IOW((_A_M), 0xb1, int) #define AMSTREAM_IOC_GET_OMX_INFO _IOR((_A_M), 0xb2, unsigned int) #define AMSTREAM_IOC_SET_HDR_INFO _IOW((_A_M), 0xb3, int) +#define AMSTREAM_IOC_GET_FIRST_FRAME_TOGGLED _IOR(_A_M, 0xbe, unsigned int) #define AMSTREAM_IOC_SET_VIDEOPEEK _IOW(_A_M, 0xbf, unsigned int) #define AMSTREAM_IOC_GET_TRICK_VPTS _IOR((_A_M), 0xf0, int) -- 2.7.4