|
@@ -133,10 +133,11 @@ static int mioa701_wm9713_init(struct snd_soc_pcm_runtime *rtd)
|
|
|
unsigned short reg;
|
|
|
|
|
|
/* Add mioa701 specific widgets */
|
|
|
- snd_soc_dapm_new_controls(dapm, ARRAY_AND_SIZE(mioa701_dapm_widgets));
|
|
|
+ snd_soc_dapm_new_controls(dapm, mioa701_dapm_widgets,
|
|
|
+ ARRAY_SIZE(mioa701_dapm_widgets));
|
|
|
|
|
|
/* Set up mioa701 specific audio path audio_mapnects */
|
|
|
- snd_soc_dapm_add_routes(dapm, ARRAY_AND_SIZE(audio_map));
|
|
|
+ snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
|
|
|
|
|
|
/* Prepare GPIO8 for rear speaker amplifier */
|
|
|
reg = codec->driver->read(codec, AC97_GPIO_CFG);
|