16 #include <linux/module.h>
18 #include <linux/device.h>
30 #include "../codecs/wm9712.h"
38 .pin =
"Headphone Jack",
44 static struct snd_soc_jack_gpio hs_jack_gpios[] = {
63 {
"Headphone Jack",
NULL,
"HPOUTL"},
64 {
"Headphone Jack",
NULL,
"HPOUTR"},
67 {
"Ext. Speaker",
NULL,
"LOUT2"},
68 {
"Ext. Speaker",
NULL,
"ROUT2"},
71 {
"Ext. Microphone",
NULL,
"MIC1"},
94 if (machine_is_palmld())
121 err = snd_soc_jack_add_gpios(&hs_jack,
ARRAY_SIZE(hs_jack_gpios),
130 .stream_name =
"AC97 HiFi",
131 .cpu_dai_name =
"pxa2xx-ac97",
132 .codec_dai_name =
"wm9712-hifi",
133 .codec_name =
"wm9712-codec",
134 .platform_name =
"pxa-pcm-audio",
135 .init = palm27x_ac97_init,
139 .stream_name =
"AC97 Aux",
140 .cpu_dai_name =
"pxa2xx-ac97-aux",
141 .codec_dai_name =
"wm9712-aux",
142 .codec_name =
"wm9712-codec",
143 .platform_name =
"pxa-pcm-audio",
148 .name =
"Palm/PXA27x",
150 .dai_link = palm27x_dai,
160 if (!(machine_is_palmtx() || machine_is_palmt5() ||
161 machine_is_palmld() || machine_is_palmte2()))
164 if (!pdev->
dev.platform_data) {
165 dev_err(&pdev->
dev,
"please supply platform_data\n");
173 if (!palm27x_snd_device)
176 platform_set_drvdata(palm27x_snd_device, &palm27x_asoc);
197 .probe = palm27x_asoc_probe,
200 .name =
"palm27x-asoc",