drm/rockchip: drv: Don't parse DSC information when the VSDB does not contain the DSC block

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I685fea28613e2538657074ac2ee8c8d4b2667cd3
This commit is contained in:
Algea Cao
2021-11-21 16:01:29 +08:00
committed by Tao Huang
parent a771ef8592
commit 02dbed2fbb

View File

@@ -581,6 +581,10 @@ void parse_edid_forum_vsdb(struct rockchip_drm_dsc_cap *dsc_cap,
max_frl_rate = (hf_vsdb[7] & EDID_MAX_FRL_RATE_MASK) >> 4;
get_max_frl_rate(max_frl_rate, max_lanes,
max_frl_rate_per_lane);
if (cea_db_payload_len(hf_vsdb) < 13)
return;
dsc_cap->v_1p2 = hf_vsdb[11] & EDID_DSC_1P2;
if (!dsc_cap->v_1p2)