summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/ttc-dkb.c
diff options
context:
space:
mode:
authorJarkko Nikula2014-05-19 15:17:27 +0200
committerMark Brown2014-05-19 18:19:18 +0200
commitd77a14b579f6bfe2d149d3bcc5bd306e20d2d652 (patch)
tree5e40d7fa7a209b113a5ce0a27677e7f91ce8809b /sound/soc/pxa/ttc-dkb.c
parentASoC: Remove needless snd_soc_dapm_sync() from machine driver inits (diff)
downloadkernel-qcow2-linux-d77a14b579f6bfe2d149d3bcc5bd306e20d2d652.tar.gz
kernel-qcow2-linux-d77a14b579f6bfe2d149d3bcc5bd306e20d2d652.tar.xz
kernel-qcow2-linux-d77a14b579f6bfe2d149d3bcc5bd306e20d2d652.zip
ASoC: Remove needless snd_soc_dapm_enable_pin() from machine driver inits
ALSA SoC core marks widgets as connected by default when they are initialized in snd_soc_dapm_new_control() so there is no need to call snd_soc_dapm_enable_pin() from machine driver init functions. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/pxa/ttc-dkb.c')
-rw-r--r--sound/soc/pxa/ttc-dkb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/pxa/ttc-dkb.c b/sound/soc/pxa/ttc-dkb.c
index 0b535b570622..9d7c5b7e9539 100644
--- a/sound/soc/pxa/ttc-dkb.c
+++ b/sound/soc/pxa/ttc-dkb.c
@@ -78,10 +78,6 @@ 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;
- /* connected pins */
- snd_soc_dapm_enable_pin(dapm, "Ext Speaker");
- snd_soc_dapm_enable_pin(dapm, "Ext Mic 1");
- snd_soc_dapm_enable_pin(dapm, "Ext Mic 3");
snd_soc_dapm_disable_pin(dapm, "Headset Mic 2");
snd_soc_dapm_disable_pin(dapm, "Headset Stereophone");