From: Hugo Grostabussiat Date: Sun, 8 Apr 2018 21:11:58 +0000 (-0400) Subject: media: usbtv: Use V4L2 defines to select capture resolution X-Git-Tag: v5.15~8685^2~331 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c42d2763c0ed7b5f1aff89e2a93487cfc5ec3cb;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index 6b0a1017..29e2450 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, }