diff options
author | Ricardo Ribalda <ricardo.ribalda@gmail.com> | 2016-11-15 10:06:25 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-29 12:12:32 -0200 |
commit | a000f0d3995f622410d433a01e94fbfb45969e27 (patch) | |
tree | d9122a0dfc777ea967c5d5f0e0becf767ca95ddd /drivers/media | |
parent | 94868d612fd917487a6c9a4b08b578031db3e717 (diff) | |
download | talos-obmc-linux-a000f0d3995f622410d433a01e94fbfb45969e27.tar.gz talos-obmc-linux-a000f0d3995f622410d433a01e94fbfb45969e27.zip |
[media] vivid: Set color_enc on HSV formats
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/vivid/vivid-vid-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vivid/vivid-vid-common.c b/drivers/media/platform/vivid/vivid-vid-common.c index 3d003fb913ed..5fc010f6ce67 100644 --- a/drivers/media/platform/vivid/vivid-vid-common.c +++ b/drivers/media/platform/vivid/vivid-vid-common.c @@ -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, |