Andy Green 6ed2597883 ALSA: ASoC: Don't block system resume
On OpenMoko soc-audio resume is taking 700ms of the whole resume time of
1.3s, dominated by writes to the codec over I2C.  This patch shunts the
resume guts into a workqueue which then is done asynchronously.

The "card" is locked using the ALSA power state APIs as suggested by
Mark Brown.

[Added fix for race with resume to suspend and fixed a couple of nits
from checkpatch -- broonie.]

Signed-off-by: Andy Green <andy@openmoko.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-06-16 09:32:31 +02:00
..
2008-01-31 17:29:41 +01:00
2008-01-31 17:29:48 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-01-31 17:29:13 +01:00
2007-10-16 15:58:10 +02:00
2006-03-22 10:24:57 +01:00
2008-04-29 19:01:56 +02:00
2006-01-03 12:18:06 +01:00
2008-01-31 17:29:47 +01:00
2007-02-09 09:01:14 +01:00
2005-04-16 15:20:36 -07:00
2008-06-16 09:32:31 +02:00
2005-04-16 15:20:36 -07:00
2008-05-27 15:56:20 +02:00
2008-06-03 09:06:20 +02:00