diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-02-18 10:25:39 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-02-27 14:13:06 -0500 |
commit | d7eb0a0940618f36e5937d81c06ad7bf438a99e2 (patch) | |
tree | 6703ecc0829b863a3497c9d19778020abf442b11 | |
parent | d965441342f3b7d63db784cad852328d17d47942 (diff) | |
download | op-kernel-dev-d7eb0a0940618f36e5937d81c06ad7bf438a99e2.zip op-kernel-dev-d7eb0a0940618f36e5937d81c06ad7bf438a99e2.tar.gz |
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.c | 2 |
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 713a5d3..36e8f10 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); } |