drm/radeon: fix audio disable on dce6+
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2014 15:25:39 +0000 (10:25 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:56 +0000 (17:13 +0100)
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: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/dce6_afmt.c

index 86ee097..2a2879e 100644 (file)
@@ -231,7 +231,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);
 }