Lines Matching full:jack
11 #include <sound/jack.h>
24 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
58 SND_SOC_DAPM_HP("Headphone Jack", NULL),
66 /* HP jack connectors - unknown if we have jack detection */
67 {"Headphone Jack", NULL, "HPL"},
68 {"Headphone Jack", NULL, "HPR"},
72 { "Headphone Jack", NULL, "Platform Clock" },
79 .pin = "Headphone Jack",
98 struct snd_soc_jack *jack; in avs_da7219_codec_init() local
103 jack = snd_soc_card_get_drvdata(card); in avs_da7219_codec_init()
124 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", in avs_da7219_codec_init()
128 jack, pins, num_pins); in avs_da7219_codec_init()
130 dev_err(card->dev, "Headset Jack creation failed: %d\n", ret); in avs_da7219_codec_init()
134 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in avs_da7219_codec_init()
135 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in avs_da7219_codec_init()
136 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); in avs_da7219_codec_init()
137 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); in avs_da7219_codec_init()
139 return snd_soc_component_set_jack(component, jack, NULL); in avs_da7219_codec_init()
224 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); in avs_card_resume_post() local
226 return snd_soc_component_set_jack(codec_dai->component, jack, NULL); in avs_card_resume_post()
234 struct snd_soc_jack *jack; in avs_da7219_probe() local
252 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_da7219_probe()
254 if (!jack || !card) in avs_da7219_probe()
271 snd_soc_card_set_drvdata(card, jack); in avs_da7219_probe()