Skip to content

Commit

Permalink
drm/radeon/kms: do not preset audio stuff and start timer when not us…
Browse files Browse the repository at this point in the history
…ing audio

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Rafał Miłecki authored and Dave Airlie committed Mar 1, 2010
1 parent 68de774 commit c8792d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/radeon/r600_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ static void r600_audio_engine_enable(struct radeon_device *rdev, bool enable)
*/
int r600_audio_init(struct radeon_device *rdev)
{
if (!r600_audio_chipset_supported(rdev))
if (!radeon_audio || !r600_audio_chipset_supported(rdev))
return 0;

r600_audio_engine_enable(rdev, radeon_audio);
r600_audio_engine_enable(rdev, true);

rdev->audio_channels = -1;
rdev->audio_rate = -1;
Expand Down Expand Up @@ -266,7 +266,7 @@ void r600_audio_set_clock(struct drm_encoder *encoder, int clock)
*/
void r600_audio_fini(struct radeon_device *rdev)
{
if (!r600_audio_chipset_supported(rdev))
if (!radeon_audio || !r600_audio_chipset_supported(rdev))
return;

del_timer(&rdev->audio_timer);
Expand Down

0 comments on commit c8792d5

Please sign in to comment.