Patch "media: imx-jpeg: Drop initial source change event if capture has been setup" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    media: imx-jpeg: Drop initial source change event if capture has been setup

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     media-imx-jpeg-drop-initial-source-change-event-if-c.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6517d26f9f0213b9d798456ae83a1f7d2e27698a
Author: Ming Qian <ming.qian@xxxxxxx>
Date:   Thu Oct 19 16:36:36 2023 +0800

    media: imx-jpeg: Drop initial source change event if capture has been setup
    
    [ Upstream commit a8fb5fce7a441d37d106c82235e1f1b57f70f5b9 ]
    
    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@xxxxxxx>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
index 0c8b204535ffc..2007152cd7a40 100644
--- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
+++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
@@ -1632,6 +1632,9 @@ static int mxc_jpeg_start_streaming(struct vb2_queue *q, unsigned int count)
 	dev_dbg(ctx->mxc_jpeg->dev, "Start streaming ctx=%p", ctx);
 	q_data->sequence = 0;
 
+	if (V4L2_TYPE_IS_CAPTURE(q->type))
+		ctx->need_initial_source_change_evt = false;
+
 	ret = pm_runtime_resume_and_get(ctx->mxc_jpeg->dev);
 	if (ret < 0) {
 		dev_err(ctx->mxc_jpeg->dev, "Failed to power up jpeg\n");




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux