summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r600.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-01-28 18:16:30 +0100
committerDave Airlie <airlied@redhat.com>2010-02-05 06:26:19 +0100
commit38fd2c6ff526e6a59edfa8e08f6f0724646784c4 (patch)
treef77deb312a650d3acfe35694010f31240288938b /drivers/gpu/drm/radeon/r600.c
parentdrm/radeon/kms: fix r300 vram width calculations (diff)
downloadlinux-38fd2c6ff526e6a59edfa8e08f6f0724646784c4.tar.xz
linux-38fd2c6ff526e6a59edfa8e08f6f0724646784c4.zip
drm/radeon/kms: suspend and resume audio stuff
Fixes FDO bug #26214 Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r--drivers/gpu/drm/radeon/r600.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index 9661a469f3bd..29faebc105df 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -1950,6 +1950,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;
}
@@ -1957,6 +1964,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;