ASoC: dont call dapm_sync while reporting jack always
authorVinod Koul <vinod.koul@intel.com>
Mon, 21 Oct 2013 13:37:34 +0000 (19:07 +0530)
committerMark Brown <broonie@linaro.org>
Tue, 22 Oct 2013 08:29:02 +0000 (09:29 +0100)
commit30a765d6433413c0eba90c969eecf12dfa2d111a
tree63c8ad1b2420212668552790f39700ef168474a0
parent1dd275b60e5db4d0bb3763490b519176dcfc4308
ASoC: dont call dapm_sync while reporting jack always

While reporting the jack status snd_soc_jack_report() invokes snd_soc_dapm_sync()
always. This should be required when we have pins associated with jack and
reporting enables or disables these.
So add a check for this case

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-jack.c