diff options
Diffstat (limited to 'sound/soc/pxa/mioa701_wm9713.c')
-rw-r--r-- | sound/soc/pxa/mioa701_wm9713.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sound/soc/pxa/mioa701_wm9713.c b/sound/soc/pxa/mioa701_wm9713.c index f284cc54bc80..0d70fc8c12bd 100644 --- a/sound/soc/pxa/mioa701_wm9713.c +++ b/sound/soc/pxa/mioa701_wm9713.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <sound/core.h> | 50 | #include <sound/core.h> |
51 | #include <sound/pcm.h> | 51 | #include <sound/pcm.h> |
52 | #include <sound/soc.h> | 52 | #include <sound/soc.h> |
53 | #include <sound/soc-dapm.h> | ||
54 | #include <sound/initval.h> | 53 | #include <sound/initval.h> |
55 | #include <sound/ac97_codec.h> | 54 | #include <sound/ac97_codec.h> |
56 | 55 | ||
@@ -130,13 +129,14 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
130 | static int mioa701_wm9713_init(struct snd_soc_pcm_runtime *rtd) | 129 | static int mioa701_wm9713_init(struct snd_soc_pcm_runtime *rtd) |
131 | { | 130 | { |
132 | struct snd_soc_codec *codec = rtd->codec; | 131 | struct snd_soc_codec *codec = rtd->codec; |
132 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
133 | unsigned short reg; | 133 | unsigned short reg; |
134 | 134 | ||
135 | /* Add mioa701 specific widgets */ | 135 | /* Add mioa701 specific widgets */ |
136 | snd_soc_dapm_new_controls(codec, ARRAY_AND_SIZE(mioa701_dapm_widgets)); | 136 | snd_soc_dapm_new_controls(dapm, ARRAY_AND_SIZE(mioa701_dapm_widgets)); |
137 | 137 | ||
138 | /* Set up mioa701 specific audio path audio_mapnects */ | 138 | /* Set up mioa701 specific audio path audio_mapnects */ |
139 | snd_soc_dapm_add_routes(codec, ARRAY_AND_SIZE(audio_map)); | 139 | snd_soc_dapm_add_routes(dapm, ARRAY_AND_SIZE(audio_map)); |
140 | 140 | ||
141 | /* Prepare GPIO8 for rear speaker amplifier */ | 141 | /* Prepare GPIO8 for rear speaker amplifier */ |
142 | reg = codec->driver->read(codec, AC97_GPIO_CFG); | 142 | reg = codec->driver->read(codec, AC97_GPIO_CFG); |
@@ -146,12 +146,12 @@ static int mioa701_wm9713_init(struct snd_soc_pcm_runtime *rtd) | |||
146 | reg = codec->driver->read(codec, AC97_3D_CONTROL); | 146 | reg = codec->driver->read(codec, AC97_3D_CONTROL); |
147 | codec->driver->write(codec, AC97_3D_CONTROL, reg | 0xc000); | 147 | codec->driver->write(codec, AC97_3D_CONTROL, reg | 0xc000); |
148 | 148 | ||
149 | snd_soc_dapm_enable_pin(codec, "Front Speaker"); | 149 | snd_soc_dapm_enable_pin(dapm, "Front Speaker"); |
150 | snd_soc_dapm_enable_pin(codec, "Rear Speaker"); | 150 | snd_soc_dapm_enable_pin(dapm, "Rear Speaker"); |
151 | snd_soc_dapm_enable_pin(codec, "Front Mic"); | 151 | snd_soc_dapm_enable_pin(dapm, "Front Mic"); |
152 | snd_soc_dapm_enable_pin(codec, "GSM Line In"); | 152 | snd_soc_dapm_enable_pin(dapm, "GSM Line In"); |
153 | snd_soc_dapm_enable_pin(codec, "GSM Line Out"); | 153 | snd_soc_dapm_enable_pin(dapm, "GSM Line Out"); |
154 | snd_soc_dapm_sync(codec); | 154 | snd_soc_dapm_sync(dapm); |
155 | 155 | ||
156 | return 0; | 156 | return 0; |
157 | } | 157 | } |