drm/radeon/kms: only enable hdmi features if the monitor supports audio
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/radeon/radeon_encoders.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_encoders.c +3 -3
@@ -641,7 +641,7 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)switch (connector->connector_type) {case DRM_MODE_CONNECTOR_DVII :case DRM_MODE_CONNECTOR_HDMIB :/* HDMI-B is basically DL-DVI; analog works fine */ -if (drm_detect_hdmi_monitor (radeon_connector->edid)) { +if (drm_detect_monitor_audio (radeon_connector->edid)) {/* fix me */ if (ASIC_IS_DCE4 (rdev))return ATOM_ENCODER_MODE_DVI ;
@@ -655,7 +655,7 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)case DRM_MODE_CONNECTOR_DVID :case DRM_MODE_CONNECTOR_HDMIA :default : -if (drm_detect_hdmi_monitor (radeon_connector->edid)) { +if (drm_detect_monitor_audio (radeon_connector->edid)) {/* fix me */ if (ASIC_IS_DCE4 (rdev))return ATOM_ENCODER_MODE_DVI ;
@@ -673,7 +673,7 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)if ((dig_connector->dp_sink_type ==CONNECTOR_OBJECT_ID_DISPLAYPORT ) || (dig_connector->dp_sink_type == CONNECTOR_OBJECT_ID_eDP))return ATOM_ENCODER_MODE_DP ; -else if (drm_detect_hdmi_monitor (radeon_connector->edid)) { +else if (drm_detect_monitor_audio (radeon_connector->edid)) {/* fix me */ if (ASIC_IS_DCE4 (rdev))return ATOM_ENCODER_MODE_DVI ;
Signature · 1 line
1.7.1.1