提交 50834eb4 编写于 作者: H Hersen Wu 提交者: 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: NHersen Wu <hersenxs.wu@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 3158223e
...@@ -1379,34 +1379,29 @@ static uint32_t bandwidth_in_kbps_from_timing( ...@@ -1379,34 +1379,29 @@ 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) switch (timing->display_color_depth) {
case COLOR_DEPTH_666:
bits_per_channel = 6;
break;
case COLOR_DEPTH_888:
bits_per_channel = 8;
break;
case COLOR_DEPTH_101010:
bits_per_channel = 10;
break;
case COLOR_DEPTH_121212:
bits_per_channel = 12; bits_per_channel = 12;
else{ break;
case COLOR_DEPTH_141414:
switch (timing->display_color_depth) { bits_per_channel = 14;
break;
case COLOR_DEPTH_666: case COLOR_DEPTH_161616:
bits_per_channel = 6; bits_per_channel = 16;
break; break;
case COLOR_DEPTH_888: default:
bits_per_channel = 8; break;
break;
case COLOR_DEPTH_101010:
bits_per_channel = 10;
break;
case COLOR_DEPTH_121212:
bits_per_channel = 12;
break;
case COLOR_DEPTH_141414:
bits_per_channel = 14;
break;
case COLOR_DEPTH_161616:
bits_per_channel = 16;
break;
default:
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册