summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-02-18 16:25:39 +0100
committerAlex Deucher <alexander.deucher@amd.com>2014-02-27 20:13:06 +0100
commitd7eb0a0940618f36e5937d81c06ad7bf438a99e2 (patch)
tree6703ecc0829b863a3497c9d19778020abf442b11
parentdrm/radeon: free uvd ring on unload (diff)
downloadlinux-d7eb0a0940618f36e5937d81c06ad7bf438a99e2.tar.xz
linux-d7eb0a0940618f36e5937d81c06ad7bf438a99e2.zip
drm/radeon: fix audio disable on dce6+
Properly clear the enable bit when audio disable is requested. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/radeon/dce6_afmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c
index 713a5d359901..36e8f1084621 100644
--- a/drivers/gpu/drm/radeon/dce6_afmt.c
+++ b/drivers/gpu/drm/radeon/dce6_afmt.c
@@ -283,7 +283,7 @@ static void dce6_audio_enable(struct radeon_device *rdev,
bool enable)
{
WREG32_ENDPOINT(pin->offset, AZ_F0_CODEC_PIN_CONTROL_HOTPLUG_CONTROL,
- AUDIO_ENABLED);
+ enable ? AUDIO_ENABLED : 0);
DRM_INFO("%s audio %d support\n", enable ? "Enabling" : "Disabling", pin->id);
}