media: venus: make decoder compliant with stateful codec API
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Thu, 17 Jan 2019 09:43:31 +0000 (07:43 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 5 Aug 2019 13:57:05 +0000 (10:57 -0300)
commitbeac82904a870b220d45b883e493b869d8d0dce5
tree54c3e2c434189692f6143125130786f4f9665fa7
parentbe76f150bcadec1707e3718b0750a8b2261b3c20
media: venus: make decoder compliant with stateful codec API

This refactors code for start/stop streaming vb2 operations and
adds a state machine handling similar to the one in stateful codec
API documentation. One major change is that now the HFI session is
started on STREAMON(OUTPUT) and stopped on REQBUF(OUTPUT,count=0),
during that time STREAMOFF(CAP,OUT) just flush buffers but doesn't
stop the session. The other major change is that now the capture
and output queues are completely separated.

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