]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl-asoc-card: Support Headphone and Microphone Jack detection
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 15 Jul 2020 14:09:39 +0000 (22:09 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2020 22:24:14 +0000 (23:24 +0100)
commit3a8f4a803b4fffd2ec143102e4a40c0b08edf6fa
tree9ef57e5879bdfdffee560f9e5caa186dae1eda02
parent26feecda3457a1a48dfce831f7f8f5abb86b57ac
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>
sound/soc/fsl/Kconfig
sound/soc/fsl/fsl-asoc-card.c