ASoC: Suppress early calls to snd_soc_dapm_sync()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 7 Oct 2011 13:29:19 +0000 (14:29 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 8 Oct 2011 10:47:32 +0000 (11:47 +0100)
commit4f4c0072228785179d35b2bd9e48081ce9fa51f6
treee54a5b71fa886f1f4bf5bd768a50e951f481e753
parenta1ff89ef3cd6515d378f946db5f3760089bb644e
ASoC: Suppress early calls to snd_soc_dapm_sync()

Ensure we only have one sync during the initial startup of the card by
making snd_soc_dapm_sync() a noop on non-instantiated cards. This avoids
any bounces due to things like jacks reporting their initial state on
partially initialised cards. The callers that don't also get called at
runtime should just be removed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c
sound/soc/soc-dapm.c