| From d7eb0a0940618f36e5937d81c06ad7bf438a99e2 Mon Sep 17 00:00:00 2001 |
| From: Alex Deucher <alexander.deucher@amd.com> |
| Date: Tue, 18 Feb 2014 10:25:39 -0500 |
| Subject: drm/radeon: fix audio disable on dce6+ |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: Alex Deucher <alexander.deucher@amd.com> |
| |
| commit d7eb0a0940618f36e5937d81c06ad7bf438a99e2 upstream. |
| |
| 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> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| |
| --- |
| drivers/gpu/drm/radeon/dce6_afmt.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- 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 rad |
| 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); |
| } |
| |