summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2017-03-31 15:33:25 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-10 19:41:30 +0200
commitf6f0e2f5d79dc2ff6eb63b890276d4f4284f6d57 (patch)
treebf173a514216794ceba5f24001a1804a52532afd
parent[media] coda: remove redundant call to v4l2_m2m_get_vq (diff)
downloadlinux-f6f0e2f5d79dc2ff6eb63b890276d4f4284f6d57.tar.xz
linux-f6f0e2f5d79dc2ff6eb63b890276d4f4284f6d57.zip
[media] tvp5150: allow get/set_fmt on the video source pad
To let userspace propagate formats downstream in a media controller scenario, the video source pad (now pad 1, DEMOD_PAD_VID_OUT) must allow setting and getting the format. Incidentally, tvp5150_fill_fmt was implemented for this pad, not for the new analog input pad (now pad 0, DEMOD_PAD_IF_INPUT). Fixes: 55606310e77f ("[media] tvp5150: create the expected number of pads") Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/i2c/tvp5150.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index 48646a7f3fb0..abc3b18691d3 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -865,7 +865,7 @@ static int tvp5150_fill_fmt(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *f;
struct tvp5150 *decoder = to_tvp5150(sd);
- if (!format || format->pad)
+ if (!format || (format->pad != DEMOD_PAD_VID_OUT))
return -EINVAL;
f = &format->format;