]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Don't defer resume work for AC97 codecs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 31 Mar 2009 10:27:03 +0000 (11:27 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 2 Apr 2009 15:34:36 +0000 (16:34 +0100)
commit86d78371fda0f3fac6432cbe467e9de07cea35b6
tree4a3f4973cca4c092c496c1eda887198f1a0ab4a7
parentcb4d43ca0de82110960954e7d7d9cc374d63d24b
ASoC: Don't defer resume work for AC97 codecs

AC97 devices may have other drivers hanging off them directly so need to
have resumed when the resume function returns meaning that we can't defer
the resume - complete it immediately for them. Non-AC97 devices should
not have other drivers hanging directly off the ASoC devices.

We only really need the deferral for non-AC97 devices - it's there since
some I2C buses are very slow and non-AC97 codecs often have large numbers
of registers to restore and require delays to bring the codec up cleanly
leading to a substantial impact on overall resume time.

Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c