31 #include <mach/hardware.h>
33 #include <linux/module.h>
38 #include "../codecs/tlv320aic23.h"
40 #define CODEC_CLOCK 12000000
42 static struct clk *tlv320aic23_mclk;
74 .startup = osk_startup,
75 .hw_params = osk_hw_params,
76 .shutdown = osk_shutdown,
86 {
"Headphone Jack",
NULL,
"LHPOUT"},
87 {
"Headphone Jack",
NULL,
"RHPOUT"},
89 {
"LLINEIN",
NULL,
"Line In"},
90 {
"RLINEIN",
NULL,
"Line In"},
92 {
"MICIN",
NULL,
"Mic Jack"},
97 .name =
"TLV320AIC23",
98 .stream_name =
"AIC23",
99 .cpu_dai_name =
"omap-mcbsp.1",
100 .codec_dai_name =
"tlv320aic23-hifi",
101 .platform_name =
"omap-pcm-audio",
102 .codec_name =
"tlv320aic23-codec",
112 .dai_link = &osk_dai,
115 .dapm_widgets = tlv320aic23_dapm_widgets,
116 .num_dapm_widgets =
ARRAY_SIZE(tlv320aic23_dapm_widgets),
117 .dapm_routes = audio_map,
123 static int __init osk_soc_init(
void)
129 if (!(machine_is_omap_osk()))
136 platform_set_drvdata(osk_snd_device, &snd_soc_card_osk);
141 dev = &osk_snd_device->
dev;
143 tlv320aic23_mclk =
clk_get(dev,
"mclk");
144 if (IS_ERR(tlv320aic23_mclk)) {
146 err = PTR_ERR(tlv320aic23_mclk);
178 static void __exit osk_soc_exit(
void)