mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
media: vpif_capture: Use pad variant of dv timing subdev calls
Use the pad variant for all (s|g|query)_dv_timings subdev calls, which includes a pad argument. Signed-off-by: Paweł Anikiel <panikiel@google.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
e44749a05d
commit
785a04bb3f
@@ -1132,7 +1132,7 @@ vpif_query_dv_timings(struct file *file, void *priv,
|
||||
if (input.capabilities != V4L2_IN_CAP_DV_TIMINGS)
|
||||
return -ENODATA;
|
||||
|
||||
ret = v4l2_subdev_call(ch->sd, video, query_dv_timings, timings);
|
||||
ret = v4l2_subdev_call(ch->sd, pad, query_dv_timings, 0, timings);
|
||||
if (ret == -ENOIOCTLCMD || ret == -ENODEV)
|
||||
return -ENODATA;
|
||||
|
||||
@@ -1177,7 +1177,7 @@ static int vpif_s_dv_timings(struct file *file, void *priv,
|
||||
return -EBUSY;
|
||||
|
||||
/* Configure subdevice timings, if any */
|
||||
ret = v4l2_subdev_call(ch->sd, video, s_dv_timings, timings);
|
||||
ret = v4l2_subdev_call(ch->sd, pad, s_dv_timings, 0, timings);
|
||||
if (ret == -ENOIOCTLCMD || ret == -ENODEV)
|
||||
ret = 0;
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user