Commit 76d39d0a authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Jaroslav Kysela

ALSA: tosa: fix compilation with new DAPM API

Signed-off-by: default avatarDmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent af134528
...@@ -153,7 +153,7 @@ SND_SOC_DAPM_SPK("Speaker", NULL), ...@@ -153,7 +153,7 @@ SND_SOC_DAPM_SPK("Speaker", NULL),
}; };
/* tosa audio map */ /* tosa audio map */
static const snd_soc_dapm_route audio_map[] = { static const struct snd_soc_dapm_route audio_map[] = {
/* headphone connected to HPOUTL, HPOUTR */ /* headphone connected to HPOUTL, HPOUTR */
{"Headphone Jack", NULL, "HPOUTL"}, {"Headphone Jack", NULL, "HPOUTL"},
...@@ -205,7 +205,7 @@ static int tosa_ac97_init(struct snd_soc_codec *codec) ...@@ -205,7 +205,7 @@ static int tosa_ac97_init(struct snd_soc_codec *codec)
} }
/* add tosa specific widgets */ /* add tosa specific widgets */
snd_soc_dapm_new_controls(codec, &tosa_dapm_widgets, snd_soc_dapm_new_controls(codec, tosa_dapm_widgets,
ARRAY_SIZE(tosa_dapm_widgets)); ARRAY_SIZE(tosa_dapm_widgets));
/* set up tosa specific audio path audio_map */ /* set up tosa specific audio path audio_map */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment