diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2014-05-19 17:17:27 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-19 20:19:18 +0400 |
commit | d77a14b579f6bfe2d149d3bcc5bd306e20d2d652 (patch) | |
tree | 5e40d7fa7a209b113a5ce0a27677e7f91ce8809b /sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |
parent | 831ffa45e7465e45ab2244da6bbed6bead47b6bc (diff) | |
download | linux-d77a14b579f6bfe2d149d3bcc5bd306e20d2d652.tar.xz |
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/samsung/s3c24xx_simtec_tlv320aic23.c')
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index 1ac0d7a63a3a..83f6c7d49cd6 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c @@ -52,14 +52,6 @@ static const struct snd_soc_dapm_route base_map[] = { */ static int simtec_tlv320aic23_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_enable_pin(dapm, "Headphone Jack"); - snd_soc_dapm_enable_pin(dapm, "Line In"); - snd_soc_dapm_enable_pin(dapm, "Line Out"); - snd_soc_dapm_enable_pin(dapm, "Mic Jack"); - simtec_audio_init(rtd); return 0; |