]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: helpers: Done buffers per queue type
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 31 Mar 2020 15:47:38 +0000 (17:47 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 May 2020 11:04:59 +0000 (13:04 +0200)
commit91a586f67362a405d2dc12915a408fe1b00f9d89
treeb51adb72568e02bc122978fc6041c45cfc82a972
parente92e61b601ea70ff3b7f33268d35705d6f547390
media: venus: helpers: Done buffers per queue type

Currently calling venus_helper_buffers_done() will return buffers to
user for both capture and output queues in the same call. This is
wrong because both queues are really separate and calling
stop_streaming on one queue shouldn't return buffers for the other.
Solve this by add a new queue type argument and fix the clients of
the helper function.

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