OSDN Git Service

media: imx: Propagate quantization and encoding in CSI
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 28 Feb 2020 23:26:57 +0000 (00:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 5 Mar 2020 21:47:05 +0000 (22:47 +0100)
commite3004605a0c9d643ab121e1cf53d1436f57c0b9f
tree06b71d31b98f175df68d72003249fc964c5115f9
parent60d70d75c12db7979da56cf02b4c8a4fcb8efb46
media: imx: Propagate quantization and encoding in CSI

Unlike the PRPENC and PRPVF subdevices, the CSI's cannot convert
quantization from sink to source, or do any kind of Y'CbCr <-> RGB
encoding. So the CSI's cannot allow quantization and ycbcr_enc to be
selectable by the user and must be propagated from sink to source.

Fixes: 4791bd7d6adc4 ("media: imx: Try colorimetry at both sink and source pads")

Reported-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Tested-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx-media-csi.c
drivers/staging/media/imx/imx7-media-csi.c