Lines Matching full:jack
17 #include <sound/jack.h>
43 struct snd_soc_jack *jack; in asoc_sdw_rt700_rtd_init() local
61 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in asoc_sdw_rt700_rtd_init()
69 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in asoc_sdw_rt700_rtd_init()
74 jack = &ctx->sdw_headset; in asoc_sdw_rt700_rtd_init()
76 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in asoc_sdw_rt700_rtd_init()
77 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in asoc_sdw_rt700_rtd_init()
78 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in asoc_sdw_rt700_rtd_init()
79 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in asoc_sdw_rt700_rtd_init()
81 ret = snd_soc_component_set_jack(component, jack, NULL); in asoc_sdw_rt700_rtd_init()
83 dev_err(rtd->card->dev, "Headset Jack call-back failed: %d\n", in asoc_sdw_rt700_rtd_init()