diff options
| -rw-r--r-- | sound/soc/samsung/smdk_wm8580.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/samsung/smdk_wm8580.c b/sound/soc/samsung/smdk_wm8580.c index 17a2f717ec02..548bfd993788 100644 --- a/sound/soc/samsung/smdk_wm8580.c +++ b/sound/soc/samsung/smdk_wm8580.c | |||
| @@ -136,13 +136,10 @@ static const struct snd_soc_dapm_route smdk_wm8580_audio_map[] = { | |||
| 136 | 136 | ||
| 137 | static int smdk_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd) | 137 | static int smdk_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd) |
| 138 | { | 138 | { |
| 139 | struct snd_soc_codec *codec = rtd->codec; | ||
| 140 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
| 141 | |||
| 142 | /* Enabling the microphone requires the fitting of a 0R | 139 | /* Enabling the microphone requires the fitting of a 0R |
| 143 | * resistor to connect the line from the microphone jack. | 140 | * resistor to connect the line from the microphone jack. |
| 144 | */ | 141 | */ |
| 145 | snd_soc_dapm_disable_pin(dapm, "MicIn"); | 142 | snd_soc_dapm_disable_pin(&rtd->card->dapm, "MicIn"); |
| 146 | 143 | ||
| 147 | return 0; | 144 | return 0; |
| 148 | } | 145 | } |
