12 #include <linux/module.h>
14 #include <linux/device.h>
16 #include <linux/i2c.h>
25 #include "../codecs/88pm860x-codec.h"
55 {
"Headset Stereophone",
NULL,
"HS1"},
56 {
"Headset Stereophone",
NULL,
"HS2"},
58 {
"Ext Speaker",
NULL,
"LSP"},
59 {
"Ext Speaker",
NULL,
"LSN"},
61 {
"Lineout Out 1",
NULL,
"LINEOUT1"},
62 {
"Lineout Out 2",
NULL,
"LINEOUT2"},
64 {
"MIC1P",
NULL,
"Mic1 Bias"},
65 {
"MIC1N",
NULL,
"Mic1 Bias"},
66 {
"Mic1 Bias",
NULL,
"Ext Mic 1"},
68 {
"MIC2P",
NULL,
"Mic1 Bias"},
69 {
"MIC2N",
NULL,
"Mic1 Bias"},
70 {
"Mic1 Bias",
NULL,
"Headset Mic 2"},
72 {
"MIC3P",
NULL,
"Mic3 Bias"},
73 {
"MIC3N",
NULL,
"Mic3 Bias"},
74 {
"Mic3 Bias",
NULL,
"Ext Mic 3"},
100 .hw_params = evb3_i2s_hw_params,
105 .name =
"88PM860x I2S",
106 .stream_name =
"I2S Audio",
107 .cpu_dai_name =
"pxa-ssp-dai.1",
108 .codec_dai_name =
"88pm860x-i2s",
109 .platform_name =
"pxa-pcm-audio",
110 .codec_name =
"88pm860x-codec",
111 .init = evb3_pm860x_init,
114 .ops = &evb3_i2s_ops,
119 .name =
"Tavor EVB3",
121 .dai_link = evb3_dai,
124 .dapm_widgets = evb3_dapm_widgets,
125 .num_dapm_widgets =
ARRAY_SIZE(evb3_dapm_widgets),
126 .dapm_routes = evb3_audio_map,
127 .num_dapm_routes =
ARRAY_SIZE(evb3_audio_map),
160 static int __init tavorevb3_init(
void)
164 if (!machine_is_tavorevb3())
167 if (!evb3_snd_device)
170 platform_set_drvdata(evb3_snd_device, &snd_soc_card_evb3);
179 static void __exit tavorevb3_exit(
void)