Home
last modified time | relevance | path

Searched hist:aa51e3c127a43cf4862db5f0081da281f1aa6429 (Results 1 – 1 of 1) sorted by relevance

/linux/sound/soc/mediatek/mt8195/
H A Dmt8195-mt6359.cdiff aa51e3c127a43cf4862db5f0081da281f1aa6429 Fri Sep 23 01:59:47 CEST 2022 Nícolas F. R. A. Prado <nfraprado@collabora.com> ASoC: mediatek: mt8195: 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 mt8195 ASoC 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-3-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>