]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:40:50 +0000 (14:40 +0200)
commitb1e5297f128872ba37f598f15a92ce7753c48655
tree4e0ee3b81c438e44c19a01e616015567a33ea03a
parent7da611b29786dbc9b4e6d1f4f5d34103bdeb0c40
media: imx-jpeg: Support dynamic resolution change

[ Upstream commit b4e1fb8643daabba850e97df532191acffc23e6a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h