diff options
author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2023-08-02 20:57:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-07 14:32:51 +0100 |
commit | 73864428ba983bc35e1efabc2e3ec04c6d87c67c (patch) | |
tree | f9e250035ac012e47d9894dc246136e830e48959 /sound/soc/mediatek | |
parent | 105e84586bfcbe8e48e386936899c4eb8c00be71 (diff) | |
download | lwn-73864428ba983bc35e1efabc2e3ec04c6d87c67c.tar.gz lwn-73864428ba983bc35e1efabc2e3ec04c6d87c67c.zip |
ASoC: mediatek: mt8173-max98090: Configure jack as a Headset jack
This driver has correctly mapped jack kcontrols for Headphone and
Headset Mic. However, it is configuring the jack to only care about
Headphone events. The MAX98090 codec used here can detect both
connections, so configure the jack as such.
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Link: https://lore.kernel.org/r/20230802175737.263412-13-alpernebiyasak@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek')
-rw-r--r-- | sound/soc/mediatek/mt8173/mt8173-max98090.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8173/mt8173-max98090.c b/sound/soc/mediatek/mt8173/mt8173-max98090.c index c2b0619b6158..bfb2094758ff 100644 --- a/sound/soc/mediatek/mt8173/mt8173-max98090.c +++ b/sound/soc/mediatek/mt8173/mt8173-max98090.c @@ -70,7 +70,7 @@ static int mt8173_max98090_init(struct snd_soc_pcm_runtime *runtime) struct snd_soc_component *component = asoc_rtd_to_codec(runtime, 0)->component; /* enable jack detection */ - ret = snd_soc_card_jack_new_pins(card, "Headphone", SND_JACK_HEADPHONE, + ret = snd_soc_card_jack_new_pins(card, "Headphone", SND_JACK_HEADSET, &mt8173_max98090_jack, mt8173_max98090_jack_pins, ARRAY_SIZE(mt8173_max98090_jack_pins)); |