Skip to contentSkip to conversation

drm/radeon/kms: suspend and resume audio stuff

PATCH In review Rafał Miłecki 2 participants 3 messages Jan 28, 2010

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

PATCH 1/1 drm/radeon/kms: suspend and resume audio stuff

Fixes FDO bug #26214

---
 drivers/gpu/drm/radeon/r600.c       |    8 ++++++++
 drivers/gpu/drm/radeon/r600_audio.c |    3 +--
 2 files changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/r600.c +8 -0
index d279089..76d0cdb 100644
@@ -1944,6 +1944,13 @@ int r600_resume(struct radeon_device *rdev)
 		DRM_ERROR("radeon: failled testing IB (%d).\n", r);
 		return r;
 	}
+
+	r = r600_audio_init(rdev);
+	if (r) {
+		DRM_ERROR("radeon: audio resume failed\n");
+		return r;
+	}
+
 	return r;
 }
 
@@ -1951,6 +1958,7 @@ int r600_suspend(struct radeon_device *rdev)
 {
 	int r;
 
+	r600_audio_fini(rdev);
 	/* FIXME: we should wait for ring to be empty */
 	r600_cp_stop(rdev);
 	rdev->cp.ready = false;
drivers/gpu/drm/radeon/r600_audio.c +1 -2
index 99e2c38..e90da2e 100644
@@ -261,7 +261,6 @@ void r600_audio_fini(struct radeon_device *rdev)
 	if (!r600_audio_chipset_supported(rdev))
 		return;
 
-	WREG32_P(R600_AUDIO_ENABLE, 0x0, ~0x81000000);
-
 	del_timer(&rdev->audio_timer);
+	WREG32_P(R600_AUDIO_ENABLE, 0x0, ~0x81000000);
 }
Signature · 14 lines
1.6.4.2


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#1 lore raw

W dniu 28 stycznia 2010 18:16 użytkownik Rafał Miłecki

Quoted 1 line · <[email protected]> napisał:

Fixes FDO bug #26214

Dave: this is trivial change, fix annoying bug and it stops (fixes) many ERROR resume messages.

Can you get this to 2.6.33?

Signature · 13 lines
Rafał

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#2 lore raw
In reply to Rafał Miłecki
Quoted 1 line · Rafał Miłecki

Fixes FDO bug #26214

Looks good - thanks! :-)

Marius

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel