mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
drm/radeon: fix HDMI quantization_range for pre-DCE5 asics
Support for output_csc is only available on DCE5 and newer so don't mess with the HDMI quantization_range on pre-DCE5 asics. bug: https://bugs.freedesktop.org/show_bug.cgi?id=83226 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
92cffd56b2
commit
86b7709d48
1 changed files with 9 additions and 7 deletions
|
@ -522,6 +522,7 @@ static int radeon_audio_set_avi_packet(struct drm_encoder *encoder,
|
|||
return err;
|
||||
}
|
||||
|
||||
if (radeon_encoder->output_csc != RADEON_OUTPUT_CSC_BYPASS) {
|
||||
if (drm_rgb_quant_range_selectable(radeon_connector_edid(connector))) {
|
||||
if (radeon_encoder->output_csc == RADEON_OUTPUT_CSC_TVRGB)
|
||||
frame.quantization_range = HDMI_QUANTIZATION_RANGE_LIMITED;
|
||||
|
@ -530,6 +531,7 @@ static int radeon_audio_set_avi_packet(struct drm_encoder *encoder,
|
|||
} else {
|
||||
frame.quantization_range = HDMI_QUANTIZATION_RANGE_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer));
|
||||
if (err < 0) {
|
||||
|
|
Loading…
Reference in a new issue