Commit 50834eb4 authored by Hersen Wu's avatar Hersen Wu Committed by Alex Deucher

drm/amd/display: DP link validation bug for YUV422

remove limit YUV422 color depth to 24bits which is
workaround for old ASIC
Signed-off-by: default avatarHersen Wu <hersenxs.wu@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3158223e
...@@ -1379,12 +1379,7 @@ static uint32_t bandwidth_in_kbps_from_timing( ...@@ -1379,12 +1379,7 @@ static uint32_t bandwidth_in_kbps_from_timing(
uint32_t bits_per_channel = 0; uint32_t bits_per_channel = 0;
uint32_t kbps; uint32_t kbps;
if (timing->pixel_encoding == PIXEL_ENCODING_YCBCR422)
bits_per_channel = 12;
else{
switch (timing->display_color_depth) { switch (timing->display_color_depth) {
case COLOR_DEPTH_666: case COLOR_DEPTH_666:
bits_per_channel = 6; bits_per_channel = 6;
break; break;
...@@ -1406,7 +1401,7 @@ static uint32_t bandwidth_in_kbps_from_timing( ...@@ -1406,7 +1401,7 @@ static uint32_t bandwidth_in_kbps_from_timing(
default: default:
break; break;
} }
}
ASSERT(bits_per_channel != 0); ASSERT(bits_per_channel != 0);
kbps = timing->pix_clk_khz; kbps = timing->pix_clk_khz;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment