Skip to contentSkip to conversation

drm/radeon: fix audio disable on dce6+

PATCH New Alex Deucher 1 participant 1 message Feb 18, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: fix audio disable on dce6+

Properly clear the enable bit when audio disable is requested.

---
 drivers/gpu/drm/radeon/dce6_afmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/dce6_afmt.c +1 -1
index 713a5d3..36e8f10 100644
@@ -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);
 }
 
Signature · 1 line
1.8.3.1