diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-09-18 22:07:08 (GMT) |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-10-01 13:00:04 (GMT) |
commit | 4adb34ef7821224255f447a9c07871ecbfbb6f92 (patch) | |
tree | 9c493be518f88b5adb9ecee3b2a71d92db8009c4 /drivers/gpu/drm/radeon/r600_hdmi.c | |
parent | d3d8c141a333879719173a522a89532bf8d32229 (diff) | |
download | linux-4adb34ef7821224255f447a9c07871ecbfbb6f92.tar.xz |
drm/radeon: disable audio when we disable hdmi (v2)
This should allow the audio driver to get a better
idea of whether the sink is connected or not.
v2: fix copy/paste typo noticed by David Henningsson
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_hdmi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index a510689..b90dc0e 100644 --- a/drivers/gpu/drm/radeon/r600_hdmi.c +++ b/drivers/gpu/drm/radeon/r600_hdmi.c @@ -691,6 +691,11 @@ void r600_hdmi_enable(struct drm_encoder *encoder, bool enable) if (!enable && !dig->afmt->enabled) return; + if (!enable && dig->afmt->pin) { + r600_audio_enable(rdev, dig->afmt->pin, 0); + dig->afmt->pin = NULL; + } + /* Older chipsets require setting HDMI and routing manually */ if (!ASIC_IS_DCE3(rdev)) { if (enable) |