ASoC: ttc-dkb: Remove unnecessary snd_soc_dapm_disable_pin() calls
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 9 Jan 2015 20:28:21 +0000 (21:28 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jan 2015 20:30:58 +0000 (20:30 +0000)
The "Headset Mic 2" and the "Headset Stereophone" widget are managed by the
jack detection logic. Their will be set depending on whether something is
connected to the jack or not. There is no need to manually change the state
beforehand as it will be overwritten anyway.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/ttc-dkb.c

index e3d7257ad09ca1fa115c674d0d75eb6abae653e7..5001dbb9b257764d9b88427de5bc86bebfba5a7b 100644 (file)
@@ -76,10 +76,6 @@ static const struct snd_soc_dapm_route ttc_audio_map[] = {
 static int ttc_pm860x_init(struct snd_soc_pcm_runtime *rtd)
 {
        struct snd_soc_codec *codec = rtd->codec;
-       struct snd_soc_dapm_context *dapm = &codec->dapm;
-
-       snd_soc_dapm_disable_pin(dapm, "Headset Mic 2");
-       snd_soc_dapm_disable_pin(dapm, "Headset Stereophone");
 
        /* Headset jack detection */
        snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE
This page took 0.025553 seconds and 5 git commands to generate.