Skip to content

Commit e750a4b

Browse files
Dikshita AgarwalHans Verkuil
authored andcommitted
media: venus: flush all buffers in output plane streamoff
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: 85872f8 ("media: venus: Mark last capture buffer") Signed-off-by: Dikshita Agarwal <[email protected]> Tested-by: Nathan Hebert <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 8e04a24 commit e750a4b

File tree

1 file changed

+1
-1
lines changed
  • drivers/media/platform/qcom/venus

1 file changed

+1
-1
lines changed

drivers/media/platform/qcom/venus/vdec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ static int vdec_stop_output(struct venus_inst *inst)
12551255
break;
12561256
case VENUS_DEC_STATE_INIT:
12571257
case VENUS_DEC_STATE_CAPTURE_SETUP:
1258-
ret = hfi_session_flush(inst, HFI_FLUSH_INPUT, true);
1258+
ret = hfi_session_flush(inst, HFI_FLUSH_ALL, true);
12591259
break;
12601260
default:
12611261
break;

0 commit comments

Comments
 (0)