]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: mediatek: mt8183-da7219: support jack detection for LINEOUT
authorTzung-Bi Shih <tzungbi@google.com>
Mon, 5 Oct 2020 07:47:48 +0000 (15:47 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2020 14:32:12 +0000 (15:32 +0100)
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>
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c

index 15e48cde492197d8780db50123444b572208d943..4d69ea31bfe4c142b34c86ec0568d569076b0289 100644 (file)
@@ -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)