aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/Kconfig
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-07-15 22:09:39 +0800
committerMark Brown <broonie@kernel.org>2020-07-16 23:24:14 +0100
commit3b171194493c5f7b2aa9b76deb402a8e98ab510f (patch)
tree9ef57e5879bdfdffee560f9e5caa186dae1eda02 /sound/soc/fsl/Kconfig
parentASoC: bindings: fsl-asoc-card: Support hp-det-gpio and mic-det-gpio (diff)
downloadlinux-dev-3b171194493c5f7b2aa9b76deb402a8e98ab510f.tar.xz
linux-dev-3b171194493c5f7b2aa9b76deb402a8e98ab510f.zip
ASoC: fsl-asoc-card: Support Headphone and Microphone Jack detection
Use asoc_simple_init_jack function from simple card to implement the Headphone and Microphone detection. Register notifier to disable Speaker when Headphone is plugged in and enable Speaker when Headphone is unplugged. Register notifier to disable Digital Microphone when Analog Microphone is plugged in and enable DMIC when Analog Microphone is unplugged. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Acked-by: Nicolin Chen <nicoleotsuka@gmail.com> Link: https://lore.kernel.org/r/1594822179-1849-4-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/Kconfig')
-rw-r--r--sound/soc/fsl/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig
index ea7b4787a8af..1c4ca5ec8caf 100644
--- a/sound/soc/fsl/Kconfig
+++ b/sound/soc/fsl/Kconfig
@@ -315,6 +315,7 @@ config SND_SOC_FSL_ASOC_CARD
depends on OF && I2C
# enforce SND_SOC_FSL_ASOC_CARD=m if SND_AC97_CODEC=m:
depends on SND_AC97_CODEC || SND_AC97_CODEC=n
+ select SND_SIMPLE_CARD_UTILS
select SND_SOC_IMX_AUDMUX
select SND_SOC_IMX_PCM_DMA
select SND_SOC_FSL_ESAI