ASoC: mediatek: mt8183: remove unused DAPM pins
authorTzung-Bi Shih <tzungbi@google.com>
Wed, 22 May 2019 14:55:05 +0000 (22:55 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 23 May 2019 13:34:36 +0000 (14:34 +0100)
Kernel emits the following messages when booting.
ASoC: DAPM unknown pin Headset Mic
ASoC: DAPM unknown pin Headphone

Remove the unused DAPM pins.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c

index 31ea8632c3977c900b29b11088e548ae18d0a91f..231fb49d79b9e5a5a43957938a54e4cd18e73178 100644 (file)
 
 static struct snd_soc_jack headset_jack;
 
-/* Headset jack detection DAPM pins */
-static struct snd_soc_jack_pin headset_jack_pins[] = {
-       {
-               .pin = "Headphone",
-               .mask = SND_JACK_HEADPHONE,
-       },
-       {
-               .pin = "Headset Mic",
-               .mask = SND_JACK_MICROPHONE,
-       },
-};
-
 static struct snd_soc_dai_link_component
 mt8183_da7219_max98357_external_codecs[] = {
        {
@@ -375,8 +363,7 @@ mt8183_da7219_max98357_headset_init(struct snd_soc_component *component)
                                    SND_JACK_BTN_0 | SND_JACK_BTN_1 |
                                    SND_JACK_BTN_2 | SND_JACK_BTN_3,
                                    &headset_jack,
-                                   headset_jack_pins,
-                                   ARRAY_SIZE(headset_jack_pins));
+                                   NULL, 0);
        if (ret)
                return ret;
 
index 4e44e5689d6f70d2d6197fe0fa330aa482bdc816..1ba7aa58e4b6ce8c561a7028820b55716c418175 100644 (file)
 
 static struct snd_soc_jack headset_jack;
 
-/* Headset jack detection DAPM pins */
-static struct snd_soc_jack_pin headset_jack_pins[] = {
-       {
-               .pin = "Headphone",
-               .mask = SND_JACK_HEADPHONE,
-       },
-       {
-               .pin = "Headset Mic",
-               .mask = SND_JACK_MICROPHONE,
-       },
-
-};
-
 static int mt8183_mt6358_i2s_hw_params(struct snd_pcm_substream *substream,
                                       struct snd_pcm_hw_params *params)
 {
@@ -328,8 +315,7 @@ mt8183_mt6358_ts3a227_max98357_headset_init(struct snd_soc_component *component)
                                    SND_JACK_BTN_0 | SND_JACK_BTN_1 |
                                    SND_JACK_BTN_2 | SND_JACK_BTN_3,
                                    &headset_jack,
-                                   headset_jack_pins,
-                                   ARRAY_SIZE(headset_jack_pins));
+                                   NULL, 0);
        if (ret)
                return ret;