diff options
Diffstat (limited to 'sound/soc/pxa/mioa701_wm9713.c')
-rw-r--r-- | sound/soc/pxa/mioa701_wm9713.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/pxa/mioa701_wm9713.c b/sound/soc/pxa/mioa701_wm9713.c index 97b711e12821..bbea7780eac6 100644 --- a/sound/soc/pxa/mioa701_wm9713.c +++ b/sound/soc/pxa/mioa701_wm9713.c | |||
@@ -56,8 +56,6 @@ | |||
56 | #include "pxa2xx-ac97.h" | 56 | #include "pxa2xx-ac97.h" |
57 | #include "../codecs/wm9713.h" | 57 | #include "../codecs/wm9713.h" |
58 | 58 | ||
59 | #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) | ||
60 | |||
61 | #define AC97_GPIO_PULL 0x58 | 59 | #define AC97_GPIO_PULL 0x58 |
62 | 60 | ||
63 | /* Use GPIO8 for rear speaker amplifier */ | 61 | /* Use GPIO8 for rear speaker amplifier */ |
@@ -133,10 +131,11 @@ static int mioa701_wm9713_init(struct snd_soc_pcm_runtime *rtd) | |||
133 | unsigned short reg; | 131 | unsigned short reg; |
134 | 132 | ||
135 | /* Add mioa701 specific widgets */ | 133 | /* Add mioa701 specific widgets */ |
136 | snd_soc_dapm_new_controls(dapm, ARRAY_AND_SIZE(mioa701_dapm_widgets)); | 134 | snd_soc_dapm_new_controls(dapm, mioa701_dapm_widgets, |
135 | ARRAY_SIZE(mioa701_dapm_widgets)); | ||
137 | 136 | ||
138 | /* Set up mioa701 specific audio path audio_mapnects */ | 137 | /* Set up mioa701 specific audio path audio_mapnects */ |
139 | snd_soc_dapm_add_routes(dapm, ARRAY_AND_SIZE(audio_map)); | 138 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
140 | 139 | ||
141 | /* Prepare GPIO8 for rear speaker amplifier */ | 140 | /* Prepare GPIO8 for rear speaker amplifier */ |
142 | reg = codec->driver->read(codec, AC97_GPIO_CFG); | 141 | reg = codec->driver->read(codec, AC97_GPIO_CFG); |