OSDN Git Service

ASoC: wm8962: Allow switching between analog and digital inputs
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 2 Feb 2022 16:45:45 +0000 (16:45 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 3 Feb 2022 11:30:59 +0000 (11:30 +0000)
commitb5083c0c948ac7f52ca700af219cb491735ecd4b
tree3cc20b3014b0b0330d4a6810c1c83705aa2e39c3
parentbb45f689fa62110c263c86070bfcb9ecbb6e1e23
ASoC: wm8962: Allow switching between analog and digital inputs

When the DMIC_ENA bit is set the analogue inputs are disconnected from
the digital core of the chip, in favour of the digital microphones.
Currently the driver will always enable DMIC_ENA whilst the GPIOs are
configured for the DMIC function, this means the user can't currently
use both the analog inputs and the digital inputs in one system.

Add an additional DAPM mutex that allows switching between analog and
digital inputs into the digital core.

Reported-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reported-and-tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Link: https://lore.kernel.org/r/20220202164545.30457-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c