11 #include <linux/module.h>
18 #include "../codecs/wm8580.h"
32 #define SMDK_WM8580_EXT_OSC 12000000
33 #define SMDK_WM8580_EXT_MCLK 4096000
34 #define SMDK_WM8580_EXT_VOICE 2048000
36 static unsigned long mclk_freq;
37 static unsigned long xtal_freq;
79 if (mclk_freq == xtal_freq) {
101 xtal_freq, mclk_freq);
121 .hw_params = smdk_wm8580_pcm_hw_params,
126 .name =
"WM8580 PAIF PCM RX",
127 .stream_name =
"Playback",
128 .cpu_dai_name =
"samsung-pcm.0",
129 .codec_dai_name =
"wm8580-hifi-playback",
130 .platform_name =
"samsung-audio",
131 .codec_name =
"wm8580.0-001b",
132 .ops = &smdk_wm8580_pcm_ops,
134 .name =
"WM8580 PAIF PCM TX",
135 .stream_name =
"Capture",
136 .cpu_dai_name =
"samsung-pcm.0",
137 .codec_dai_name =
"wm8580-hifi-capture",
138 .platform_name =
"samsung-audio",
139 .codec_name =
"wm8580.0-001b",
140 .ops = &smdk_wm8580_pcm_ops,
147 .dai_link = smdk_dai,
163 if (machine_is_smdkc110() || machine_is_smdkv210())
166 smdk_pcm.
dev = &pdev->
dev;
169 dev_err(&pdev->
dev,
"snd_soc_register_card failed %d\n", ret);
179 platform_set_drvdata(pdev,
NULL);
186 .name =
"samsung-smdk-pcm",
188 .probe = snd_smdk_probe,