media: imx-jpeg: Don't clear stop state in handling dynamic resolution change
authorMing Qian <ming.qian@nxp.com>
Tue, 26 Jul 2022 09:04:27 +0000 (17:04 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 30 Sep 2022 13:44:09 +0000 (15:44 +0200)
commitc76c2e92bcffef66a096de81e086d1acdc5ee944
treed2630c5b8441e3fe2294a9c8e7cc14b9364bc390
parent2c0a1dea8d936d3de0dc8a7674fd8a0014faa126
media: imx-jpeg: Don't clear stop state in handling dynamic resolution change

In dynamic resolution change, streamoff and streamon on the capture
queue may be called,
the V4L2_DEC_CMD_STOP cmd may be called before driver parsed the
jpeg header.
don't clear the stop state in streamoff of handling the
dynamic resolution change,
otherwise the drain may not complete.

Fixes: 4911c5acf9351 ("media: imx-jpeg: Implement drain using v4l2-mem2mem helpers")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c