mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 14:05:39 +00:00
media: rcar-vin: 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> Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
e0cb3463b4
commit
e44749a05d
@ -730,7 +730,8 @@ static int rvin_s_dv_timings(struct file *file, void *priv_fh,
|
||||
struct v4l2_subdev *sd = vin_to_source(vin);
|
||||
int ret;
|
||||
|
||||
ret = v4l2_subdev_call(sd, video, s_dv_timings, timings);
|
||||
ret = v4l2_subdev_call(sd, pad, s_dv_timings,
|
||||
vin->parallel.sink_pad, timings);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@ -744,7 +745,8 @@ static int rvin_g_dv_timings(struct file *file, void *priv_fh,
|
||||
struct rvin_dev *vin = video_drvdata(file);
|
||||
struct v4l2_subdev *sd = vin_to_source(vin);
|
||||
|
||||
return v4l2_subdev_call(sd, video, g_dv_timings, timings);
|
||||
return v4l2_subdev_call(sd, pad, g_dv_timings,
|
||||
vin->parallel.sink_pad, timings);
|
||||
}
|
||||
|
||||
static int rvin_query_dv_timings(struct file *file, void *priv_fh,
|
||||
@ -753,7 +755,8 @@ static int rvin_query_dv_timings(struct file *file, void *priv_fh,
|
||||
struct rvin_dev *vin = video_drvdata(file);
|
||||
struct v4l2_subdev *sd = vin_to_source(vin);
|
||||
|
||||
return v4l2_subdev_call(sd, video, query_dv_timings, timings);
|
||||
return v4l2_subdev_call(sd, pad, query_dv_timings,
|
||||
vin->parallel.sink_pad, timings);
|
||||
}
|
||||
|
||||
static int rvin_dv_timings_cap(struct file *file, void *priv_fh,
|
||||
|
Loading…
Reference in New Issue
Block a user