media: ti-vpe: csc: rgb-to-yuv HD full range coeff are wrong
authorBenoit Parrot <bparrot@ti.com>
Mon, 7 Oct 2019 15:10:06 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 16:52:44 +0000 (13:52 -0300)
The RGB to YUV HD full range coefficients did not match the TRM values
and appeared to be a cut-n-paste from the YUV to RGB section.

Replace the entries with the values from the TRM.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/ti-vpe/csc.c

index eda2a5985da760cccddf888d7720577c9a5082c1..f0c45d187b5f9eb013c7d0ab975f4fad8a26f5a7 100644 (file)
@@ -81,8 +81,8 @@ static struct colorspace_coeffs colorspace_coeffs[4] = {
                },
                {
                        /* HDTV */
-                       0x04A8, 0x0000, 0x072C, 0x04A8, 0x1F26, 0x1DDE,
-                       0x04A8, 0x0873, 0x0000, 0x0C20, 0x0134, 0x0B7C,
+                       0x00bb, 0x0275, 0x003f, 0x1f99, 0x1ea5, 0x01c2,
+                       0x01c2, 0x1e67, 0x1fd7, 0x0040, 0x0200, 0x0200,
                },
        },
 };