Skip to contentSkip to conversation

drm/radeon/hdmi: enable audio on Cayman

PATCH In review Rafał Miłecki 2 participants 2 messages Jun 11, 2012

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

PATCH 1/1 drm/radeon/hdmi: enable audio on Cayman

---
 drivers/gpu/drm/radeon/ni.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/ni.c +5 -0
index 3df4efa..b65fcae 100644
@@ -1290,6 +1290,10 @@ static int cayman_startup(struct radeon_device *rdev)
 	if (r)
 		return r;
 
+	r = r600_audio_init(rdev);
+	if (r)
+		return r;
+
 	return 0;
 }
 
@@ -1316,6 +1320,7 @@ int cayman_resume(struct radeon_device *rdev)
 
 int cayman_suspend(struct radeon_device *rdev)
 {
+	r600_audio_fini(rdev);
 	/* FIXME: we should wait for ring to be empty */
 	radeon_ib_pool_suspend(rdev);
 	radeon_vm_manager_suspend(rdev);
Signature · 1 line
1.7.7
#1 lore raw

Yeah, just gotten to the same conclusion a second before your last mail arrives.... Heureka! We got HDMI audio on Cayman!

Please merge that with your other patch and resend it to the list.

Cheers,
Christian.

Quoted 20 lines · Rafał Miłecki
---
  drivers/gpu/drm/radeon/ni.c |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/ni.c +4 -0
index 3df4efa..b65fcae 100644
@@ -1290,6 +1290,10 @@ static int cayman_startup(struct radeon_device *rdev)
  	if (r)
  		return r;
 
+	r = r600_audio_init(rdev);
+	if (r)
+		return r;
+
  	return 0;
  }
 

drivers/gpu/drm/radeon/ni.c int cayman_resume(struct radeon_device *rdev) · line 1326

Quoted 7 lines
drivers/gpu/drm/radeon/ni.c +1 -0
@@ -1316,6 +1320,7 @@ int cayman_resume(struct radeon_device *rdev)
 
  int cayman_suspend(struct radeon_device *rdev)
  {
+	r600_audio_fini(rdev);
  	/* FIXME: we should wait for ring to be empty */
  	radeon_ib_pool_suspend(rdev);
  	radeon_vm_manager_suspend(rdev);

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel