Lines Matching full:jack
12 #include <sound/jack.h>
22 struct snd_soc_jack jack; member
26 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
31 SND_SOC_DAPM_HP("Headphone Jack", NULL),
36 /* HP jack connectors */
37 { "Headphone Jack", NULL, "HPOL" },
38 { "Headphone Jack", NULL, "HPOR" },
47 .pin = "Headphone Jack",
61 struct snd_soc_jack *jack; in avs_rt5663_codec_init() local
64 jack = &priv->jack; in avs_rt5663_codec_init()
71 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", SND_JACK_HEADSET | SND_JACK_BTN_0 | in avs_rt5663_codec_init()
72 SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3, jack, in avs_rt5663_codec_init()
77 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in avs_rt5663_codec_init()
78 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in avs_rt5663_codec_init()
79 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in avs_rt5663_codec_init()
80 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in avs_rt5663_codec_init()
82 snd_soc_component_set_jack(asoc_rtd_to_codec(runtime, 0)->component, jack, NULL); in avs_rt5663_codec_init()
190 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); in avs_card_resume_post() local
192 return snd_soc_component_set_jack(codec_dai->component, jack, NULL); in avs_card_resume_post()