]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx-jpeg: Support dynamic resolution change
authorMing Qian <ming.qian@nxp.com>
Wed, 23 Mar 2022 09:05:58 +0000 (10:05 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:19 +0000 (11:02 +0200)
commitd928bdadeb3366d3bc6e3fcc93b746d99293c554
treee848bd02339dbad07501839b35d90be9e0dd9975
parentf09e3e9050b83d28cc6f247ea27fc020e9b26643
media: imx-jpeg: Support dynamic resolution change

To support dynamic resolution change,
driver should meet the following conditions:
1. the previous pictures are all decoded before source change event.
2. prevent decoding new resolution pictures with incorrect capture
   buffer, until user handle source change event and setup capture.
3. report correct fmt and resolution during source change.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h