media: coda: fix frame_mem_ctrl for YUV420 and YVU420 formats
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Jul 2021 14:57:08 +0000 (16:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 12:01:55 +0000 (14:01 +0200)
commit44693d74f5653f82cd7ca0fe730eed0f6b83306a
tree49c4f739de1351ec5ce277d03a91ee2fce8e8590
parentfa0b5658597f1362c08c662a3a3c5139829e13a8
media: coda: fix frame_mem_ctrl for YUV420 and YVU420 formats

The frame memory control register value is currently determined
before userspace selects the final capture format and never corrected.
Update ctx->frame_mem_ctrl in __coda_start_decoding() to fix decoding
into YUV420 or YVU420 capture buffers.

Reported-by: Andrej Picej <andrej.picej@norik.com>
Fixes: 497e6b8559a6 ("media: coda: add sequence initialization work")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/coda/coda-bit.c