Home
last modified time | relevance | path

Searched refs:jack (Results 1 – 25 of 53) sorted by relevance

123

/sound/core/
Djack.c49 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect() local
51 if (!jack->input_dev) in snd_jack_dev_disconnect()
56 if (jack->registered) in snd_jack_dev_disconnect()
57 input_unregister_device(jack->input_dev); in snd_jack_dev_disconnect()
59 input_free_device(jack->input_dev); in snd_jack_dev_disconnect()
60 jack->input_dev = NULL; in snd_jack_dev_disconnect()
67 struct snd_jack *jack = device->device_data; in snd_jack_dev_free() local
71 list_for_each_entry_safe(jack_kctl, tmp_jack_kctl, &jack->kctl_list, list) { in snd_jack_dev_free()
75 if (jack->private_free) in snd_jack_dev_free()
76 jack->private_free(jack); in snd_jack_dev_free()
[all …]
/sound/pci/hda/
Dhda_jack.c76 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get() local
79 if (!nid || !jack) in snd_hda_jack_tbl_get()
81 for (i = 0; i < codec->jacktbl.used; i++, jack++) in snd_hda_jack_tbl_get()
82 if (jack->nid == nid) in snd_hda_jack_tbl_get()
83 return jack; in snd_hda_jack_tbl_get()
96 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get_from_tag() local
99 if (!tag || !jack) in snd_hda_jack_tbl_get_from_tag()
101 for (i = 0; i < codec->jacktbl.used; i++, jack++) in snd_hda_jack_tbl_get_from_tag()
102 if (jack->tag == tag) in snd_hda_jack_tbl_get_from_tag()
103 return jack; in snd_hda_jack_tbl_get_from_tag()
[all …]
Dpatch_hdmi.c124 struct snd_jack *jack; member
739 struct hda_jack_callback *jack) in jack_callback() argument
741 check_presence_and_report(codec, jack->nid); in jack_callback()
747 struct hda_jack_tbl *jack; in hdmi_intrinsic_event() local
750 jack = snd_hda_jack_tbl_get_from_tag(codec, tag); in hdmi_intrinsic_event()
751 if (!jack) in hdmi_intrinsic_event()
753 jack->jack_dirty = 1; in hdmi_intrinsic_event()
757 codec->addr, jack->nid, dev_entry, !!(res & AC_UNSOL_RES_IA), in hdmi_intrinsic_event()
760 check_presence_and_report(codec, jack->nid); in hdmi_intrinsic_event()
1396 struct hda_jack_tbl *jack; in hdmi_present_sense_via_verbs() local
[all …]
Dhda_generic.h328 struct hda_jack_callback *jack);
330 struct hda_jack_callback *jack);
332 struct hda_jack_callback *jack);
Dhda_jack.h43 struct snd_jack *jack; member
/sound/soc/
Dsoc-jack.c40 struct snd_soc_jack *jack, struct snd_soc_jack_pin *pins, in snd_soc_card_jack_new() argument
45 mutex_init(&jack->mutex); in snd_soc_card_jack_new()
46 jack->card = card; in snd_soc_card_jack_new()
47 INIT_LIST_HEAD(&jack->pins); in snd_soc_card_jack_new()
48 INIT_LIST_HEAD(&jack->jack_zones); in snd_soc_card_jack_new()
49 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in snd_soc_card_jack_new()
51 ret = snd_jack_new(card->snd_card, id, type, &jack->jack, false, false); in snd_soc_card_jack_new()
56 return snd_soc_jack_add_pins(jack, num_pins, pins); in snd_soc_card_jack_new()
76 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() argument
83 trace_snd_soc_jack_report(jack, mask, status); in snd_soc_jack_report()
[all …]
/sound/soc/codecs/
Dts3a227e.c28 struct snd_soc_jack *jack; member
154 if (!ts3a227e->jack) in ts3a227e_jack_report()
165 snd_soc_jack_report(ts3a227e->jack, report, TS3A227E_JACK_MASK); in ts3a227e_jack_report()
239 struct snd_soc_jack *jack) in ts3a227e_enable_jack_detect() argument
243 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_MEDIA); in ts3a227e_enable_jack_detect()
244 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in ts3a227e_enable_jack_detect()
245 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in ts3a227e_enable_jack_detect()
246 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in ts3a227e_enable_jack_detect()
248 ts3a227e->jack = jack; in ts3a227e_enable_jack_detect()
Dwm8350.h24 struct snd_soc_jack *jack, int report);
26 struct snd_soc_jack *jack,
Dwm8350.c56 struct snd_soc_jack *jack; member
1241 struct wm8350_jack_data *jack, in wm8350_hp_work() argument
1250 report = jack->report; in wm8350_hp_work()
1254 snd_soc_jack_report(jack->jack, report, jack->report); in wm8350_hp_work()
1322 struct snd_soc_jack *jack, int report) in wm8350_hp_jack_detect() argument
1330 priv->hpl.jack = jack; in wm8350_hp_jack_detect()
1336 priv->hpr.jack = jack; in wm8350_hp_jack_detect()
1383 snd_soc_jack_report(priv->mic.jack, report, in wm8350_mic_handler()
1401 struct snd_soc_jack *jack, in wm8350_mic_jack_detect() argument
1407 priv->mic.jack = jack; in wm8350_mic_jack_detect()
[all …]
Dwm8994.h46 int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
48 int wm8958_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
60 struct snd_soc_jack *jack; member
Dda7219-aad.c35 void da7219_aad_jack_det(struct snd_soc_codec *codec, struct snd_soc_jack *jack) in da7219_aad_jack_det() argument
39 da7219->aad->jack = jack; in da7219_aad_jack_det()
43 snd_soc_jack_report(jack, 0, DA7219_AAD_REPORT_ALL_MASK); in da7219_aad_jack_det()
48 (jack ? DA7219_ACCDET_EN_MASK : 0)); in da7219_aad_jack_det()
307 snd_soc_jack_report(da7219_aad->jack, report, in da7219_aad_hptest_work()
387 snd_soc_jack_report(da7219_aad->jack, report, mask); in da7219_aad_irq_thread()
425 snd_soc_jack_report(da7219_aad->jack, report, mask); in da7219_aad_irq_thread()
810 if (da7219_aad->jack) { in da7219_aad_suspend()
838 if (da7219_aad->jack) { in da7219_aad_resume()
Drt286.c46 struct snd_soc_jack *jack; member
304 snd_soc_jack_report(rt286->jack, status, in rt286_jack_detect_work()
308 int rt286_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) in rt286_mic_detect() argument
313 rt286->jack = jack; in rt286_mic_detect()
315 if (jack) { in rt286_mic_detect()
317 if (rt286->jack->status & SND_JACK_HEADPHONE) in rt286_mic_detect()
321 snd_soc_jack_report(rt286->jack, rt286->jack->status, in rt286_mic_detect()
932 snd_soc_jack_report(rt286->jack, status, in rt286_irq()
Dtwl6040.c60 struct snd_soc_jack *jack; member
283 struct snd_soc_jack *jack, int report) in twl6040_hs_jack_report() argument
293 snd_soc_jack_report(jack, report, report); in twl6040_hs_jack_report()
295 snd_soc_jack_report(jack, 0, report); in twl6040_hs_jack_report()
301 struct snd_soc_jack *jack, int report) in twl6040_hs_jack_detect() argument
306 hs_jack->jack = jack; in twl6040_hs_jack_detect()
309 twl6040_hs_jack_report(codec, hs_jack->jack, hs_jack->report); in twl6040_hs_jack_detect()
320 twl6040_hs_jack_report(codec, hs_jack->jack, hs_jack->report); in twl6040_accessory_work()
Dda7219-aad.h203 struct snd_soc_jack *jack; member
209 void da7219_aad_jack_det(struct snd_soc_codec *codec, struct snd_soc_jack *jack);
Drt298.c45 struct snd_soc_jack *jack; member
322 snd_soc_jack_report(rt298->jack, status, in rt298_jack_detect_work()
326 int rt298_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) in rt298_mic_detect() argument
330 rt298->jack = jack; in rt298_mic_detect()
333 snd_soc_jack_report(rt298->jack, 0, in rt298_mic_detect()
977 snd_soc_jack_report(rt298->jack, status, in rt298_irq()
Dts3a227e.h15 struct snd_soc_jack *jack);
Dtwl6040.h39 struct snd_soc_jack *jack, int report);
Dwm8994.c747 if (!wm8994->jackdet || !wm8994->micdet[0].jack) in wm1811_jackdet_set_mode()
3357 int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, in wm8994_mic_detect() argument
3374 if (jack) in wm8994_mic_detect()
3381 if (jack) in wm8994_mic_detect()
3396 micbias, jack); in wm8994_mic_detect()
3399 micdet->jack = jack; in wm8994_mic_detect()
3403 if (wm8994->micdet[0].jack || wm8994->micdet[1].jack) in wm8994_mic_detect()
3461 snd_soc_jack_report(priv->micdet[0].jack, report, in wm8994_mic_work()
3480 snd_soc_jack_report(priv->micdet[1].jack, report, in wm8994_mic_work()
3544 snd_soc_jack_report(wm8994->micdet[0].jack, report, in wm8958_button_det()
[all …]
Dnau8825.h435 struct snd_soc_jack *jack; member
466 struct snd_soc_jack *jack);
Dwm5100.c73 struct snd_soc_jack *jack; member
2001 snd_soc_jack_report(wm5100->jack, SND_JACK_HEADPHONE, in wm5100_report_headphone()
2035 snd_soc_jack_report(wm5100->jack, 0, in wm5100_micd_irq()
2054 snd_soc_jack_report(wm5100->jack, in wm5100_micd_irq()
2065 snd_soc_jack_report(wm5100->jack, 0, SND_JACK_BTN_0); in wm5100_micd_irq()
2094 snd_soc_jack_report(wm5100->jack, SND_JACK_BTN_0, in wm5100_micd_irq()
2102 int wm5100_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) in wm5100_detect() argument
2107 if (jack) { in wm5100_detect()
2108 wm5100->jack = jack; in wm5100_detect()
2148 wm5100->jack = NULL; in wm5100_detect()
/sound/soc/intel/boards/
Dbyt-max98090.c30 struct snd_soc_jack jack; member
89 struct snd_soc_jack *jack = &drv->jack; in byt_max98090_init() local
103 SND_JACK_LINEOUT | SND_JACK_HEADSET, jack, in byt_max98090_init()
108 return snd_soc_jack_add_gpiods(card->dev->parent, jack, in byt_max98090_init()
169 snd_soc_jack_free_gpios(&priv->jack, ARRAY_SIZE(hs_jack_gpios), in byt_max98090_remove()
Dcht_bsw_max98090_ti.c38 struct snd_soc_jack jack; member
104 struct snd_soc_jack *jack = (struct snd_soc_jack *)data; in cht_ti_jack_event() local
105 struct snd_soc_dapm_context *dapm = &jack->card->dapm; in cht_ti_jack_event()
129 struct snd_soc_jack *jack = &ctx->jack; in cht_codec_init() local
146 jack_type, jack, NULL, 0); in cht_codec_init()
154 snd_soc_jack_notifier_register(jack, &cht_jack_nb); in cht_codec_init()
204 return ts3a227e_enable_jack_detect(component, &ctx->jack); in cht_max98090_headset_init()
Dcht_bsw_rt5645.c48 struct snd_soc_jack jack; member
242 jack_type, &ctx->jack, in cht_codec_init()
249 rt5645_set_jack_detect(codec, &ctx->jack, &ctx->jack, &ctx->jack); in cht_codec_init()
/sound/soc/rockchip/
Drk3399_gru_sound.c218 snd_jack_set_key(rockchip_sound_jack.jack, SND_JACK_BTN_0, KEY_MEDIA); in rockchip_sound_da7219_init()
220 rockchip_sound_jack.jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in rockchip_sound_da7219_init()
222 rockchip_sound_jack.jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); in rockchip_sound_da7219_init()
224 rockchip_sound_jack.jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); in rockchip_sound_da7219_init()
/sound/soc/generic/
Dsimple-card.c25 struct snd_soc_jack jack; member
96 &sjack->jack, in asoc_simple_card_init_jack()
99 snd_soc_jack_add_gpios(&sjack->jack, 1, in asoc_simple_card_init_jack()
109 snd_soc_jack_free_gpios(&sjack->jack, 1, &sjack->gpio); in asoc_simple_card_remove_jack()

123