17 #include <linux/module.h>
27 #include "../codecs/wm8753.h"
36 unsigned int pll_out = 0,
bclk = 0;
38 unsigned long iis_clkrate;
112 iis_clkrate / 4, pll_out);
132 .hw_params = neo1973_hifi_hw_params,
133 .hw_free = neo1973_hifi_hw_free,
141 unsigned int pcmdiv = 0;
143 unsigned long iis_clkrate;
174 iis_clkrate / 4, 12288000);
191 .hw_params = neo1973_voice_hw_params,
192 .hw_free = neo1973_voice_hw_free,
206 {
"GSM Line Out",
NULL,
"MONO1"},
207 {
"GSM Line Out",
NULL,
"MONO2"},
208 {
"RXP",
NULL,
"GSM Line In"},
209 {
"RXN",
NULL,
"GSM Line In"},
212 {
"MIC1",
NULL,
"Mic Bias"},
213 {
"Mic Bias",
NULL,
"Headset Mic"},
216 {
"MIC2",
NULL,
"Mic Bias"},
217 {
"MIC2N",
NULL,
"Mic Bias"},
218 {
"Mic Bias",
NULL,
"Handset Mic"},
221 {
"ACIN",
NULL,
"ACOP"},
233 static int gta02_speaker_enabled;
235 static int lm4853_set_spk(
struct snd_kcontrol *kcontrol,
238 gta02_speaker_enabled = ucontrol->
value.integer.value[0];
245 static int lm4853_get_spk(
struct snd_kcontrol *kcontrol,
248 ucontrol->
value.integer.value[0] = gta02_speaker_enabled;
262 {
"Stereo Out",
NULL,
"LOUT1"},
263 {
"Stereo Out",
NULL,
"ROUT1"},
266 {
"Handset Spk",
NULL,
"LOUT2"},
267 {
"Handset Spk",
NULL,
"ROUT2"},
290 ARRAY_SIZE(neo1973_gta02_wm8753_dapm_widgets));
354 if (machine_is_neo1973_gta02()) {
355 ret = neo1973_gta02_wm8753_init(codec);
366 .stream_name =
"WM8753 HiFi",
367 .platform_name =
"samsung-audio",
368 .cpu_dai_name =
"s3c24xx-iis",
369 .codec_dai_name =
"wm8753-hifi",
370 .codec_name =
"wm8753.0-001a",
371 .init = neo1973_wm8753_init,
372 .ops = &neo1973_hifi_ops,
376 .stream_name =
"Voice",
377 .cpu_dai_name =
"dfbmcs320-pcm",
378 .codec_dai_name =
"wm8753-voice",
379 .codec_name =
"wm8753.0-001a",
380 .ops = &neo1973_voice_ops,
387 .codec_name =
"dfbmcs320.0",
393 .dev_name =
"lm4857.0-007c",
394 .name_prefix =
"Amp",
398 static const struct gpio neo1973_gta02_gpios[] = {
406 .dai_link = neo1973_dai,
408 .aux_dev = neo1973_aux_devs,
410 .codec_conf = neo1973_codec_conf,
411 .num_configs =
ARRAY_SIZE(neo1973_codec_conf),
416 static int __init neo1973_init(
void)
420 if (!machine_is_neo1973_gta02())
423 if (machine_is_neo1973_gta02()) {
424 neo1973.
name =
"neo1973gta02";
434 if (!neo1973_snd_device) {
439 platform_set_drvdata(neo1973_snd_device, &neo1973);
450 if (machine_is_neo1973_gta02()) {
458 static void __exit neo1973_exit(
void)
462 if (machine_is_neo1973_gta02()) {