media: venus: vdec_ctrls: get real minimum buffers for capture
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Wed, 16 Jan 2019 16:40:58 +0000 (14:40 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 5 Aug 2019 13:52:17 +0000 (10:52 -0300)
commitcef697d8a0632f649c9b0450e14a370b85d2d10d
treecff2900423889ed982b7b0bd434f111ca5a7b9fd
parent14ea00d65c657707b425d5cd8035c6c94ad9fe56
media: venus: vdec_ctrls: get real minimum buffers for capture

Until now we returned num_output_bufs set during reqbuf but
that could be wrong when we implement stateful Codec API. So
get the minimum buffers for capture from HFI. This is supposed
to be called after stream header parsing, i.e. after dequeue
v4l2 event for change resolution.

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