Skip to content

Commit ffd0edf

Browse files
alexdeuchergregkh
authored andcommitted
drm/radeon: don't allow audio on DCE6
commit 1cbcca3 upstream. It's not supported yet. Fixes display issues when users force it on. Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e335cca commit ffd0edf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

drivers/gpu/drm/radeon/atombios_encoders.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ atombios_digital_setup(struct drm_encoder *encoder, int action)
667667
int
668668
atombios_get_encoder_mode(struct drm_encoder *encoder)
669669
{
670+
struct drm_device *dev = encoder->dev;
671+
struct radeon_device *rdev = dev->dev_private;
670672
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
671673
struct drm_connector *connector;
672674
struct radeon_connector *radeon_connector;
@@ -693,7 +695,8 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
693695
case DRM_MODE_CONNECTOR_DVII:
694696
case DRM_MODE_CONNECTOR_HDMIB: /* HDMI-B is basically DL-DVI; analog works fine */
695697
if (drm_detect_hdmi_monitor(radeon_connector->edid) &&
696-
radeon_audio)
698+
radeon_audio &&
699+
!ASIC_IS_DCE6(rdev)) /* remove once we support DCE6 */
697700
return ATOM_ENCODER_MODE_HDMI;
698701
else if (radeon_connector->use_digital)
699702
return ATOM_ENCODER_MODE_DVI;
@@ -704,7 +707,8 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
704707
case DRM_MODE_CONNECTOR_HDMIA:
705708
default:
706709
if (drm_detect_hdmi_monitor(radeon_connector->edid) &&
707-
radeon_audio)
710+
radeon_audio &&
711+
!ASIC_IS_DCE6(rdev)) /* remove once we support DCE6 */
708712
return ATOM_ENCODER_MODE_HDMI;
709713
else
710714
return ATOM_ENCODER_MODE_DVI;
@@ -718,7 +722,8 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
718722
(dig_connector->dp_sink_type == CONNECTOR_OBJECT_ID_eDP))
719723
return ATOM_ENCODER_MODE_DP;
720724
else if (drm_detect_hdmi_monitor(radeon_connector->edid) &&
721-
radeon_audio)
725+
radeon_audio &&
726+
!ASIC_IS_DCE6(rdev)) /* remove once we support DCE6 */
722727
return ATOM_ENCODER_MODE_HDMI;
723728
else
724729
return ATOM_ENCODER_MODE_DVI;

0 commit comments

Comments
 (0)