From: yunmin.chen Date: Wed, 18 Nov 2020 07:40:18 +0000 (+0800) Subject: mediasync: Add syncmode settings and get. [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebcf1f2e8e7b02296e6065c4c880231b30be1229;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git 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 --- 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;