Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Ricardo Ribalda and committed by
Mauro Carvalho Chehab
a000f0d3 94868d61

+2
+2
drivers/media/platform/vivid/vivid-vid-common.c
··· 447 447 }, 448 448 { 449 449 .fourcc = V4L2_PIX_FMT_HSV24, /* HSV 24bits */ 450 + .color_enc = TGP_COLOR_ENC_HSV, 450 451 .vdownsampling = { 1 }, 451 452 .bit_depth = { 24 }, 452 453 .planes = 1, ··· 455 454 }, 456 455 { 457 456 .fourcc = V4L2_PIX_FMT_HSV32, /* HSV 32bits */ 457 + .color_enc = TGP_COLOR_ENC_HSV, 458 458 .vdownsampling = { 1 }, 459 459 .bit_depth = { 32 }, 460 460 .planes = 1,