/sound/soc/codecs/ |
D | wcd-mbhc-v2.c | 289 enum snd_jack_types jack_type) in wcd_mbhc_report_plug_removal() argument 291 mbhc->hph_status &= ~jack_type; in wcd_mbhc_report_plug_removal() 328 enum snd_jack_types jack_type) in wcd_mbhc_report_plug_insertion() argument 337 jack_type == SND_JACK_HEADPHONE) in wcd_mbhc_report_plug_insertion() 341 switch (jack_type) { in wcd_mbhc_report_plug_insertion() 363 (jack_type == SND_JACK_HEADPHONE)) { in wcd_mbhc_report_plug_insertion() 364 jack_type = SND_JACK_LINEOUT; in wcd_mbhc_report_plug_insertion() 382 jack_type = SND_JACK_LINEOUT; in wcd_mbhc_report_plug_insertion() 392 mbhc->hph_status |= jack_type; in wcd_mbhc_report_plug_insertion() 394 if (jack_type == SND_JACK_HEADPHONE && mbhc->mbhc_cb->mbhc_micb_ramp_control) in wcd_mbhc_report_plug_insertion() [all …]
|
D | rt700.c | 136 rt700->jack_type = SND_JACK_HEADPHONE; in rt700_headset_detect() 139 rt700->jack_type = SND_JACK_HEADSET; in rt700_headset_detect() 176 if (rt700->jack_type == 0) { in rt700_jack_detect_handler() 180 if (rt700->jack_type == SND_JACK_HEADSET) in rt700_jack_detect_handler() 182 } else if (rt700->jack_type == SND_JACK_HEADSET) { in rt700_jack_detect_handler() 188 rt700->jack_type = 0; in rt700_jack_detect_handler() 192 "in %s, jack_type=0x%x\n", __func__, rt700->jack_type); in rt700_jack_detect_handler() 196 snd_soc_jack_report(rt700->hs_jack, rt700->jack_type | btn_type, in rt700_jack_detect_handler() 203 snd_soc_jack_report(rt700->hs_jack, rt700->jack_type, in rt700_jack_detect_handler() 232 if (rt700->jack_type == SND_JACK_HEADSET) { in rt700_btn_check_handler() [all …]
|
D | rt5668.c | 63 int jack_type; member 922 rt5668->jack_type = SND_JACK_HEADSET; in rt5668_headset_detect() 926 rt5668->jack_type = SND_JACK_HEADPHONE; in rt5668_headset_detect() 936 rt5668->jack_type = 0; in rt5668_headset_detect() 939 dev_dbg(component->dev, "jack_type = %d\n", rt5668->jack_type); in rt5668_headset_detect() 940 return rt5668->jack_type; in rt5668_headset_detect() 961 rt5668->jack_type = rt5668_headset_detect(rt5668->component, 0); in rt5668_jd_check_handler() 963 snd_soc_jack_report(rt5668->hs_jack, rt5668->jack_type, in rt5668_jd_check_handler() 1039 if (rt5668->jack_type == 0) { in rt5668_jack_detect_handler() 1041 rt5668->jack_type = in rt5668_jack_detect_handler() [all …]
|
D | rt711.c | 216 rt711->jack_type = SND_JACK_HEADPHONE; in rt711_headset_detect() 219 rt711->jack_type = SND_JACK_HEADSET; in rt711_headset_detect() 263 if (rt711->jack_type == 0) { in rt711_jack_detect_handler() 267 if (rt711->jack_type == SND_JACK_HEADSET) in rt711_jack_detect_handler() 269 } else if (rt711->jack_type == SND_JACK_HEADSET) { in rt711_jack_detect_handler() 275 rt711->jack_type = 0; in rt711_jack_detect_handler() 279 "in %s, jack_type=0x%x\n", __func__, rt711->jack_type); in rt711_jack_detect_handler() 283 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type | btn_type, in rt711_jack_detect_handler() 290 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type, in rt711_jack_detect_handler() 319 if (rt711->jack_type == SND_JACK_HEADSET) { in rt711_btn_check_handler() [all …]
|
D | rt5682.c | 965 rt5682->jack_type = SND_JACK_HEADSET; in rt5682_headset_detect() 971 rt5682->jack_type = SND_JACK_HEADPHONE; in rt5682_headset_detect() 1004 rt5682->jack_type = 0; in rt5682_headset_detect() 1007 dev_dbg(component->dev, "jack_type = %d\n", rt5682->jack_type); in rt5682_headset_detect() 1008 return rt5682->jack_type; in rt5682_headset_detect() 1121 if (rt5682->jack_type == 0) { in rt5682_jack_detect_handler() 1123 rt5682->jack_type = in rt5682_jack_detect_handler() 1126 } else if ((rt5682->jack_type & SND_JACK_HEADSET) == in rt5682_jack_detect_handler() 1129 rt5682->jack_type = SND_JACK_HEADSET; in rt5682_jack_detect_handler() 1142 rt5682->jack_type |= SND_JACK_BTN_0; in rt5682_jack_detect_handler() [all …]
|
D | rt5682s.c | 744 int jack_type = 0; in rt5682s_headset_detect() local 786 jack_type = SND_JACK_HEADSET; in rt5682s_headset_detect() 796 jack_type = SND_JACK_HEADPHONE; in rt5682s_headset_detect() 820 jack_type = 0; in rt5682s_headset_detect() 823 dev_dbg(component->dev, "jack_type = %d\n", jack_type); in rt5682s_headset_detect() 825 return jack_type; in rt5682s_headset_detect() 853 if (rt5682s->jack_type == 0) { in rt5682s_jack_detect_handler() 855 rt5682s->jack_type = rt5682s_headset_detect(rt5682s->component, 1); in rt5682s_jack_detect_handler() 857 } else if ((rt5682s->jack_type & SND_JACK_HEADSET) == SND_JACK_HEADSET) { in rt5682s_jack_detect_handler() 859 rt5682s->jack_type = SND_JACK_HEADSET; in rt5682s_jack_detect_handler() [all …]
|
D | mt6359-accdet.c | 266 priv->jack_type = 0; in mt6359_accdet_recover_jd_setting() 330 report = priv->jack_type | priv->btn_type; in mt6359_accdet_jack_report() 363 priv->btn_type = priv->jack_type & ~MT6359_ACCDET_BTN_MASK; in is_key_pressed() 380 if (priv->jack_type == SND_JACK_HEADSET) in check_jack_btn_type() 383 priv->jack_type = SND_JACK_HEADPHONE; in check_jack_btn_type() 386 if (priv->jack_type == SND_JACK_HEADSET) { in check_jack_btn_type() 389 priv->jack_type = SND_JACK_HEADSET; in check_jack_btn_type() 395 priv->jack_type = 0; in check_jack_btn_type() 1038 priv->jack_type = 0; in mt6359_accdet_probe()
|
D | rt5663.c | 76 int jack_type; member 1496 rt5663->jack_type = SND_JACK_HEADSET; in rt5663_v2_jack_detect() 1505 rt5663->jack_type = SND_JACK_HEADPHONE; in rt5663_v2_jack_detect() 1511 if (rt5663->jack_type == SND_JACK_HEADSET) { in rt5663_v2_jack_detect() 1519 rt5663->jack_type = 0; in rt5663_v2_jack_detect() 1522 dev_dbg(component->dev, "jack_type = %d\n", rt5663->jack_type); in rt5663_v2_jack_detect() 1523 return rt5663->jack_type; in rt5663_v2_jack_detect() 1608 rt5663->jack_type = SND_JACK_HEADSET; in rt5663_jack_detect() 1633 rt5663->jack_type = SND_JACK_HEADPHONE; in rt5663_jack_detect() 1659 if (rt5663->jack_type == SND_JACK_HEADSET) in rt5663_jack_detect() [all …]
|
D | rt5665.c | 67 int jack_type; member 1208 rt5665->jack_type = SND_JACK_HEADSET; in rt5665_headset_detect() 1211 rt5665->jack_type = SND_JACK_HEADPHONE; in rt5665_headset_detect() 1224 if (rt5665->jack_type == SND_JACK_HEADSET) in rt5665_headset_detect() 1226 rt5665->jack_type = 0; in rt5665_headset_detect() 1229 dev_dbg(component->dev, "jack_type = %d\n", rt5665->jack_type); in rt5665_headset_detect() 1230 return rt5665->jack_type; in rt5665_headset_detect() 1250 rt5665->jack_type = rt5665_headset_detect(rt5665->component, 0); in rt5665_jd_check_handler() 1252 snd_soc_jack_report(rt5665->hs_jack, rt5665->jack_type, in rt5665_jd_check_handler() 1316 if (rt5665->jack_type == 0) { in rt5665_jack_detect_handler() [all …]
|
D | rt711-sdca.c | 259 rt711->jack_type = 0; in rt711_sdca_headset_detect() 262 rt711->jack_type = SND_JACK_HEADPHONE; in rt711_sdca_headset_detect() 265 rt711->jack_type = SND_JACK_HEADSET; in rt711_sdca_headset_detect() 311 if (rt711->jack_type == 0) in rt711_sdca_jack_detect_handler() 315 "in %s, jack_type=0x%x\n", __func__, rt711->jack_type); in rt711_sdca_jack_detect_handler() 322 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type | btn_type, in rt711_sdca_jack_detect_handler() 329 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type, in rt711_sdca_jack_detect_handler() 405 rt711->jack_type = 0; in rt711_sdca_btn_check_handler() 408 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type | btn_type, in rt711_sdca_btn_check_handler() 415 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type, in rt711_sdca_btn_check_handler()
|
D | rt5659.c | 1297 rt5659->jack_type = SND_JACK_HEADSET; in rt5659_headset_detect() 1302 rt5659->jack_type = SND_JACK_HEADPHONE; in rt5659_headset_detect() 1310 if (rt5659->jack_type == SND_JACK_HEADSET) in rt5659_headset_detect() 1312 rt5659->jack_type = 0; in rt5659_headset_detect() 1315 dev_dbg(component->dev, "jack_type = %d\n", rt5659->jack_type); in rt5659_headset_detect() 1316 return rt5659->jack_type; in rt5659_headset_detect() 1365 if (rt5659->jack_type == 0) { in rt5659_jack_detect_work() 1412 report = rt5659->jack_type; in rt5659_jack_detect_work() 1444 rt5659->jack_type |= SND_JACK_HEADPHONE; in rt5659_jack_detect_intel_hd_header() 1448 rt5659->jack_type = rt5659->jack_type & in rt5659_jack_detect_intel_hd_header() [all …]
|
D | mt6359-accdet.h | 114 unsigned int jack_type; member
|
D | rt711-sdca.h | 32 int jack_type, jd_src; member
|
D | rt700.h | 25 int jack_type; member
|
D | rt711.h | 27 int jack_type, jd_src; member
|
D | rt5670.c | 457 rt5670->jack_type = SND_JACK_HEADSET; in rt5670_headset_detect() 464 rt5670->jack_type = SND_JACK_HEADPHONE; in rt5670_headset_detect() 471 rt5670->jack_type = 0; in rt5670_headset_detect() 476 return rt5670->jack_type; in rt5670_headset_detect() 483 rt5670->jack_type_saved = rt5670->jack_type; in rt5670_jack_suspend() 529 if (rt5670->jack_type == 0) { in rt5670_irq_detection() 558 report = rt5670->jack_type; in rt5670_irq_detection()
|
D | rt5645.c | 464 int jack_type; member 3188 rt5645->jack_type = SND_JACK_HEADSET; in rt5645_jack_detect() 3197 rt5645->jack_type = SND_JACK_HEADPHONE; in rt5645_jack_detect() 3203 rt5645->jack_type = 0; in rt5645_jack_detect() 3225 return rt5645->jack_type; in rt5645_jack_detect() 3302 if (!val && (rt5645->jack_type == 0)) { /* jack in */ in rt5645_jack_detect_work() 3304 } else if (!val && rt5645->jack_type == SND_JACK_HEADSET) { in rt5645_jack_detect_work() 3347 report = rt5645->jack_type; in rt5645_jack_detect_work()
|
D | rt5640.c | 2316 int val, jack_type = 0, hda_mic_plugged, hda_hp_plugged; in rt5640_jack_work() local 2328 jack_type |= SND_JACK_MICROPHONE; in rt5640_jack_work() 2340 jack_type |= SND_JACK_HEADPHONE; in rt5640_jack_work() 2342 snd_soc_jack_report(rt5640->jack, jack_type, SND_JACK_HEADSET); in rt5640_jack_work()
|
D | rt5682s.h | 1472 int jack_type; member
|
/sound/soc/intel/boards/ |
D | cht_bsw_max98090_ti.c | 189 int jack_type; in cht_codec_init() local 202 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE; in cht_codec_init() 205 jack_type, jack, in cht_codec_init() 295 int jack_type; in cht_max98090_headset_init() local 305 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE | in cht_max98090_headset_init() 309 ret = snd_soc_card_jack_new(card, "Headset Jack", jack_type, jack); in cht_max98090_headset_init()
|
D | cht_bsw_nau8824.c | 101 int ret, jack_type; in cht_codec_init() local 109 jack_type = SND_JACK_HEADSET | SND_JACK_BTN_0 | SND_JACK_BTN_1 | in cht_codec_init() 111 ret = snd_soc_card_jack_new_pins(runtime->card, "Headset", jack_type, in cht_codec_init()
|
D | bytcr_wm5102.c | 198 int ret, jack_type; in byt_wm5102_init() local 227 jack_type = ARIZONA_JACK_MASK | SND_JACK_BTN_0 | SND_JACK_BTN_1 | in byt_wm5102_init() 229 ret = snd_soc_card_jack_new_pins(card, "Headset", jack_type, in byt_wm5102_init()
|
D | cht_bsw_rt5645.c | 256 int jack_type; in cht_codec_init() local 299 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE | in cht_codec_init() 303 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE; in cht_codec_init() 305 ret = snd_soc_card_jack_new_pins(runtime->card, "Headset", jack_type, in cht_codec_init()
|
/sound/soc/samsung/ |
D | aries_wm8994.c | 79 .jack_type = SND_JACK_HEADPHONE, 83 .jack_type = SND_JACK_HEADSET, 87 .jack_type = SND_JACK_HEADPHONE,
|
/sound/soc/ |
D | soc-jack.c | 120 return zone->jack_type; in snd_soc_jack_get_type()
|