ASoC: sgtl5000: prevent playback to be muted when terminating concurrent capture
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 31 Jul 2013 14:44:29 +0000 (16:44 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 1 Aug 2013 13:48:17 +0000 (14:48 +0100)
commitf091f3f07328f75d20a2a5970d1f8b58d95fc990
tree1927daf3cf5962c30d94b865d9c27e5cd59d7d36
parent5ae90d8e467e625e447000cb4335c4db973b1095
ASoC: sgtl5000: prevent playback to be muted when terminating concurrent capture

When a sound capture/playback is terminated while a playback/capture
is running, power_vag_event() will clear SGTL5000_CHIP_ANA_POWER in
the SND_SOC_DAPM_PRE_PMD event, thus muting the respective other
channel.

Don't clear SGTL5000_CHIP_ANA_POWER when both DAC and ADC are active
to prevent this.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c