mirror_ubuntu-kernels/sound/soc/mediatek/mt8192
Nícolas F. R. A. Prado 194ff8db03
ASoC: mediatek: mt8192-mt6359: Expose individual headset jack pins
The rt5682 codec is able to distinguish between two event types:
headphone insertion/removal and headset microphone insertion/removal.
However, currently, the mt8192-mt6359 driver exposes a single kcontrol
for the headset jack, so userspace isn't able to differentiate between
the two events.

Add a definition for the headset jack pins, so that a separate jack
kcontrol is created for each one, allowing userspace to track and handle
them individually.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220922235951.252532-2-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-09-23 13:56:04 +01:00
..
Makefile ASoC: mediatek: mt8192: add machine driver with mt6359, rt1015 and rt5682 2020-11-04 17:51:52 +00:00
mt8192-afe-clk.c
mt8192-afe-clk.h
mt8192-afe-common.h ASoC: mediatek: mt8192: Allow setting shared clocks from machine driver 2022-09-09 18:48:52 +01:00
mt8192-afe-control.c
mt8192-afe-gpio.c ASoC: mediatek: mt8192: Make some symbols static 2020-11-05 14:52:32 +00:00
mt8192-afe-gpio.h
mt8192-afe-pcm.c ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt8192-dai-adda.c ASoC: mediatek: mt8192: Delete a redundant condition branch 2021-05-10 13:05:33 +01:00
mt8192-dai-i2s.c ASoC: mediatek: mt8192: Remove clock share parsing from DT 2022-09-09 18:48:54 +01:00
mt8192-dai-pcm.c ASoC: mediatek: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:55 +00:00
mt8192-dai-tdm.c ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge 2021-03-12 14:25:32 +00:00
mt8192-interconnection.h
mt8192-mt6359-rt1015-rt5682.c ASoC: mediatek: mt8192-mt6359: Expose individual headset jack pins 2022-09-23 13:56:04 +01:00
mt8192-reg.h ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge 2021-03-12 14:25:32 +00:00