Lines Matching +full:aux +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <asm/mach-types.h>
23 #include <linux/platform_data/asoc-pxa.h>
24 #include <linux/platform_data/asoc-palm27x.h>
36 /* Headphones jack detection gpios */
39 /* gpio is set on per-platform basis */
40 .name = "hp-gpio",
74 err = snd_soc_card_jack_new_pins(rtd->card, "Headphone Jack", in palm27x_ac97_init()
88 DAILINK_COMP_ARRAY(COMP_CPU("pxa2xx-ac97")),
89 DAILINK_COMP_ARRAY(COMP_CODEC("wm9712-codec", "wm9712-hifi")),
90 DAILINK_COMP_ARRAY(COMP_PLATFORM("pxa-pcm-audio")));
92 SND_SOC_DAILINK_DEFS(aux,
93 DAILINK_COMP_ARRAY(COMP_CPU("pxa2xx-ac97-aux")),
94 DAILINK_COMP_ARRAY(COMP_CODEC("wm9712-codec", "wm9712-aux")),
95 DAILINK_COMP_ARRAY(COMP_PLATFORM("pxa-pcm-audio")));
105 .name = "AC97 Aux",
106 .stream_name = "AC97 Aux",
107 SND_SOC_DAILINK_REG(aux),
129 return -ENODEV; in palm27x_asoc_probe()
131 if (!pdev->dev.platform_data) { in palm27x_asoc_probe()
132 dev_err(&pdev->dev, "please supply platform_data\n"); in palm27x_asoc_probe()
133 return -ENODEV; in palm27x_asoc_probe()
137 (pdev->dev.platform_data))->jack_gpio; in palm27x_asoc_probe()
139 palm27x_asoc.dev = &pdev->dev; in palm27x_asoc_probe()
141 ret = devm_snd_soc_register_card(&pdev->dev, &palm27x_asoc); in palm27x_asoc_probe()
143 dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n", in palm27x_asoc_probe()
151 .name = "palm27x-asoc",
162 MODULE_ALIAS("platform:palm27x-asoc");