diff options
author | Jaya Kumar <jayakumar.lkml@gmail.com> | 2008-11-05 17:30:08 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-10 17:14:37 +0100 |
commit | b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4 (patch) | |
tree | 5c2e30e9e73e2542e9c97de2d689af17db358b0f /sound/pci/cs5535audio/cs5535audio.h | |
parent | 0bed7b292d68f82316bfb8cd521e16c867689efe (diff) | |
download | blackbird-op-linux-b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4.tar.gz blackbird-op-linux-b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4.zip |
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.h')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h index 66bae7664193..57e9c65e6854 100644 --- a/sound/pci/cs5535audio/cs5535audio.h +++ b/sound/pci/cs5535audio/cs5535audio.h @@ -78,6 +78,7 @@ struct cs5535audio_dma { unsigned int buf_addr, buf_bytes; unsigned int period_bytes, periods; u32 saved_prd; + int pcm_open_flag; }; struct cs5535audio { |