diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-06-04 17:18:51 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-05 04:24:33 -0400 |
commit | d4e30ef05c9e0fad9782de34f0acd039e238fd43 (patch) | |
tree | 4334658cd54687fa850982b1dd01c41f61ed7709 /drivers/gpu/drm/radeon/r600.c | |
parent | 99becf1328d8d71dd6f4480e3591d7dcdb389e57 (diff) |
drm/radeon: make audio_init consistent across asics
Call it in the asic startup callback on all asics.
Previously r600 and rv770 called it in the startup
and resume callbacks while all the other asics called
it in the startup callback.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-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.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 45cfcea63507..f30dc95f83b1 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -2426,6 +2426,12 @@ int r600_startup(struct radeon_device *rdev) | |||
2426 | if (r) | 2426 | if (r) |
2427 | return r; | 2427 | return r; |
2428 | 2428 | ||
2429 | r = r600_audio_init(rdev); | ||
2430 | if (r) { | ||
2431 | DRM_ERROR("radeon: audio init failed\n"); | ||
2432 | return r; | ||
2433 | } | ||
2434 | |||
2429 | return 0; | 2435 | return 0; |
2430 | } | 2436 | } |
2431 | 2437 | ||
@@ -2462,12 +2468,6 @@ int r600_resume(struct radeon_device *rdev) | |||
2462 | return r; | 2468 | return r; |
2463 | } | 2469 | } |
2464 | 2470 | ||
2465 | r = r600_audio_init(rdev); | ||
2466 | if (r) { | ||
2467 | DRM_ERROR("radeon: audio resume failed\n"); | ||
2468 | return r; | ||
2469 | } | ||
2470 | |||
2471 | return r; | 2471 | return r; |
2472 | } | 2472 | } |
2473 | 2473 | ||
@@ -2577,9 +2577,6 @@ int r600_init(struct radeon_device *rdev) | |||
2577 | rdev->accel_working = false; | 2577 | rdev->accel_working = false; |
2578 | } | 2578 | } |
2579 | 2579 | ||
2580 | r = r600_audio_init(rdev); | ||
2581 | if (r) | ||
2582 | return r; /* TODO error handling */ | ||
2583 | return 0; | 2580 | return 0; |
2584 | } | 2581 | } |
2585 | 2582 | ||