summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/usbtv/usbtv-video.c
diff options
context:
space:
mode:
authorHugo Grostabussiat <bonstra@bonstra.fr.eu.org>2018-04-08 23:11:58 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-04 12:49:26 +0200
commit8c42d2763c0ed7b5f1aff89e2a93487cfc5ec3cb (patch)
treed995bcd945a49a233c6c366c76a82e2da76ca4be /drivers/media/usb/usbtv/usbtv-video.c
parentmedia: usbtv: Add SECAM support (diff)
downloadlinux-8c42d2763c0ed7b5f1aff89e2a93487cfc5ec3cb.tar.xz
linux-8c42d2763c0ed7b5f1aff89e2a93487cfc5ec3cb.zip
media: usbtv: Use V4L2 defines to select capture resolution
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 <bonstra@bonstra.fr.eu.org> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/usbtv/usbtv-video.c')
-rw-r--r--drivers/media/usb/usbtv/usbtv-video.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c
index 6b0a10173388..29e245083247 100644
--- a/drivers/media/usb/usbtv/usbtv-video.c
+++ b/drivers/media/usb/usbtv/usbtv-video.c
@@ -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,
}