projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bb3c33
)
media: tvp5150: add g_std callback
author
Marco Felsch
<m.felsch@pengutronix.de>
Thu, 28 Jun 2018 16:20:49 +0000
(12:20 -0400)
committer
Mauro Carvalho Chehab
<mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 17:32:52 +0000
(13:32 -0400)
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>
drivers/media/i2c/tvp5150.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/tvp5150.c
b/drivers/media/i2c/tvp5150.c
index ad55ee362b0be7acc748679b196a936fb28787cf..28385a1f6b1bcaa770f802ee5f9768e33f19e04d 100644
(file)
--- a/
drivers/media/i2c/tvp5150.c
+++ b/
drivers/media/i2c/tvp5150.c
@@
-761,6
+761,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);
@@
-1375,6
+1384,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,