22 #include <linux/module.h>
24 #include <linux/kernel.h>
35 #include <mach/hardware.h>
38 #include "../codecs/tlv320aic23.h"
42 #define CODEC_CLOCK 12000000
64 .hw_params = afeb9260_hw_params,
74 {
"Headphone Jack",
NULL,
"LHPOUT"},
75 {
"Headphone Jack",
NULL,
"RHPOUT"},
77 {
"LLINEIN",
NULL,
"Line In"},
78 {
"RLINEIN",
NULL,
"Line In"},
80 {
"MICIN",
NULL,
"Mic Jack"},
97 .name =
"TLV320AIC23",
98 .stream_name =
"AIC23",
99 .cpu_dai_name =
"atmel-ssc-dai.0",
100 .codec_dai_name =
"tlv320aic23-hifi",
101 .platform_name =
"atmel_pcm-audio",
102 .codec_name =
"tlv320aic23-codec.0-001a",
103 .init = afeb9260_tlv320aic23_init,
106 .ops = &afeb9260_ops,
113 .dai_link = &afeb9260_dai,
116 .dapm_widgets = tlv320aic23_dapm_widgets,
117 .num_dapm_widgets =
ARRAY_SIZE(tlv320aic23_dapm_widgets),
118 .dapm_routes = afeb9260_audio_map,
119 .num_dapm_routes =
ARRAY_SIZE(afeb9260_audio_map),
124 static int __init afeb9260_soc_init(
void)
129 if (!(machine_is_afeb9260()))
134 if (!afeb9260_snd_device) {
139 platform_set_drvdata(afeb9260_snd_device, &snd_soc_machine_afeb9260);
144 dev = &afeb9260_snd_device->
dev;
152 static void __exit afeb9260_soc_exit(
void)