media: coda: jpeg: allow non-JPEG colorspace
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 29 Jun 2018 12:46:46 +0000 (08:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 4 Jul 2018 12:22:35 +0000 (08:22 -0400)
commit1e3e2a9ac40ad4d11699a49a1bbbf40cd8d4c8bd
tree372e935462a864d1026ddf6575aad6afb33aafca
parent4d2096b4695623e3683cd41a96d6d0af6a5acf87
media: coda: jpeg: allow non-JPEG colorspace

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 for JPEG images, if
userspace injects the correct colorspace information into the JPEG
headers after encoding.

Fixes: b14ac545688d ("[media] coda: improve colorimetry handling")

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+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c