diff options
Diffstat (limited to 'sound/soc/pxa/saarb.c')
-rw-r--r-- | sound/soc/pxa/saarb.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sound/soc/pxa/saarb.c b/sound/soc/pxa/saarb.c index d63cb474b4e1..9595189fc681 100644 --- a/sound/soc/pxa/saarb.c +++ b/sound/soc/pxa/saarb.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <sound/pcm.h> | 18 | #include <sound/pcm.h> |
19 | #include <sound/pcm_params.h> | 19 | #include <sound/pcm_params.h> |
20 | #include <sound/soc.h> | 20 | #include <sound/soc.h> |
21 | #include <sound/soc-dapm.h> | ||
22 | #include <sound/jack.h> | 21 | #include <sound/jack.h> |
23 | 22 | ||
24 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
@@ -133,20 +132,21 @@ static struct snd_soc_card snd_soc_card_saarb = { | |||
133 | static int saarb_pm860x_init(struct snd_soc_pcm_runtime *rtd) | 132 | static int saarb_pm860x_init(struct snd_soc_pcm_runtime *rtd) |
134 | { | 133 | { |
135 | struct snd_soc_codec *codec = rtd->codec; | 134 | struct snd_soc_codec *codec = rtd->codec; |
135 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
136 | int ret; | 136 | int ret; |
137 | 137 | ||
138 | snd_soc_dapm_new_controls(codec, saarb_dapm_widgets, | 138 | snd_soc_dapm_new_controls(dapm, saarb_dapm_widgets, |
139 | ARRAY_SIZE(saarb_dapm_widgets)); | 139 | ARRAY_SIZE(saarb_dapm_widgets)); |
140 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 140 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
141 | 141 | ||
142 | /* connected pins */ | 142 | /* connected pins */ |
143 | snd_soc_dapm_enable_pin(codec, "Ext Speaker"); | 143 | snd_soc_dapm_enable_pin(dapm, "Ext Speaker"); |
144 | snd_soc_dapm_enable_pin(codec, "Ext Mic 1"); | 144 | snd_soc_dapm_enable_pin(dapm, "Ext Mic 1"); |
145 | snd_soc_dapm_enable_pin(codec, "Ext Mic 3"); | 145 | snd_soc_dapm_enable_pin(dapm, "Ext Mic 3"); |
146 | snd_soc_dapm_disable_pin(codec, "Headset Mic 2"); | 146 | snd_soc_dapm_disable_pin(dapm, "Headset Mic 2"); |
147 | snd_soc_dapm_disable_pin(codec, "Headset Stereophone"); | 147 | snd_soc_dapm_disable_pin(dapm, "Headset Stereophone"); |
148 | 148 | ||
149 | ret = snd_soc_dapm_sync(codec); | 149 | ret = snd_soc_dapm_sync(dapm); |
150 | if (ret) | 150 | if (ret) |
151 | return ret; | 151 | return ret; |
152 | 152 | ||