13 #include <linux/module.h>
19 #include "../codecs/wm8994.h"
34 {
"Ext Spk",
NULL,
"SPKOUTLP"},
35 {
"Ext Spk",
NULL,
"SPKOUTLN"},
36 {
"Ext Spk",
NULL,
"SPKOUTRP"},
37 {
"Ext Spk",
NULL,
"SPKOUTRN"},
39 {
"Headset Stereophone",
NULL,
"HPOUT1L"},
40 {
"Headset Stereophone",
NULL,
"HPOUT1R"},
42 {
"IN1RN",
NULL,
"Headset Mic"},
44 {
"DMIC1DAT",
NULL,
"MICBIAS1"},
45 {
"MICBIAS1",
NULL,
"Main Mic"},
84 int freq_out, sspa_mclk, sysclk;
97 do_div(sspa_div, sspa_mclk);
111 .hw_params = brownstone_wm8994_hw_params,
117 .stream_name =
"WM8994 HiFi",
118 .cpu_dai_name =
"mmp-sspa-dai.0",
119 .codec_dai_name =
"wm8994-aif1",
120 .platform_name =
"mmp-pcm-audio",
121 .codec_name =
"wm8994-codec",
124 .ops = &brownstone_ops,
125 .init = brownstone_wm8994_init,
131 .name =
"brownstone",
132 .dai_link = brownstone_wm8994_dai,
133 .num_links =
ARRAY_SIZE(brownstone_wm8994_dai),
135 .controls = brownstone_dapm_control,
136 .num_controls =
ARRAY_SIZE(brownstone_dapm_control),
137 .dapm_widgets = brownstone_dapm_widgets,
138 .num_dapm_widgets =
ARRAY_SIZE(brownstone_dapm_widgets),
139 .dapm_routes = brownstone_audio_map,
140 .num_dapm_routes =
ARRAY_SIZE(brownstone_audio_map),
147 brownstone.
dev = &pdev->
dev;
150 dev_err(&pdev->
dev,
"snd_soc_register_card() failed: %d\n",
163 .name =
"brownstone-audio",
166 .probe = brownstone_probe,