Lines Matching full:jack
16 #include <sound/jack.h>
65 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
70 SND_SOC_DAPM_HP("Headphone Jack", NULL),
75 /* HP jack connectors - unknown if we have jack detect */
76 { "Headphone Jack", NULL, "HPOL" },
77 { "Headphone Jack", NULL, "HPOR" },
85 .pin = "Headphone Jack",
99 struct snd_soc_jack *jack; in avs_rt5682_codec_init() local
102 jack = snd_soc_card_get_drvdata(card); in avs_rt5682_codec_init()
117 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", SND_JACK_HEADSET | SND_JACK_BTN_0 | in avs_rt5682_codec_init()
118 SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3, jack, in avs_rt5682_codec_init()
121 dev_err(card->dev, "Headset Jack creation failed: %d\n", ret); in avs_rt5682_codec_init()
125 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in avs_rt5682_codec_init()
126 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in avs_rt5682_codec_init()
127 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in avs_rt5682_codec_init()
128 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in avs_rt5682_codec_init()
130 ret = snd_soc_component_set_jack(component, jack, NULL); in avs_rt5682_codec_init()
132 dev_err(card->dev, "Headset Jack call-back failed: %d\n", ret); in avs_rt5682_codec_init()
263 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); in avs_card_resume_post() local
265 return snd_soc_component_set_jack(codec_dai->component, jack, NULL); in avs_card_resume_post()
273 struct snd_soc_jack *jack; in avs_rt5682_probe() local
297 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_rt5682_probe()
299 if (!jack || !card) in avs_rt5682_probe()
316 snd_soc_card_set_drvdata(card, jack); in avs_rt5682_probe()