summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5535audio/cs5535audio.h
diff options
context:
space:
mode:
authorJaya Kumar <jayakumar.lkml@gmail.com>2008-11-05 17:30:08 -0500
committerTakashi Iwai <tiwai@suse.de>2008-12-10 17:14:37 +0100
commitb035ce0f26812292d067fbe2fc9e9d88d5dfcdb4 (patch)
tree5c2e30e9e73e2542e9c97de2d689af17db358b0f /sound/pci/cs5535audio/cs5535audio.h
parent0bed7b292d68f82316bfb8cd521e16c867689efe (diff)
downloadop-kernel-dev-b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4.zip
op-kernel-dev-b035ce0f26812292d067fbe2fc9e9d88d5dfcdb4.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h
index 66bae76..57e9c65 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 {
OpenPOWER on IntegriCloud