13 #include <linux/module.h>
30 #include "../codecs/ak4641.h"
37 .pin =
"Headphone Jack",
49 static struct snd_soc_jack_gpio hs_jack_gpio = {
85 .hw_params = hx4700_hw_params,
113 {
"Headphone Jack",
NULL,
"LOUT"},
114 {
"Headphone Jack",
NULL,
"ROUT"},
117 {
"Speaker",
NULL,
"MOUT2"},
120 {
"MICIN",
NULL,
"Built-in Microphone"},
121 {
"AIN",
NULL,
"MICOUT"},
150 err = snd_soc_jack_add_gpios(&hs_jack, 1, &hs_jack_gpio);
158 .stream_name =
"AK4641",
159 .cpu_dai_name =
"pxa2xx-i2s",
160 .codec_dai_name =
"ak4641-hifi",
161 .platform_name =
"pxa-pcm-audio",
162 .codec_name =
"ak4641.0-0012",
163 .init = hx4700_ak4641_init,
171 .name =
"iPAQ hx4700",
173 .dai_link = &hx4700_dai,
175 .dapm_widgets = hx4700_dapm_widgets,
176 .num_dapm_widgets =
ARRAY_SIZE(hx4700_dapm_widgets),
177 .dapm_routes = hx4700_audio_map,
178 .num_dapm_routes =
ARRAY_SIZE(hx4700_audio_map),
181 static struct gpio hx4700_audio_gpios[] = {
190 if (!machine_is_h4700())
198 snd_soc_card_hx4700.
dev = &pdev->
dev;
209 snd_soc_jack_free_gpios(&hs_jack, 1, &hs_jack_gpio);
221 .name =
"hx4700-audio",
225 .probe = hx4700_audio_probe,