mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 14:04:05 +08:00
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>
This commit is contained in:
parent
6748c1cfd2
commit
0aaddaaf68
@ -1215,7 +1215,7 @@ pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt,
|
||||
}
|
||||
case HFI_PROPERTY_CONFIG_VENC_MAX_BITRATE:
|
||||
/* not implemented on Venus 4xx */
|
||||
break;
|
||||
return -ENOTSUPP;
|
||||
default:
|
||||
return pkt_session_set_property_3xx(pkt, cookie, ptype, pdata);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user