From ebcf1f2e8e7b02296e6065c4c880231b30be1229 Mon Sep 17 00:00:00 2001 From: "yunmin.chen" Date: Wed, 18 Nov 2020 15:40:18 +0800 Subject: [PATCH] mediasync: Add syncmode settings and get. [1/1] PD#SWPL-35009 Problem: Failed to set and get syncmode. Solution: Add SET_SYNCMODE and GET_SYNCMODE to mediasync_ioctl. Verify: ah212 Change-Id: I57cb452fe91cff81f97479dd1ade6d6e6025938d Signed-off-by: yunmin.chen --- drivers/media_sync/media_sync_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media_sync/media_sync_dev.c b/drivers/media_sync/media_sync_dev.c index c2f224f..dbcc812 100644 --- a/drivers/media_sync/media_sync_dev.c +++ b/drivers/media_sync/media_sync_dev.c @@ -319,6 +319,8 @@ static long mediasync_compat_ioctl(struct file *file, unsigned int cmd, ulong ar case MEDIASYNC_IOC_GET_SPEED: case MEDIASYNC_IOC_SET_PAUSE: case MEDIASYNC_IOC_GET_PAUSE: + case MEDIASYNC_IOC_SET_SYNCMODE: + case MEDIASYNC_IOC_GET_SYNCMODE: return mediasync_ioctl(file, cmd, arg); default: return -EINVAL; -- 2.20.1