summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/qcom/venus/venc.c
diff options
context:
space:
mode:
authorStanimir Varbanov <stanimir.varbanov@linaro.org>2018-07-05 09:03:51 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-25 08:52:34 -0400
commit404054e1777a01ac93d9767b300f6ffb41bf5972 (patch)
treed316324df52c370f17db769b3ec3698fc50494ec /drivers/media/platform/qcom/venus/venc.c
parentbf26670aeae8f7f407e05f5da044e48cf9854a1b (diff)
downloadtalos-op-linux-404054e1777a01ac93d9767b300f6ffb41bf5972.tar.gz
talos-op-linux-404054e1777a01ac93d9767b300f6ffb41bf5972.zip
media: venus: helpers: add buffer type argument to a helper
This adds one more function argument to pass buffer type to set_output_resolution() helper function. That is a preparation to support secondary decoder output. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: Alexandre Courbot <acourbot@chromium.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/qcom/venus/venc.c')
-rw-r--r--drivers/media/platform/qcom/venus/venc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c
index 4edca7e2cb14..75527db76ac1 100644
--- a/drivers/media/platform/qcom/venus/venc.c
+++ b/drivers/media/platform/qcom/venus/venc.c
@@ -793,7 +793,8 @@ static int venc_init_session(struct venus_inst *inst)
goto deinit;
ret = venus_helper_set_output_resolution(inst, inst->width,
- inst->height);
+ inst->height,
+ HFI_BUFFER_OUTPUT);
if (ret)
goto deinit;
OpenPOWER on IntegriCloud