]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: imx-jpeg: Drop initial source change event if capture has been setup
authorMing Qian <ming.qian@nxp.com>
Thu, 19 Oct 2023 08:36:36 +0000 (16:36 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 21 Jun 2024 06:57:09 +0000 (08:57 +0200)
commita8fb5fce7a441d37d106c82235e1f1b57f70f5b9
tree1d8f35ee6d167731fb562e3d8c3c6d55125dfb5f
parentf10edd839eb8cef29c1929a2e224b0a9d4132074
media: imx-jpeg: Drop initial source change event if capture has been setup

In section 4.5.1.5. Initialization, the step 4 may be skipped and
continue with the Capture Setup sequence, so if the capture has been
setup, there is no need to trigger the initial source change event, just
start decoding, and follow the dynamic resolution change flow if the
configured values do not match those parsed by the decoder.

And it won't fail the gstreamer pipeline.

Fixes: b833b178498d ("media: imx-jpeg: notify source chagne event when the first picture parsed")
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