diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-02-26 03:46:33 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-03-01 01:09:40 -0500 |
commit | c8792d5e6cdfeb7db186f6ea654dee90ca3b9c0c (patch) | |
tree | d298dcb5de2ef1b55221f6fd7c67c38ee01d0b32 | |
parent | 68de7745822f0dc2eea940e3c1fc65896d7afc88 (diff) |
drm/radeon/kms: do not preset audio stuff and start timer when not using audio
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/r600_audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/r600_audio.c b/drivers/gpu/drm/radeon/r600_audio.c index 387abaa275a4..668ff4b11c60 100644 --- a/drivers/gpu/drm/radeon/r600_audio.c +++ b/drivers/gpu/drm/radeon/r600_audio.c | |||
@@ -160,10 +160,10 @@ static void r600_audio_engine_enable(struct radeon_device *rdev, bool enable) | |||
160 | */ | 160 | */ |
161 | int r600_audio_init(struct radeon_device *rdev) | 161 | int r600_audio_init(struct radeon_device *rdev) |
162 | { | 162 | { |
163 | if (!r600_audio_chipset_supported(rdev)) | 163 | if (!radeon_audio || !r600_audio_chipset_supported(rdev)) |
164 | return 0; | 164 | return 0; |
165 | 165 | ||
166 | r600_audio_engine_enable(rdev, radeon_audio); | 166 | r600_audio_engine_enable(rdev, true); |
167 | 167 | ||
168 | rdev->audio_channels = -1; | 168 | rdev->audio_channels = -1; |
169 | rdev->audio_rate = -1; | 169 | rdev->audio_rate = -1; |
@@ -266,7 +266,7 @@ void r600_audio_set_clock(struct drm_encoder *encoder, int clock) | |||
266 | */ | 266 | */ |
267 | void r600_audio_fini(struct radeon_device *rdev) | 267 | void r600_audio_fini(struct radeon_device *rdev) |
268 | { | 268 | { |
269 | if (!r600_audio_chipset_supported(rdev)) | 269 | if (!radeon_audio || !r600_audio_chipset_supported(rdev)) |
270 | return; | 270 | return; |
271 | 271 | ||
272 | del_timer(&rdev->audio_timer); | 272 | del_timer(&rdev->audio_timer); |