Lines Matching full:jack

10 #include <sound/jack.h>
23 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
56 SND_SOC_DAPM_HP("Headphone Jack", NULL),
63 /* HP jack connectors - unknown if we have jack detection */
64 {"Headphone Jack", NULL, "HPL"},
65 {"Headphone Jack", NULL, "HPR"},
69 { "Headphone Jack", NULL, "Platform Clock" },
77 struct snd_soc_jack *jack; in avs_da7219_codec_init() local
82 jack = snd_soc_card_get_drvdata(card); in avs_da7219_codec_init()
95 ret = snd_soc_card_jack_new(card, "Headset Jack", in avs_da7219_codec_init()
98 SND_JACK_BTN_3 | SND_JACK_LINEOUT, jack); in avs_da7219_codec_init()
100 dev_err(card->dev, "Headset Jack creation failed: %d\n", ret); in avs_da7219_codec_init()
104 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in avs_da7219_codec_init()
105 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in avs_da7219_codec_init()
106 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); in avs_da7219_codec_init()
107 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); in avs_da7219_codec_init()
109 da7219_aad_jack_det(component, jack); in avs_da7219_codec_init()
188 static int avs_card_set_jack(struct snd_soc_card *card, struct snd_soc_jack *jack) in avs_card_set_jack() argument
193 snd_soc_component_set_jack(component, jack, NULL); in avs_card_set_jack()
209 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); in avs_card_resume_post() local
211 return avs_card_set_jack(card, jack); in avs_card_resume_post()
220 struct snd_soc_jack *jack; in avs_da7219_probe() local
241 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_da7219_probe()
243 if (!jack || !card) in avs_da7219_probe()
261 snd_soc_card_set_drvdata(card, jack); in avs_da7219_probe()