Skip to content

Commit 86b7709

Browse files
committed
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 <[email protected]> Cc: [email protected]
1 parent 92cffd5 commit 86b7709

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

drivers/gpu/drm/radeon/radeon_audio.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,15 @@ static int radeon_audio_set_avi_packet(struct drm_encoder *encoder,
522522
return err;
523523
}
524524

525-
if (drm_rgb_quant_range_selectable(radeon_connector_edid(connector))) {
526-
if (radeon_encoder->output_csc == RADEON_OUTPUT_CSC_TVRGB)
527-
frame.quantization_range = HDMI_QUANTIZATION_RANGE_LIMITED;
528-
else
529-
frame.quantization_range = HDMI_QUANTIZATION_RANGE_FULL;
530-
} else {
531-
frame.quantization_range = HDMI_QUANTIZATION_RANGE_DEFAULT;
525+
if (radeon_encoder->output_csc != RADEON_OUTPUT_CSC_BYPASS) {
526+
if (drm_rgb_quant_range_selectable(radeon_connector_edid(connector))) {
527+
if (radeon_encoder->output_csc == RADEON_OUTPUT_CSC_TVRGB)
528+
frame.quantization_range = HDMI_QUANTIZATION_RANGE_LIMITED;
529+
else
530+
frame.quantization_range = HDMI_QUANTIZATION_RANGE_FULL;
531+
} else {
532+
frame.quantization_range = HDMI_QUANTIZATION_RANGE_DEFAULT;
533+
}
532534
}
533535

534536
err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer));

0 commit comments

Comments
 (0)