11 #include <linux/module.h>
12 #include <linux/device.h>
18 #include "../codecs/adau1373.h"
35 {
"AIN1L",
NULL,
"Line In1" },
36 {
"AIN1R",
NULL,
"Line In1" },
37 {
"AIN2L",
NULL,
"Line In2" },
38 {
"AIN2R",
NULL,
"Line In2" },
39 {
"AIN3L",
NULL,
"Line In3" },
40 {
"AIN3R",
NULL,
"Line In3" },
41 {
"AIN4L",
NULL,
"Line In4" },
42 {
"AIN4R",
NULL,
"Line In4" },
46 {
"Line In1",
NULL,
"MICBIAS1" },
47 {
"Line In2",
NULL,
"MICBIAS1" },
48 {
"Line In3",
NULL,
"MICBIAS1" },
49 {
"Line In4",
NULL,
"MICBIAS1" },
50 {
"Line In1",
NULL,
"MICBIAS2" },
51 {
"Line In2",
NULL,
"MICBIAS2" },
52 {
"Line In3",
NULL,
"MICBIAS2" },
53 {
"Line In4",
NULL,
"MICBIAS2" },
55 {
"Line Out1",
NULL,
"LOUT1L" },
56 {
"Line Out1",
NULL,
"LOUT1R" },
57 {
"Line Out2",
NULL,
"LOUT2L" },
58 {
"Line Out2",
NULL,
"LOUT2R" },
59 {
"Headphone",
NULL,
"HPL" },
60 {
"Headphone",
NULL,
"HPR" },
61 {
"Earpiece",
NULL,
"EP" },
62 {
"Speaker",
NULL,
"SPKL" },
63 {
"Stereo Out",
NULL,
"SPKR" },
81 pll_rate = 48000 * 1024;
89 pll_rate = 44100 * 1024;
109 unsigned int pll_rate = 48000 * 1024;
122 static struct snd_soc_ops bfin_eval_adau1373_ops = {
123 .hw_params = bfin_eval_adau1373_hw_params,
128 .stream_name =
"adau1373",
129 .cpu_dai_name =
"bfin-i2s.0",
130 .codec_dai_name =
"adau1373-aif1",
131 .platform_name =
"bfin-i2s-pcm-audio",
132 .codec_name =
"adau1373.0-001a",
133 .ops = &bfin_eval_adau1373_ops,
134 .init = bfin_eval_adau1373_codec_init,
140 .name =
"bfin-eval-adau1373",
142 .dai_link = &bfin_eval_adau1373_dai,
145 .dapm_widgets = bfin_eval_adau1373_dapm_widgets,
146 .num_dapm_widgets =
ARRAY_SIZE(bfin_eval_adau1373_dapm_widgets),
147 .dapm_routes = bfin_eval_adau1373_dapm_routes,
148 .num_dapm_routes =
ARRAY_SIZE(bfin_eval_adau1373_dapm_routes),
171 .name =
"bfin-eval-adau1373",
175 .probe = bfin_eval_adau1373_probe,