mediasync: Add syncmode settings and get. [1/1]
authoryunmin.chen <yunmin.chen@amlogic.com>
Wed, 18 Nov 2020 07:40:18 +0000 (15:40 +0800)
committerYunmin Chen <yunmin.chen@amlogic.com>
Wed, 18 Nov 2020 13:21:23 +0000 (05:21 -0800)
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 <yunmin.chen@amlogic.com>
drivers/media_sync/media_sync_dev.c

index c2f224f13c8a6dfb6be402fcdf804eddddbffdee..dbcc8120a921d78d1f9a14cb26fae0f12d52933a 100644 (file)
@@ -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;