linux/sound/soc
Mark Brown 9949788b79 ASoC: Refactor DAPM suspend handling
Instead of using stream events to handle power down during suspend
integrate the handling with the normal widget path checking by
replacing all cases where we report a connected endpoint in a path
with a function snd_soc_dapm_suspend_check() which looks at the ALSA
power state for the card and reports false if we are in a D3 state.

Since the core moves us into D3 prior to initating the suspend all
power checks during suspend will cause the widgets to be powered
down. In order to ensure that widgets are powered up on resume set
the card to D2 at the start of resume handling (ALSA API calls
require D0 so we are still protected against userspace access).

Tested-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-05-10 10:36:36 +01:00
..
atmel ALSA: ASoC: move dma_data from snd_soc_dai to snd_soc_pcm_stream 2010-04-05 19:14:11 +01:00
au1x MIPS/SOUND: Alchemy: DB1200 AC97+I2S audio support. 2010-02-27 12:53:01 +01:00
blackfin ASoC: change bf5xx-ad1938 machine driver to bf5xx-ad193x machine driver 2010-03-19 12:47:34 +00:00
codecs ASoC: Remove unneeded suspend bias managment from CODEC drivers 2010-05-10 10:35:25 +01:00
davinci ALSA: ASoC: move dma_data from snd_soc_dai to snd_soc_pcm_stream 2010-04-05 19:14:11 +01:00
fsl of: add 'of_' prefix to machine_is_compatible() 2010-02-09 08:33:00 -07:00
imx Merge branch 'for-2.6.34' into for-2.6.35 2010-04-17 10:45:54 +09:00
omap ASoC: omap: Add basic audio support for Nokia RX-51/N900 2010-05-06 09:50:11 +01:00
pxa ASoC: Zipit Z2 WM8750 ASoC driver 2010-04-12 11:33:16 +01:00
s3c24xx ASoC: SMDK64XX: Switch to IISv4 CPU driver 2010-05-07 16:46:06 +01:00
s6000 ALSA: ASoC: move dma_data from snd_soc_dai to snd_soc_pcm_stream 2010-04-05 19:14:11 +01:00
sh ASoC: fsi: Add FSI2 device support 2010-03-26 11:17:45 +00:00
txx9 ASoC: txx9aclc: dynamically allocate dmaengine devname 2009-06-25 21:06:30 +01:00
Kconfig ASoC: Hook i.MX into build 2009-08-15 11:37:30 +01:00
Makefile ASoC: Add bit clock rate calculator utility functions 2009-11-12 16:45:48 +00:00
soc-cache.c ASoC: Add debug output tracing all cache register writes 2010-05-05 15:10:17 +01:00
soc-core.c ASoC: Refactor DAPM suspend handling 2010-05-10 10:36:36 +01:00
soc-dapm.c ASoC: Refactor DAPM suspend handling 2010-05-10 10:36:36 +01:00
soc-jack.c ASoC: Allow reporting of NULL jacks 2010-04-23 17:07:10 +01:00
soc-utils.c ASoC: Add BCLK calculation utility for TDM mode too 2009-11-25 19:55:46 +00:00