35 #include <linux/module.h>
40 #define ZOOM2_HEADSET_MUX_GPIO (OMAP_MAX_GPIO_LINES + 15)
61 .hw_params = zoom2_hw_params,
75 {
"MAINMIC",
NULL,
"Mic Bias 1"},
76 {
"SUBMIC",
NULL,
"Mic Bias 2"},
77 {
"Mic Bias 1",
NULL,
"Ext Mic"},
78 {
"Mic Bias 2",
NULL,
"Ext Mic"},
81 {
"Ext Spk",
NULL,
"HFL"},
82 {
"Ext Spk",
NULL,
"HFR"},
85 {
"Headset Stereophone",
NULL,
"HSOL"},
86 {
"Headset Stereophone",
NULL,
"HSOR"},
89 {
"HSMIC",
NULL,
"Headset Mic Bias"},
90 {
"Headset Mic Bias",
NULL,
"Headset Mic"},
93 {
"Aux In",
NULL,
"AUXL"},
94 {
"Aux In",
NULL,
"AUXR"},
131 .name =
"TWL4030 I2S",
132 .stream_name =
"TWL4030 Audio",
133 .cpu_dai_name =
"omap-mcbsp.2",
134 .codec_dai_name =
"twl4030-hifi",
135 .platform_name =
"omap-pcm-audio",
136 .codec_name =
"twl4030-codec",
139 .init = zoom2_twl4030_init,
143 .name =
"TWL4030 PCM",
144 .stream_name =
"TWL4030 Voice",
145 .cpu_dai_name =
"omap-mcbsp.3",
146 .codec_dai_name =
"twl4030-voice",
147 .platform_name =
"omap-pcm-audio",
148 .codec_name =
"twl4030-codec",
151 .init = zoom2_twl4030_voice_init,
160 .dai_link = zoom2_dai,
163 .dapm_widgets = zoom2_twl4030_dapm_widgets,
164 .num_dapm_widgets =
ARRAY_SIZE(zoom2_twl4030_dapm_widgets),
165 .dapm_routes = audio_map,
171 static int __init zoom2_soc_init(
void)
175 if (!machine_is_omap_zoom2())
180 if (!zoom2_snd_device) {
185 platform_set_drvdata(zoom2_snd_device, &snd_soc_zoom2);
203 static void __exit zoom2_soc_exit(
void)