diff options
author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2020-07-21 21:27:10 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-30 22:54:39 +0100 |
commit | d0508b4f16049a658d68a7c276ba08296c5a76bc (patch) | |
tree | 2de053ecd6c9ca466f00337039597e35cd9294ba /lib/atomic64_test.c | |
parent | 658bb297e3930b90f80c08ddff18b4065b89a132 (diff) | |
download | lwn-d0508b4f16049a658d68a7c276ba08296c5a76bc.tar.gz lwn-d0508b4f16049a658d68a7c276ba08296c5a76bc.zip |
ASoC: rk3399_gru_sound: Add DAPM pins, kcontrols for jack detection
PulseAudio (and perhaps other userspace utilities) can not detect any
jack for rk3399_gru_sound as the driver doesn't expose related Jack
kcontrols.
This patch adds two DAPM pins to the headset jack, where the
snd_soc_card_jack_new() call automatically creates "Headphones Jack" and
"Headset Mic Jack" kcontrols from them.
With an appropriate ALSA UCM config specifying JackControl fields for
the "Headphones" and "Headset" (mic) devices, PulseAudio can detect
plug/unplug events for both of them after this patch.
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Link: https://lore.kernel.org/r/20200721182709.6895-1-alpernebiyasak@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/atomic64_test.c')
0 files changed, 0 insertions, 0 deletions