aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/qcom/venus/hfi_venus.c
diff options
context:
space:
mode:
authorMalathi Gottam <mgottam@codeaurora.org>2018-10-22 08:05:12 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-27 13:57:55 -0500
commit0aaddaaf68410014f346bb022068d4da3dfa8324 (patch)
tree0a9bd61bacbea5a895dc9564a1921b1ede085ffb /drivers/media/platform/qcom/venus/hfi_venus.c
parentmedia: venus: add support for USERPTR to queue (diff)
downloadlinux-dev-0aaddaaf68410014f346bb022068d4da3dfa8324.tar.xz
linux-dev-0aaddaaf68410014f346bb022068d4da3dfa8324.zip
media: venus: handle peak bitrate set property
Max bitrate property is not supported for venus version 4xx. Return unsupported from packetization layer. Handle it in hfi_venus layer to exit gracefully to venc layer. Signed-off-by: Malathi Gottam <mgottam@codeaurora.org> Tested-by: Alexandre Courbot <acourbot@chromium.org> Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/media/platform/qcom/venus/hfi_venus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c
index 074837e0b7da..5c1e5b4f767a 100644
--- a/drivers/media/platform/qcom/venus/hfi_venus.c
+++ b/drivers/media/platform/qcom/venus/hfi_venus.c
@@ -1350,6 +1350,8 @@ static int venus_session_set_property(struct venus_inst *inst, u32 ptype,
pkt = (struct hfi_session_set_property_pkt *)packet;
ret = pkt_session_set_property(pkt, inst, ptype, pdata);
+ if (ret == -ENOTSUPP)
+ return 0;
if (ret)
return ret;