12 #include <linux/module.h>
25 #include "../codecs/wm9705.h"
29 #define E740_AUDIO_OUT 1
30 #define E740_AUDIO_IN 2
32 static int e740_audio_power;
34 static void e740_sync_audio_power(
int status)
49 e740_sync_audio_power(e740_audio_power);
57 if (event & SND_SOC_DAPM_PRE_PMU)
62 e740_sync_audio_power(e740_audio_power);
72 e740_output_amp_event, SND_SOC_DAPM_PRE_PMU |
75 e740_mic_amp_event, SND_SOC_DAPM_PRE_PMU |
80 {
"Output Amp",
NULL,
"LOUT"},
81 {
"Output Amp",
NULL,
"ROUT"},
82 {
"Output Amp",
NULL,
"MONOOUT"},
84 {
"Speaker",
NULL,
"Output Amp"},
85 {
"Headphone Jack",
NULL,
"Output Amp"},
87 {
"MIC1",
NULL,
"Mic Amp"},
88 {
"Mic Amp",
NULL,
"Mic (Internal)"},
117 .stream_name =
"AC97 HiFi",
118 .cpu_dai_name =
"pxa2xx-ac97",
119 .codec_dai_name =
"wm9705-hifi",
120 .platform_name =
"pxa-pcm-audio",
121 .codec_name =
"wm9705-codec",
122 .init = e740_ac97_init,
126 .stream_name =
"AC97 Aux",
127 .cpu_dai_name =
"pxa2xx-ac97-aux",
128 .codec_dai_name =
"wm9705-aux",
129 .platform_name =
"pxa-pcm-audio",
130 .codec_name =
"wm9705-codec",
135 .name =
"Toshiba e740",
137 .dai_link = e740_dai,
141 static struct gpio e740_audio_gpios[] = {
161 dev_err(&pdev->
dev,
"snd_soc_register_card() failed: %d\n",
179 .name =
"e740-audio",