16 #include <linux/module.h>
18 #include "../codecs/wm5102.h"
19 #include "../codecs/wm9081.h"
25 #define SYSCLK_RATE (44100 * 1024)
28 #define ASYNCCLK_RATE (48000 * 512)
31 #define BCLK2_RATE (64 * 8000)
37 #define MCLK_RATE 24576000
39 #define WM9081_AUDIO_RATE 44100
40 #define WM9081_MCLK_RATE (WM9081_AUDIO_RATE * 256)
50 if (dapm->
dev != codec_dai->
dev)
61 pr_err(
"Failed to start FLL: %d\n", ret);
68 pr_err(
"Failed to start FLL: %d\n", ret);
87 if (dapm->
dev != codec_dai->
dev)
94 pr_err(
"Failed to stop FLL: %d\n", ret);
100 pr_err(
"Failed to stop FLL: %d\n", ret);
125 dev_err(aif1_dai->
dev,
"Failed to set AIF1 clock: %d\n", ret);
131 dev_err(aif2_dai->
dev,
"Failed to set AIF2 clock: %d\n", ret);
137 dev_err(aif1_dai->
dev,
"Failed to set AIF1 clock: %d\n", ret);
145 dev_err(codec->
dev,
"Failed to set SYSCLK: %d\n", ret);
152 dev_err(codec->
dev,
"Failed to set OPCLK: %d\n", ret);
160 dev_err(codec->
dev,
"Failed to set SYSCLK: %d\n", ret);
167 dev_err(wm9081_dai->
dev,
"Failed to set MCLK: %d\n", ret);
193 .stream_name =
"CPU",
194 .cpu_dai_name =
"samsung-i2s.0",
195 .codec_dai_name =
"wm5102-aif1",
196 .platform_name =
"samsung-audio",
197 .codec_name =
"wm5102-codec",
203 .stream_name =
"Baseband",
204 .cpu_dai_name =
"wm5102-aif2",
205 .codec_dai_name =
"wm1250-ev1",
206 .codec_name =
"wm1250-ev1.1-0027",
210 .params = &baseband_params,
215 .cpu_dai_name =
"wm5102-aif3",
216 .codec_dai_name =
"wm9081-hifi",
217 .codec_name =
"wm9081.1-006c",
221 .params = &sub_params,
228 .stream_name =
"CPU",
229 .cpu_dai_name =
"samsung-i2s.0",
230 .codec_dai_name =
"wm5110-aif1",
231 .platform_name =
"samsung-audio",
232 .codec_name =
"wm5110-codec",
238 .stream_name =
"Baseband",
239 .cpu_dai_name =
"wm5110-aif2",
240 .codec_dai_name =
"wm1250-ev1",
241 .codec_name =
"wm1250-ev1.1-0027",
245 .params = &baseband_params,
250 .cpu_dai_name =
"wm5110-aif3",
251 .codec_dai_name =
"wm9081-hifi",
252 .codec_name =
"wm9081.1-006c",
256 .params = &sub_params,
262 .dev_name =
"wm9081.1-006c",
263 .name_prefix =
"Sub",
268 {
"Sub CLK_SYS",
NULL,
"OPCLK" },
273 .name =
"Bells WM5102",
275 .dai_link = bells_dai_wm5102,
277 .codec_conf = bells_codec_conf,
280 .late_probe = bells_late_probe,
282 .dapm_routes = bells_routes,
285 .set_bias_level = bells_set_bias_level,
286 .set_bias_level_post = bells_set_bias_level_post,
289 .name =
"Bells WM5110",
291 .dai_link = bells_dai_wm5110,
293 .codec_conf = bells_codec_conf,
296 .late_probe = bells_late_probe,
298 .dapm_routes = bells_routes,
301 .set_bias_level = bells_set_bias_level,
302 .set_bias_level_post = bells_set_bias_level_post,
311 bells_cards[pdev->
id].
dev = &pdev->
dev;
316 "snd_soc_register_card(%s) failed: %d\n",
317 bells_cards[pdev->
id].
name, ret);
337 .probe = bells_probe,