Skip to content

Commit c268cd3

Browse files
agd5fairlied
authored andcommitted
drm/radeon/kms: only enable hdmi features if the monitor supports audio
This avoids some issues in the current hdmi audio code for monitors without audio. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent c3307cd commit c268cd3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/gpu/drm/radeon/radeon_encoders.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
641641
switch (connector->connector_type) {
642642
case DRM_MODE_CONNECTOR_DVII:
643643
case DRM_MODE_CONNECTOR_HDMIB: /* HDMI-B is basically DL-DVI; analog works fine */
644-
if (drm_detect_hdmi_monitor(radeon_connector->edid)) {
644+
if (drm_detect_monitor_audio(radeon_connector->edid)) {
645645
/* fix me */
646646
if (ASIC_IS_DCE4(rdev))
647647
return ATOM_ENCODER_MODE_DVI;
@@ -655,7 +655,7 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
655655
case DRM_MODE_CONNECTOR_DVID:
656656
case DRM_MODE_CONNECTOR_HDMIA:
657657
default:
658-
if (drm_detect_hdmi_monitor(radeon_connector->edid)) {
658+
if (drm_detect_monitor_audio(radeon_connector->edid)) {
659659
/* fix me */
660660
if (ASIC_IS_DCE4(rdev))
661661
return ATOM_ENCODER_MODE_DVI;
@@ -673,7 +673,7 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
673673
if ((dig_connector->dp_sink_type == CONNECTOR_OBJECT_ID_DISPLAYPORT) ||
674674
(dig_connector->dp_sink_type == CONNECTOR_OBJECT_ID_eDP))
675675
return ATOM_ENCODER_MODE_DP;
676-
else if (drm_detect_hdmi_monitor(radeon_connector->edid)) {
676+
else if (drm_detect_monitor_audio(radeon_connector->edid)) {
677677
/* fix me */
678678
if (ASIC_IS_DCE4(rdev))
679679
return ATOM_ENCODER_MODE_DVI;

0 commit comments

Comments
 (0)