OSDN Git Service

media: atmel: atmel-sama5d2-isc: fix YUYV format
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 9 Jun 2021 13:00:28 +0000 (15:00 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 12 Jul 2021 07:16:34 +0000 (09:16 +0200)
commit123aaf816b952e5b6ee754335596b01ba1f6c830
tree1e698662a482af6cb659507e7568ed77bd06359e
parentb6ef5c123a4b73aae649ee2e7da73d751491b971
media: atmel: atmel-sama5d2-isc: fix YUYV format

SAMA5D2 does not have the YCYC field for the RLP (rounding, limiting,
packaging) module.
The YCYC field is supposed to work with interleaved YUV formats like YUYV.
In SAMA5D2, we have to use YYCC field, which is used for both planar
formats like YUV420 and interleaved formats like YUYV.
Fix the according rlp callback to replace the generic YCYC field (which
makes more sense from a logical point of view) with the required YYCC
field.

Fixes: debfa496871c ("media: atmel: atmel-isc-base: add support for more formats and additional pipeline modules")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/atmel/atmel-sama5d2-isc.c