summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@google.com>2020-10-05 09:47:48 +0200
committerMark Brown <broonie@kernel.org>2020-10-05 16:32:12 +0200
commit859ffd0af117e7ebc4d744a648551443cc90f150 (patch)
tree9589499f20f17a6d77b589e698c773a09d80ff5c
parentASoC: mchp-spdifrx: convert to devm_platform_get_and_ioremap_resource (diff)
downloadlinux-859ffd0af117e7ebc4d744a648551443cc90f150.tar.xz
linux-859ffd0af117e7ebc4d744a648551443cc90f150.zip
ASoC: mediatek: mt8183-da7219: support jack detection for LINEOUT
Supports jack detection for LINEOUT. Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20201005074748.3394630-1-tzungbi@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
index 15e48cde4921..4d69ea31bfe4 100644
--- a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
+++ b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
@@ -549,7 +549,8 @@ mt8183_da7219_max98357_headset_init(struct snd_soc_component *component)
"Headset Jack",
SND_JACK_HEADSET |
SND_JACK_BTN_0 | SND_JACK_BTN_1 |
- SND_JACK_BTN_2 | SND_JACK_BTN_3,
+ SND_JACK_BTN_2 | SND_JACK_BTN_3 |
+ SND_JACK_LINEOUT,
&priv->headset_jack,
NULL, 0);
if (ret)