Commit 6ff7b7af authored by Ulrich Hecht's avatar Ulrich Hecht Committed by Mauro Carvalho Chehab

[media] media: rcar-vin: use sink pad index for DV timings

Signed-off-by: default avatarUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 8a2192be
...@@ -550,7 +550,7 @@ static int rvin_enum_dv_timings(struct file *file, void *priv_fh, ...@@ -550,7 +550,7 @@ static int rvin_enum_dv_timings(struct file *file, void *priv_fh,
int pad, ret; int pad, ret;
pad = timings->pad; pad = timings->pad;
timings->pad = vin->src_pad_idx; timings->pad = vin->sink_pad_idx;
ret = v4l2_subdev_call(sd, pad, enum_dv_timings, timings); ret = v4l2_subdev_call(sd, pad, enum_dv_timings, timings);
...@@ -604,7 +604,7 @@ static int rvin_dv_timings_cap(struct file *file, void *priv_fh, ...@@ -604,7 +604,7 @@ static int rvin_dv_timings_cap(struct file *file, void *priv_fh,
int pad, ret; int pad, ret;
pad = cap->pad; pad = cap->pad;
cap->pad = vin->src_pad_idx; cap->pad = vin->sink_pad_idx;
ret = v4l2_subdev_call(sd, pad, dv_timings_cap, cap); ret = v4l2_subdev_call(sd, pad, dv_timings_cap, cap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment