media: v4l2-core: add support for VIDIOC_G_INPUT ioctl on subdev nodes

Add VIDIOC_G_INPUT ioctl support to get the input status of subdev.

Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I7d4253e058e17db7e2247efab17f639f4f3ef508
This commit is contained in:
Dingxian Wen
2020-08-07 15:12:31 +08:00
committed by Tao Huang
parent bccce4c095
commit b9e155a28b

View File

@@ -495,6 +495,9 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
case VIDIOC_SUBDEV_S_DV_TIMINGS:
return v4l2_subdev_call(sd, video, s_dv_timings, arg);
case VIDIOC_G_INPUT:
return v4l2_subdev_call(sd, video, g_input_status, arg);
case VIDIOC_SUBDEV_G_STD:
return v4l2_subdev_call(sd, video, g_std, arg);