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"},
101 .hw_params = saarb_i2s_hw_params,
106 .name =
"88PM860x I2S",
107 .stream_name =
"I2S Audio",
108 .cpu_dai_name =
"pxa-ssp-dai.1",
109 .codec_dai_name =
"88pm860x-i2s",
110 .platform_name =
"pxa-pcm-audio",
111 .codec_name =
"88pm860x-codec",
112 .init = saarb_pm860x_init,
115 .ops = &saarb_i2s_ops,
122 .dai_link = saarb_dai,
125 .dapm_widgets = saarb_dapm_widgets,
126 .num_dapm_widgets =
ARRAY_SIZE(saarb_dapm_widgets),
127 .dapm_routes = saarb_audio_map,
128 .num_dapm_routes =
ARRAY_SIZE(saarb_audio_map),
161 static int __init saarb_init(
void)
165 if (!machine_is_saarb())
168 if (!saarb_snd_device)
171 platform_set_drvdata(saarb_snd_device, &snd_soc_card_saarb);
180 static void __exit saarb_exit(
void)