summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorNiklas Söderlund2016-04-02 19:42:20 +0200
committerMauro Carvalho Chehab2016-04-20 21:07:27 +0200
commitbae4c757a5255a149249294dab3a6ab16e5d598b (patch)
treee51168629a4b06e74810279c26fd5664d0d2d0a9 /drivers/media/i2c
parent[media] adv7180: Add cropcap operation (diff)
downloadkernel-qcow2-linux-bae4c757a5255a149249294dab3a6ab16e5d598b.tar.gz
kernel-qcow2-linux-bae4c757a5255a149249294dab3a6ab16e5d598b.tar.xz
kernel-qcow2-linux-bae4c757a5255a149249294dab3a6ab16e5d598b.zip
[media] adv7180: Add g_tvnorms operation
The ADV7180 supports NTSC, PAL and SECAM. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/adv7180.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
index 80ded7007e55..51a92b3b20cc 100644
--- a/drivers/media/i2c/adv7180.c
+++ b/drivers/media/i2c/adv7180.c
@@ -741,6 +741,12 @@ static int adv7180_cropcap(struct v4l2_subdev *sd, struct v4l2_cropcap *cropcap)
return 0;
}
+static int adv7180_g_tvnorms(struct v4l2_subdev *sd, v4l2_std_id *norm)
+{
+ *norm = V4L2_STD_ALL;
+ return 0;
+}
+
static const struct v4l2_subdev_video_ops adv7180_video_ops = {
.s_std = adv7180_s_std,
.g_std = adv7180_g_std,
@@ -749,9 +755,9 @@ static const struct v4l2_subdev_video_ops adv7180_video_ops = {
.s_routing = adv7180_s_routing,
.g_mbus_config = adv7180_g_mbus_config,
.cropcap = adv7180_cropcap,
+ .g_tvnorms = adv7180_g_tvnorms,
};
-
static const struct v4l2_subdev_core_ops adv7180_core_ops = {
.s_power = adv7180_s_power,
};