[media] coda: improve colorimetry handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 22 May 2017 16:34:48 +0000 (13:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 19:48:47 +0000 (16:48 -0300)
commitb14ac545688d8cc4b2b707d71d106799ad476964
tree3cabc59889760b0c616a11ed5539929dec1acad0
parentce1ec5c07e0671cc6b5961bba9f740bb951d33f7
[media] coda: improve colorimetry handling

The hardware codec is not colorspace aware. We should trust userspace to
set the correct colorimetry information on the OUTPUT queue and mirror
the exact same setting on the CAPTURE queue.

There is no reason to restrict colorspace to JPEG or REC709 only. Also,
set the default colorspace, as returned by calling VIDIOC_TRY/S_FMT with
V4L2_COLORSPACE_DEFAULT, initially.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h