]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] adv7180: Add g_tvnorms operation
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sat, 2 Apr 2016 17:42:20 +0000 (14:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 20 Apr 2016 19:07:27 +0000 (16:07 -0300)
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>
drivers/media/i2c/adv7180.c

index 80ded7007e552d8a9e76d4899048822c18ddbc8f..51a92b3b20cc564dbc4c41fef71b8b75d35babdd 100644 (file)
@@ -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,
 };