From: Hans Verkuil Date: Sat, 5 Jul 2014 08:51:55 +0000 (-0300) Subject: [media] hdpvr: fix reported HDTV colorspace X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93e6a855fff6bbf95486975e193c13faba47775d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [media] hdpvr: fix reported HDTV colorspace The colorspace for HDTV is REC709, not SMPTE240M. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/hdpvr/hdpvr-video.c b/drivers/media/usb/hdpvr/hdpvr-video.c index 4b7653fd4b0b..62f289a1cd57 100644 --- a/drivers/media/usb/hdpvr/hdpvr-video.c +++ b/drivers/media/usb/hdpvr/hdpvr-video.c @@ -1028,7 +1028,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *_fh, f->fmt.pix.field = V4L2_FIELD_INTERLACED; } else { /* HDTV formats */ - f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE240M; + f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; f->fmt.pix.field = V4L2_FIELD_NONE; } return 0;