drm/radeon: fix audio disable on dce6+
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2014 15:25:39 +0000 (10:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Feb 2014 19:13:06 +0000 (14:13 -0500)
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
drivers/gpu/drm/radeon/dce6_afmt.c

index 713a5d35990102ea315fa078a93c11d6c1aae1f5..36e8f1084621ace7a6d19fcdd6e63634344be02b 100644 (file)
@@ -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);
 }