Patch "media: amphion: insert picture startcode after seek for vc1g format" has been added to the 6.0-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: amphion: insert picture startcode after seek for vc1g format

to the 6.0-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-amphion-insert-picture-startcode-after-seek-fo.patch
and it can be found in the queue-6.0 subdirectory.

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



commit 5a49814b49f90536ac8284c3a94b20c8eb86e801
Author: Ming Qian <ming.qian@xxxxxxx>
Date:   Fri Jul 15 09:15:49 2022 +0200

    media: amphion: insert picture startcode after seek for vc1g format
    
    [ Upstream commit f7fd6c318c8a5d06bf3fe611f30763d62eaaf7f0 ]
    
    For format vc1, the amphion vpu requires driver to
    help insert some custom startcode before sequence and frame.
    the startcode is different for vc1l and vc1g format.
    
    But the sequence startcode is only needed at the beginning,
    and it's not expected after seek.
    driver need to treat the codec header and the first frame after seek
    as a normal frame, and insert picture startcode for it.
    
    In previous patch, I just fix it for vc1l format,
    and should fix the similar issue for vc1g too.
    
    Fixes: e670f5d672ef (media: amphion: only insert the first sequence startcode for vc1l format)
    Signed-off-by: Ming Qian <ming.qian@xxxxxxx>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/platform/amphion/vpu_malone.c b/drivers/media/platform/amphion/vpu_malone.c
index f4a488bf9880..51e0702f9ae1 100644
--- a/drivers/media/platform/amphion/vpu_malone.c
+++ b/drivers/media/platform/amphion/vpu_malone.c
@@ -1293,7 +1293,7 @@ static int vpu_malone_insert_scode_vc1_g_pic(struct malone_scode_t *scode)
 	vbuf = to_vb2_v4l2_buffer(scode->vb);
 	data = vb2_plane_vaddr(scode->vb, 0);
 
-	if (vbuf->sequence == 0 || vpu_vb_is_codecconfig(vbuf))
+	if (scode->inst->total_input_count == 0 || vpu_vb_is_codecconfig(vbuf))
 		return 0;
 	if (MALONE_VC1_CONTAIN_NAL(*data))
 		return 0;



[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