]> Gentwo Git Trees - linux/.git/commit
media: venus: vdec: queue dpb buffers to firmware for video seek
authorRenjiang Han <quic_renjiang@quicinc.com>
Thu, 27 Feb 2025 02:43:54 +0000 (08:13 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Apr 2025 11:29:06 +0000 (13:29 +0200)
commitb588898880b02a8e50bcb72242585021d67f246d
treea1b039e406e7f5ab5509cc7e2e47cb7fb8606460
parent523cea3a19f0b3b020a4745344c136a636e6ffd7
media: venus: vdec: queue dpb buffers to firmware for video seek

For the seek case, the input port will be called stream_off and then
stream_on in the driver. Firmware will flush all buffers during stream_off
input port. Therefore, driver needs to queue DPB buffers to firmware
during stream_on input port to ensure that decoder can decode normally
when it receives enough input and output buffers. Otherwise, decoder
will not be able to decode due to lack of DPB buffer even if there are
enough input and output buffers.

Signed-off-by: Renjiang Han <quic_renjiang@quicinc.com>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
[bod: added media prefix]
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/venus/vdec.c