video: driver: Subscribe to color info for AV1

Subscribe to HFI_PROP_SIGNAL_COLOR_INFO to receive
color info from bitstream AV1 bitstreams.

Change-Id: I3c76bc651160b701078bd73725f7060388ad9125
Signed-off-by: Mihir Ganu <quic_mganu@quicinc.com>
This commit is contained in:
Mihir Ganu
2022-05-13 08:00:01 -07:00
parent 2f361417ab
commit 888ecb9f1b

View File

@@ -66,6 +66,7 @@ static const u32 msm_vdec_subscribe_for_psc_av1[] = {
HFI_PROP_PROFILE, HFI_PROP_PROFILE,
HFI_PROP_LEVEL, HFI_PROP_LEVEL,
HFI_PROP_TIER, HFI_PROP_TIER,
HFI_PROP_SIGNAL_COLOR_INFO,
}; };
static const u32 msm_vdec_input_subscribe_for_properties[] = { static const u32 msm_vdec_input_subscribe_for_properties[] = {
@@ -469,9 +470,7 @@ static int msm_vdec_set_colorspace(struct msm_vidc_inst *inst,
return -EINVAL; return -EINVAL;
} }
if (inst->codec != MSM_VIDC_H264 && if (inst->codec == MSM_VIDC_VP9)
inst->codec != MSM_VIDC_HEVC &&
inst->codec != MSM_VIDC_HEIC)
return 0; return 0;
if (inst->fmts[port].fmt.pix_mp.colorspace != V4L2_COLORSPACE_DEFAULT || if (inst->fmts[port].fmt.pix_mp.colorspace != V4L2_COLORSPACE_DEFAULT ||