]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: vdec: Mark flushed buffers with error state
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 31 Mar 2020 16:19:51 +0000 (18:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 May 2020 11:05:26 +0000 (13:05 +0200)
commit39f133a07c5e523b41bfb7db4bdccbb2a8466201
treef9567ee40494f56855e8b2eb3ae0afeb666412cb
parent91a586f67362a405d2dc12915a408fe1b00f9d89
media: venus: vdec: Mark flushed buffers with error state

Once the hfi_session_flush is issued by the vdec all queued
buffers to firmware should be returned to the v4l driver. Some
of those buffers are not processed at the time of flush command,
those buffers has filled len zero (no data). Catch that in
buffer_done callback and mark not filled capture buffers with
error state so that client can discard them.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/vdec.c