diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-12-07 23:32:24 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-19 19:40:26 +0100 |
commit | 69d2ae574b3a4b35e4970d8dec0bd598cfbe68a8 (patch) | |
tree | 5210cb06b6e421c24cf03391ccdd7e32c57937de /drivers/gpu/drm/radeon/evergreen.c | |
parent | drm/radeon/kms: minor HDMI audio cleanups (diff) | |
download | linux-69d2ae574b3a4b35e4970d8dec0bd598cfbe68a8.tar.xz linux-69d2ae574b3a4b35e4970d8dec0bd598cfbe68a8.zip |
drm/radeon/kms: support for audio on Evergreen
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index e4c384b9511c..a7da8d437161 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -3069,6 +3069,12 @@ static int evergreen_startup(struct radeon_device *rdev) if (r) return r; + r = r600_audio_init(rdev); + if (r) { + DRM_ERROR("radeon: audio init failed\n"); + return r; + } + return 0; } @@ -3100,12 +3106,19 @@ int evergreen_resume(struct radeon_device *rdev) return r; } + r = r600_audio_init(rdev); + if (r) { + DRM_ERROR("radeon: audio resume failed\n"); + return r; + } + return r; } int evergreen_suspend(struct radeon_device *rdev) { + r600_audio_fini(rdev); /* FIXME: we should wait for ring to be empty */ r700_cp_stop(rdev); rdev->cp.ready = false; @@ -3225,6 +3238,7 @@ int evergreen_init(struct radeon_device *rdev) void evergreen_fini(struct radeon_device *rdev) { + r600_audio_fini(rdev); r600_blit_fini(rdev); r700_cp_fini(rdev); r600_irq_fini(rdev); |