This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: venus: flush all buffers in output plane streamoff
Author:  Dikshita Agarwal <quic_diksh...@quicinc.com>
Date:    Wed Jan 10 11:42:14 2024 +0530

For scenarios, when source change is followed by VIDIOC_STREAMOFF
on output plane, driver should discard any queued OUTPUT
buffers, which are not decoded or dequeued.
Flush with HFI_FLUSH_INPUT does not have any actual impact.
So, fix it, by invoking HFI_FLUSH_ALL, which will flush all
queued buffers.

Fixes: 85872f861d4c ("media: venus: Mark last capture buffer")
Signed-off-by: Dikshita Agarwal <quic_diksh...@quicinc.com>
Tested-by: Nathan Hebert <nheb...@chromium.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonog...@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.k.varba...@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 drivers/media/platform/qcom/venus/vdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/platform/qcom/venus/vdec.c 
b/drivers/media/platform/qcom/venus/vdec.c
index 29130a9441e7..0d2ab95bec0f 100644
--- a/drivers/media/platform/qcom/venus/vdec.c
+++ b/drivers/media/platform/qcom/venus/vdec.c
@@ -1255,7 +1255,7 @@ static int vdec_stop_output(struct venus_inst *inst)
                break;
        case VENUS_DEC_STATE_INIT:
        case VENUS_DEC_STATE_CAPTURE_SETUP:
-               ret = hfi_session_flush(inst, HFI_FLUSH_INPUT, true);
+               ret = hfi_session_flush(inst, HFI_FLUSH_ALL, true);
                break;
        default:
                break;

Reply via email to