20 #include <linux/types.h>
22 #include <linux/module.h>
39 static unsigned int rates[] = {
55 .pin =
"Headphone Jack",
65 static struct snd_soc_jack_gpio hp_jack_gpios[] = {
76 .startup = rx1950_startup,
77 .hw_params = rx1950_hw_params,
84 .stream_name =
"UDA1380 Duplex",
85 .cpu_dai_name =
"s3c24xx-iis",
86 .codec_dai_name =
"uda1380-hifi",
87 .init = rx1950_uda1380_init,
88 .platform_name =
"samsung-audio",
89 .codec_name =
"uda1380-codec.0-001a",
104 {
"Headphone Jack",
NULL,
"VOUTLHP"},
105 {
"Headphone Jack",
NULL,
"VOUTRHP"},
108 {
"Speaker",
NULL,
"VOUTL"},
109 {
"Speaker",
NULL,
"VOUTR"},
112 {
"VINM",
NULL,
"Mic Jack"},
118 .dai_link = rx1950_uda1380_dai,
121 .dapm_widgets = uda1380_dapm_widgets,
122 .num_dapm_widgets =
ARRAY_SIZE(uda1380_dapm_widgets),
123 .dapm_routes = audio_map,
133 runtime->
hw.rate_min = hw_rates.
list[0];
134 runtime->
hw.rate_max = hw_rates.
list[hw_rates.
count - 1];
240 snd_soc_jack_add_gpios(&hp_jack,
ARRAY_SIZE(hp_jack_gpios),
246 static int __init rx1950_init(
void)
250 if (!machine_is_rx1950())
263 if (!s3c24xx_snd_device) {
268 platform_set_drvdata(s3c24xx_snd_device, &rx1950_asoc);
287 static void __exit rx1950_exit(
void)
290 snd_soc_jack_free_gpios(&hp_jack,
ARRAY_SIZE(hp_jack_gpios),