From: Lars-Peter Clausen Date: Sun, 3 May 2015 17:27:08 +0000 (+0200) Subject: ASoC: smartq: Remove unnecessary snd_soc_dapm_disable_pin() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=76387a52e20ead38a3e322f28611d4a57f169f8a;p=deliverable%2Flinux.git ASoC: smartq: Remove unnecessary snd_soc_dapm_disable_pin() The "Headphone Jack" widget is managed by the jack detection layer, there is no need to manually disable. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/smartq_wm8987.c b/sound/soc/samsung/smartq_wm8987.c index dfbe2db1c407..c75f98d4931d 100644 --- a/sound/soc/samsung/smartq_wm8987.c +++ b/sound/soc/samsung/smartq_wm8987.c @@ -147,9 +147,6 @@ static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd) snd_soc_dapm_nc_pin(dapm, "OUT3"); snd_soc_dapm_nc_pin(dapm, "ROUT1"); - /* set endpoints to default off mode */ - snd_soc_dapm_disable_pin(dapm, "Headphone Jack"); - /* Headphone jack detection */ err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, &smartq_jack,