ASoC: WM8994: Don't disable the AIF[1|2]CLK_ENA unconditionaly
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 28 Feb 2011 17:24:11 +0000 (17:24 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Mar 2011 23:27:00 +0000 (23:27 +0000)
commita3cff81ac19ace1ce5ba3fc88e46aea2cb4ebe1a
tree3ecbfaf382e1b5e1bee999fe3536b974f3b9b2bd
parent3ee845acba58549578d03a46ed307c0a56c7f777
ASoC: WM8994: Don't disable the AIF[1|2]CLK_ENA unconditionaly

Since we began using the late clock disable functionality, ensure that
we don't disable the clock if any of the ADC or DAC paths are still
enabled.  This happens when we have simultaneous playback and recording.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
sound/soc/codecs/wm8994.c