aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2018-06-28 16:20:49 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-31 00:04:33 (GMT)
commit1d06352e18ef502e30837cedfe618298816fb48c (patch)
treed98c07f17e88a9b0e880c938e76bb1b5e37fd878
parenta034e90214b9109382fe675e1c9a85aca54e950d (diff)
media: tvp5150: add g_std callbackold/cs_1d06352e18ef
Add callback to retrieve the current set norm. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/i2c/tvp5150.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index 36bf9b0..7b0d42b 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -755,6 +755,15 @@ static int tvp5150_set_std(struct v4l2_subdev *sd, v4l2_std_id std)
return 0;
}
+static int tvp5150_g_std(struct v4l2_subdev *sd, v4l2_std_id *std)
+{
+ struct tvp5150 *decoder = to_tvp5150(sd);
+
+ *std = decoder->norm;
+
+ return 0;
+}
+
static int tvp5150_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
{
struct tvp5150 *decoder = to_tvp5150(sd);
@@ -1372,6 +1381,7 @@ static const struct v4l2_subdev_tuner_ops tvp5150_tuner_ops = {
static const struct v4l2_subdev_video_ops tvp5150_video_ops = {
.s_std = tvp5150_s_std,
+ .g_std = tvp5150_g_std,
.s_stream = tvp5150_s_stream,
.s_routing = tvp5150_s_routing,
.g_mbus_config = tvp5150_g_mbus_config,

Privacy Policy