mirror of
https://github.com/torvalds/linux.git
synced 2026-06-11 16:13:03 +02:00
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:
parent
a771ef8592
commit
02dbed2fbb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user