Lines Matching full:jack

11 #include <sound/jack.h>
23 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
57 SND_SOC_DAPM_HP("Headphone Jack", NULL),
65 /* HP jack connectors - unknown if we have jack detection */
66 {"Headphone Jack", NULL, "HPL"},
67 {"Headphone Jack", NULL, "HPR"},
71 { "Headphone Jack", NULL, "Platform Clock" },
78 .pin = "Headphone Jack",
97 struct snd_soc_jack *jack; in avs_da7219_codec_init() local
102 jack = snd_soc_card_get_drvdata(card); in avs_da7219_codec_init()
123 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", in avs_da7219_codec_init()
127 jack, pins, num_pins); in avs_da7219_codec_init()
129 dev_err(card->dev, "Headset Jack creation failed: %d\n", ret); in avs_da7219_codec_init()
133 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in avs_da7219_codec_init()
134 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in avs_da7219_codec_init()
135 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); in avs_da7219_codec_init()
136 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); in avs_da7219_codec_init()
138 return snd_soc_component_set_jack(component, jack, NULL); in avs_da7219_codec_init()
220 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); in avs_card_resume_post() local
222 return snd_soc_component_set_jack(codec_dai->component, jack, NULL); in avs_card_resume_post()
230 struct snd_soc_jack *jack; in avs_da7219_probe() local
245 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_da7219_probe()
247 if (!jack || !card) in avs_da7219_probe()
264 snd_soc_card_set_drvdata(card, jack); in avs_da7219_probe()