/sound/core/ |
D | jack.c | 49 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/ |
D | hda_jack.c | 76 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 …]
|
D | patch_hdmi.c | 124 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 …]
|
D | hda_generic.h | 328 struct hda_jack_callback *jack); 330 struct hda_jack_callback *jack); 332 struct hda_jack_callback *jack);
|
D | hda_jack.h | 43 struct snd_jack *jack; member
|
/sound/soc/ |
D | soc-jack.c | 40 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/ |
D | ts3a227e.c | 28 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()
|
D | wm8350.h | 24 struct snd_soc_jack *jack, int report); 26 struct snd_soc_jack *jack,
|
D | wm8350.c | 56 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 …]
|
D | wm8994.h | 46 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
|
D | da7219-aad.c | 35 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()
|
D | rt286.c | 46 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()
|
D | twl6040.c | 60 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()
|
D | da7219-aad.h | 203 struct snd_soc_jack *jack; member 209 void da7219_aad_jack_det(struct snd_soc_codec *codec, struct snd_soc_jack *jack);
|
D | rt298.c | 45 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()
|
D | ts3a227e.h | 15 struct snd_soc_jack *jack);
|
D | twl6040.h | 39 struct snd_soc_jack *jack, int report);
|
D | wm8994.c | 747 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 …]
|
D | nau8825.h | 435 struct snd_soc_jack *jack; member 466 struct snd_soc_jack *jack);
|
D | wm5100.c | 73 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/ |
D | byt-max98090.c | 30 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()
|
D | cht_bsw_max98090_ti.c | 38 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()
|
D | cht_bsw_rt5645.c | 48 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/ |
D | rk3399_gru_sound.c | 218 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/ |
D | simple-card.c | 25 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()
|