]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] vivid: Set color_enc on HSV formats
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Tue, 15 Nov 2016 12:06:25 +0000 (10:06 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 29 Nov 2016 14:12:32 +0000 (12:12 -0200)
HSV formats were missing the color encoding, which leads to an invalid
ycbcr_enc value during get_fmt and try_fmt.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-vid-common.c

index 3d003fb913ed1cce92c731f675015b1d8feaabcc..5fc010f6ce67c8bd12e312b2cb14f93eacaad1d5 100644 (file)
@@ -447,6 +447,7 @@ struct vivid_fmt vivid_formats[] = {
        },
        {
                .fourcc   = V4L2_PIX_FMT_HSV24, /* HSV 24bits */
+               .color_enc = TGP_COLOR_ENC_HSV,
                .vdownsampling = { 1 },
                .bit_depth = { 24 },
                .planes   = 1,
@@ -454,6 +455,7 @@ struct vivid_fmt vivid_formats[] = {
        },
        {
                .fourcc   = V4L2_PIX_FMT_HSV32, /* HSV 32bits */
+               .color_enc = TGP_COLOR_ENC_HSV,
                .vdownsampling = { 1 },
                .bit_depth = { 32 },
                .planes   = 1,