drm/amd/display: default values for luminance range if they are 0
authorSwapnil Patel <Swapnil.Patel@amd.com>
Sat, 25 Feb 2023 01:16:09 +0000 (20:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Mar 2023 19:34:43 +0000 (15:34 -0400)
commit932698c88dc414e36e0683fbf6cf551b928441ac
treed185cb693a485e571a0b8cb258cc8662e1b3852c
parent54c7b715b5efe405dfd5fdafcaf930214b9c1fa9
drm/amd/display: default values for luminance range if they are 0

[why]
Currently if invalid luminescence range is reported in edid,
then the driver doesn't have default range to fallback to.

[How]
Add default range if, the range is 0.

Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Swapnil Patel <Swapnil.Patel@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c