22 #include <linux/module.h>
28 #include <mach/hardware.h>
29 #include <mach/gpio.h>
35 #include "../codecs/tlv320aic23.h"
37 #define CODEC_CLOCK 12000000
56 .hw_params = am3517evm_hw_params,
68 {
"Line Out",
NULL,
"LOUT"},
69 {
"Line Out",
NULL,
"ROUT"},
71 {
"LLINEIN",
NULL,
"Line In"},
72 {
"RLINEIN",
NULL,
"Line In"},
74 {
"MICIN",
NULL,
"Mic In"},
79 .name =
"TLV320AIC23",
80 .stream_name =
"AIC23",
81 .cpu_dai_name =
"omap-mcbsp.1",
82 .codec_dai_name =
"tlv320aic23-hifi",
83 .platform_name =
"omap-pcm-audio",
84 .codec_name =
"tlv320aic23-codec.2-001a",
87 .ops = &am3517evm_ops,
94 .dai_link = &am3517evm_dai,
97 .dapm_widgets = tlv320aic23_dapm_widgets,
98 .num_dapm_widgets =
ARRAY_SIZE(tlv320aic23_dapm_widgets),
99 .dapm_routes = audio_map,
105 static int __init am3517evm_soc_init(
void)
109 if (!machine_is_omap3517evm())
111 pr_info(
"OMAP3517 / AM3517 EVM SoC init\n");
114 if (!am3517evm_snd_device) {
119 platform_set_drvdata(am3517evm_snd_device, &snd_soc_am3517evm);
134 static void __exit am3517evm_soc_exit(
void)