mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
media: venus: hfi_platform: Check vpu_version instead of device compatible
This is not a matter of the host SoC, but the VPU chip in Venus. Fix it. Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
c38610f898
commit
adeb071bb4
|
|
@ -80,7 +80,7 @@ hfi_platform_get_codecs(struct venus_core *core, u32 *enc_codecs, u32 *dec_codec
|
|||
if (plat->codecs)
|
||||
plat->codecs(enc_codecs, dec_codecs, count);
|
||||
|
||||
if (of_device_is_compatible(core->dev->of_node, "qcom,sc7280-venus")) {
|
||||
if (IS_IRIS2_1(core)) {
|
||||
*enc_codecs &= ~HFI_VIDEO_CODEC_VP8;
|
||||
*dec_codecs &= ~HFI_VIDEO_CODEC_VP8;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user