diff options
author | Jaya Kumar <jayakumar.lkml@gmail.com> | 2008-11-06 01:30:08 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-10 19:14:37 +0300 |
commit | b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4 (patch) | |
tree | 5c2e30e9e73e2542e9c97de2d689af17db358b0f /sound/pci/cs5535audio/cs5535audio.c | |
parent | 0bed7b292d68f82316bfb8cd521e16c867689efe (diff) | |
download | linux-b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4.tar.xz |
ALSA: cs5535audio: turn off PCM properly if closing the audio device
As per <http://dev.laptop.org/ticket/1420>, we need to properly turn off
the PCM if we're closing the device in order to save power. This also
causes the MIC led to turn off properly.
Signed-off-by: Jaya Kumar <jayakumar.lkml@gmail.com>
Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio.c')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 1d8b16052535..6c886edd06db 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c @@ -159,7 +159,8 @@ static int __devinit snd_cs5535audio_mixer(struct cs5535audio *cs5535au) return err; memset(&ac97, 0, sizeof(ac97)); - ac97.scaps = AC97_SCAP_AUDIO|AC97_SCAP_SKIP_MODEM; + ac97.scaps = AC97_SCAP_AUDIO | AC97_SCAP_SKIP_MODEM + | AC97_SCAP_POWER_SAVE; ac97.private_data = cs5535au; ac97.pci = cs5535au->pci; |