]> 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)
commitbd79a7b8f781183f3d9791ca0d3d26ec31623ae7
treee848bd02339dbad07501839b35d90be9e0dd9975
parent89f70b66d2f3cd06441545dde16880569b27d03c
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