13 #include <linux/module.h>
19 #include "../codecs/wm8580.h"
29 #define SMDK_WM8580_FREQ 12000000
119 .hw_params = smdk_hw_params,
135 {
"AINL",
NULL,
"MicIn"},
138 {
"AINL",
NULL,
"LineIn"},
139 {
"AINR",
NULL,
"LineIn"},
142 {
"Front",
NULL,
"VOUT1L"},
143 {
"Front",
NULL,
"VOUT1R"},
146 {
"Center+Sub",
NULL,
"VOUT2L"},
147 {
"Center+Sub",
NULL,
"VOUT2R"},
150 {
"Rear",
NULL,
"VOUT3L"},
151 {
"Rear",
NULL,
"VOUT3R"},
175 .name =
"WM8580 PAIF RX",
176 .stream_name =
"Playback",
177 .cpu_dai_name =
"samsung-i2s.0",
178 .codec_dai_name =
"wm8580-hifi-playback",
179 .platform_name =
"samsung-audio",
180 .codec_name =
"wm8580.0-001b",
184 .name =
"WM8580 PAIF TX",
185 .stream_name =
"Capture",
186 .cpu_dai_name =
"samsung-i2s.0",
187 .codec_dai_name =
"wm8580-hifi-capture",
188 .platform_name =
"samsung-audio",
189 .codec_name =
"wm8580.0-001b",
190 .init = smdk_wm8580_init_paiftx,
194 .name =
"Sec_FIFO TX",
195 .stream_name =
"Playback",
196 .cpu_dai_name =
"samsung-i2s.x",
197 .codec_dai_name =
"wm8580-hifi-playback",
198 .platform_name =
"samsung-audio",
199 .codec_name =
"wm8580.0-001b",
207 .dai_link = smdk_dai,
210 .dapm_widgets = smdk_wm8580_dapm_widgets,
211 .num_dapm_widgets =
ARRAY_SIZE(smdk_wm8580_dapm_widgets),
212 .dapm_routes = smdk_wm8580_audio_map,
213 .num_dapm_routes =
ARRAY_SIZE(smdk_wm8580_audio_map),
218 static int __init smdk_audio_init(
void)
223 if (machine_is_smdkc100()
224 || machine_is_smdkv210() || machine_is_smdkc110()) {
229 }
else if (machine_is_smdk6410()) {
231 str[
strlen(str) - 1] =
'2';
233 str[
strlen(str) - 1] =
'2';
237 if (!smdk_snd_device)
240 platform_set_drvdata(smdk_snd_device, &smdk);
250 static void __exit smdk_audio_exit(
void)