Lines Matching full:jack
13 #include <sound/jack.h>
49 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
54 SND_SOC_DAPM_HP("Headphone Jack", NULL),
61 { "Headphone Jack", NULL, "HPOL" },
62 { "Headphone Jack", NULL, "HPOR" },
66 { "Headphone Jack", NULL, "Platform Clock" },
72 .pin = "Headphone Jack",
85 struct snd_soc_jack *jack; in avs_nau8825_codec_init() local
88 jack = snd_soc_card_get_drvdata(card); in avs_nau8825_codec_init()
99 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", SND_JACK_HEADSET | SND_JACK_BTN_0 | in avs_nau8825_codec_init()
101 jack, pins, num_pins); in avs_nau8825_codec_init()
105 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in avs_nau8825_codec_init()
106 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in avs_nau8825_codec_init()
107 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in avs_nau8825_codec_init()
108 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in avs_nau8825_codec_init()
110 return snd_soc_component_set_jack(snd_soc_rtd_to_codec(runtime, 0)->component, jack, NULL); in avs_nau8825_codec_init()
231 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); in avs_card_resume_post() local
243 return snd_soc_component_set_jack(codec_dai->component, jack, NULL); in avs_card_resume_post()
251 struct snd_soc_jack *jack; in avs_nau8825_probe() local
269 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_nau8825_probe()
271 if (!jack || !card) in avs_nau8825_probe()
288 snd_soc_card_set_drvdata(card, jack); in avs_nau8825_probe()