dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/radeon: fix audio disable on dce6+
@ 2014-02-18 16:13 Alex Deucher
  2014-02-18 16:13 ` [PATCH 2/3] drm/radeon: change audio enable logic Alex Deucher
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alex Deucher @ 2014-02-18 16:13 UTC (permalink / raw)
  To: dri-devel; +Cc: Alex Deucher, stable

Properly clear the enable bit when audio disable is requested.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/radeon/dce6_afmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-18 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 16:13 [PATCH 1/3] drm/radeon: fix audio disable on dce6+ Alex Deucher
2014-02-18 16:13 ` [PATCH 2/3] drm/radeon: change audio enable logic Alex Deucher
2014-02-18 16:13 ` [PATCH 3/3] drm/radeon: enable speaker allocation setup on dce3.2 Alex Deucher
2014-02-18 16:17 ` [PATCH 1/3] drm/radeon: fix audio disable on dce6+ Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox