media: usbtv: Use V4L2 defines to select capture resolution
authorHugo Grostabussiat <[email protected]>
Sun, 8 Apr 2018 21:11:58 +0000 (17:11 -0400)
committerMauro Carvalho Chehab <[email protected]>
Fri, 4 May 2018 10:49:26 +0000 (06:49 -0400)
Make use of the V4L2_STD_525_60 and V4L2_STD_625_50 defines to
determine the vertical resolution to use when capturing.

V4L2_STD_525_60 (resp. V4L2_STD_625_50) is the set of standards using
525 (resp. 625) lines per frame, independently of the color encoding.

Signed-off-by: Hugo Grostabussiat <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/usb/usbtv/usbtv-video.c

index 6b0a1017338813b3abb88e7c2141820c5e8760db..29e245083247d21a2f7daa1187aaac91af8ae563 100644 (file)
@@ -54,12 +54,7 @@ static struct usbtv_norm_params norm_params[] = {
                .cap_height = 480,
        },
        {
-               .norm = V4L2_STD_PAL,
-               .cap_width = 720,
-               .cap_height = 576,
-       },
-       {
-               .norm = V4L2_STD_SECAM,
+               .norm = V4L2_STD_625_50,
                .cap_width = 720,
                .cap_height = 576,
        }