| /linux/sound/soc/codecs/ |
| H A D | wcd-mbhc-v2.c | 293 enum snd_jack_types jack_type) in wcd_mbhc_report_plug_removal() argument 295 mbhc->hph_status &= ~jack_type; in wcd_mbhc_report_plug_removal() 332 enum snd_jack_types jack_type) in wcd_mbhc_report_plug_insertion() argument 341 jack_type == SND_JACK_HEADPHONE) in wcd_mbhc_report_plug_insertion() 345 switch (jack_type) { in wcd_mbhc_report_plug_insertion() 367 (jack_type == SND_JACK_HEADPHONE)) { in wcd_mbhc_report_plug_insertion() 368 jack_type = SND_JACK_LINEOUT; in wcd_mbhc_report_plug_insertion() 386 jack_type = SND_JACK_LINEOUT; in wcd_mbhc_report_plug_insertion() 396 mbhc->hph_status |= jack_type; in wcd_mbhc_report_plug_insertion() 398 if (jack_type == SND_JACK_HEADPHONE && mbhc->mbhc_cb->mbhc_micb_ramp_control) in wcd_mbhc_report_plug_insertion() [all …]
|
| H A D | rt700.c | 137 rt700->jack_type = SND_JACK_HEADPHONE; in rt700_headset_detect() 140 rt700->jack_type = SND_JACK_HEADSET; in rt700_headset_detect() 177 if (rt700->jack_type == 0) { in rt700_jack_detect_handler() 181 if (rt700->jack_type == SND_JACK_HEADSET) in rt700_jack_detect_handler() 183 } else if (rt700->jack_type == SND_JACK_HEADSET) { in rt700_jack_detect_handler() 189 rt700->jack_type = 0; in rt700_jack_detect_handler() 193 "in %s, jack_type=0x%x\n", __func__, rt700->jack_type); in rt700_jack_detect_handler() 197 snd_soc_jack_report(rt700->hs_jack, rt700->jack_type | btn_type, in rt700_jack_detect_handler() 204 snd_soc_jack_report(rt700->hs_jack, rt700->jack_type, in rt700_jack_detect_handler() [all...] |
| H A D | rt5668.c | 64 int jack_type; 879 rt5668->jack_type = SND_JACK_HEADSET; in rt5668_headset_detect() 883 rt5668->jack_type = SND_JACK_HEADPHONE; in rt5668_headset_detect() 893 rt5668->jack_type = 0; in rt5668_headset_detect() 896 dev_dbg(component->dev, "jack_type = %d\n", rt5668->jack_type); in rt5668_headset_detect() 897 return rt5668->jack_type; in rt5668_headset_detect() 918 rt5668->jack_type = rt5668_headset_detect(rt5668->component, 0); in rt5668_jd_check_handler() 920 snd_soc_jack_report(rt5668->hs_jack, rt5668->jack_type, in rt5668_jd_check_handler() 996 if (rt5668->jack_type in rt5668_jack_detect_handler() 63 int jack_type; global() member [all...] |
| H A D | rt711.c | 217 rt711->jack_type = SND_JACK_HEADPHONE; in rt711_headset_detect() 220 rt711->jack_type = SND_JACK_HEADSET; in rt711_headset_detect() 264 if (rt711->jack_type == 0) { in rt711_jack_detect_handler() 268 if (rt711->jack_type == SND_JACK_HEADSET) in rt711_jack_detect_handler() 270 } else if (rt711->jack_type == SND_JACK_HEADSET) { in rt711_jack_detect_handler() 276 rt711->jack_type = 0; in rt711_jack_detect_handler() 280 "in %s, jack_type=0x%x\n", __func__, rt711->jack_type); in rt711_jack_detect_handler() 284 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type | btn_type, in rt711_jack_detect_handler() 291 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type, in rt711_jack_detect_handler() [all...] |
| H A D | rt5682.c | 969 rt5682->jack_type = SND_JACK_HEADSET; in rt5682_headset_detect() 975 rt5682->jack_type = SND_JACK_HEADPHONE; in rt5682_headset_detect() 1008 rt5682->jack_type = 0; in rt5682_headset_detect() 1011 dev_dbg(component->dev, "jack_type = %d\n", rt5682->jack_type); in rt5682_headset_detect() 1012 return rt5682->jack_type; in rt5682_headset_detect() 1128 if (rt5682->jack_type == 0) { in rt5682_jack_detect_handler() 1130 rt5682->jack_type = in rt5682_jack_detect_handler() 1133 } else if ((rt5682->jack_type & SND_JACK_HEADSET) == in rt5682_jack_detect_handler() 1136 rt5682->jack_type in rt5682_jack_detect_handler() [all...] |
| H A D | es9356.c | 44 int jack_type; member 325 es9356->jack_type = 0; in es9356_sdca_headset_detect() 328 es9356->jack_type = SND_JACK_HEADPHONE; in es9356_sdca_headset_detect() 331 es9356->jack_type = SND_JACK_HEADSET; in es9356_sdca_headset_detect() 334 es9356->jack_type = 0; in es9356_sdca_headset_detect() 376 if (es9356->jack_type != SND_JACK_HEADSET) in es9356_interrupt_handler() 379 snd_soc_jack_report(es9356->hs_jack, es9356->jack_type | btn_type, in es9356_interrupt_handler() 386 snd_soc_jack_report(es9356->hs_jack, es9356->jack_type, in es9356_interrupt_handler() 426 snd_soc_jack_report(es9356->hs_jack, es9356->jack_type | btn_type, in es9356_button_detect_handler() 433 snd_soc_jack_report(es9356->hs_jack, es9356->jack_type, in es9356_button_detect_handler()
|
| H A D | rt5682s.c | 744 int jack_type = 0; in rt5682s_headset_detect() 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 in rt5682s_jack_detect_handler() 745 int jack_type = 0; rt5682s_headset_detect() local [all...] |
| H A D | mt6359-accdet.c | 263 priv->jack_type = 0; in mt6359_accdet_recover_jd_setting() 327 report = priv->jack_type | priv->btn_type; in mt6359_accdet_jack_report() 360 priv->btn_type = priv->jack_type & ~MT6359_ACCDET_BTN_MASK; in is_key_pressed() 377 if (priv->jack_type == SND_JACK_HEADSET) in check_jack_btn_type() 380 priv->jack_type = SND_JACK_HEADPHONE; in check_jack_btn_type() 383 if (priv->jack_type == SND_JACK_HEADSET) { in check_jack_btn_type() 386 priv->jack_type = SND_JACK_HEADSET; in check_jack_btn_type() 392 priv->jack_type = 0; in check_jack_btn_type() 1029 priv->jack_type = 0; in mt6359_accdet_probe()
|
| H A D | rt711-sdca.c | 281 rt711->jack_type = 0; in rt711_sdca_headset_detect() 284 rt711->jack_type = SND_JACK_HEADPHONE; in rt711_sdca_headset_detect() 287 rt711->jack_type = SND_JACK_HEADSET; in rt711_sdca_headset_detect() 333 if (rt711->jack_type == 0) in rt711_sdca_jack_detect_handler() 337 "in %s, jack_type=0x%x\n", __func__, rt711->jack_type); in rt711_sdca_jack_detect_handler() 344 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type | btn_type, in rt711_sdca_jack_detect_handler() 351 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type, in rt711_sdca_jack_detect_handler() 427 rt711->jack_type = 0; in rt711_sdca_btn_check_handler() 430 snd_soc_jack_report(rt711->hs_jack, rt711->jack_type | btn_typ in rt711_sdca_btn_check_handler() [all...] |
| H A D | rt5665.c | 64 int jack_type; 1109 rt5665->jack_type = SND_JACK_HEADSET; in rt5665_headset_detect() 1112 rt5665->jack_type = SND_JACK_HEADPHONE; in rt5665_headset_detect() 1125 if (rt5665->jack_type == SND_JACK_HEADSET) in rt5665_headset_detect() 1127 rt5665->jack_type = 0; in rt5665_headset_detect() 1130 dev_dbg(component->dev, "jack_type = %d\n", rt5665->jack_type); in rt5665_headset_detect() 1131 return rt5665->jack_type; in rt5665_headset_detect() 1151 rt5665->jack_type = rt5665_headset_detect(rt5665->component, 0); in rt5665_jd_check_handler() 1153 snd_soc_jack_report(rt5665->hs_jack, rt5665->jack_type, in rt5665_jd_check_handler() 63 int jack_type; global() member [all...] |
| H A D | rt721-sdca.c | 43 rt721->jack_type = rt_sdca_headset_detect(rt721->regmap, in rt721_sdca_jack_detect_handler() 45 if (rt721->jack_type < 0) in rt721_sdca_jack_detect_handler() 55 if (rt721->jack_type == 0) in rt721_sdca_jack_detect_handler() 59 "in %s, jack_type=%d\n", __func__, rt721->jack_type); in rt721_sdca_jack_detect_handler() 66 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type | btn_type, in rt721_sdca_jack_detect_handler() 73 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type, in rt721_sdca_jack_detect_handler() 117 rt721->jack_type = 0; in rt721_sdca_btn_check_handler() 120 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type | btn_type, in rt721_sdca_btn_check_handler() 127 snd_soc_jack_report(rt721->hs_jack, rt721->jack_type, in rt721_sdca_btn_check_handler() [all...] |
| H A D | rt712-sdca.c | 233 rt712->jack_type = 0; in rt712_sdca_headset_detect() 236 rt712->jack_type = SND_JACK_HEADPHONE; in rt712_sdca_headset_detect() 239 rt712->jack_type = SND_JACK_HEADSET; in rt712_sdca_headset_detect() 285 if (rt712->jack_type == 0) in rt712_sdca_jack_detect_handler() 289 "in %s, jack_type=0x%x\n", __func__, rt712->jack_type); in rt712_sdca_jack_detect_handler() 296 snd_soc_jack_report(rt712->hs_jack, rt712->jack_type | btn_type, in rt712_sdca_jack_detect_handler() 303 snd_soc_jack_report(rt712->hs_jack, rt712->jack_type, in rt712_sdca_jack_detect_handler() 379 rt712->jack_type = 0; in rt712_sdca_btn_check_handler() 383 snd_soc_jack_report(rt712->hs_jack, rt712->jack_type | btn_type, in rt712_sdca_btn_check_handler() 390 snd_soc_jack_report(rt712->hs_jack, rt712->jack_type, in rt712_sdca_btn_check_handler()
|
| H A D | rt722-sdca.c | 157 rt722->jack_type = 0; in rt722_sdca_headset_detect() 160 rt722->jack_type = SND_JACK_HEADPHONE; in rt722_sdca_headset_detect() 163 rt722->jack_type = SND_JACK_HEADSET; in rt722_sdca_headset_detect() 209 if (rt722->jack_type == 0) in rt722_sdca_jack_detect_handler() 213 "in %s, jack_type=%d\n", __func__, rt722->jack_type); in rt722_sdca_jack_detect_handler() 220 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | btn_type, in rt722_sdca_jack_detect_handler() 227 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type, in rt722_sdca_jack_detect_handler() 271 rt722->jack_type = 0; in rt722_sdca_btn_check_handler() 274 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | btn_type, in rt722_sdca_btn_check_handler() 281 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type, in rt722_sdca_btn_check_handler()
|
| H A D | tac5xx2-sdw.c | 146 int jack_type; member 950 tac_dev->jack_type = SND_JACK_MICROPHONE; in tac5xx2_sdca_headset_detect() 953 tac_dev->jack_type = SND_JACK_HEADPHONE; in tac5xx2_sdca_headset_detect() 956 tac_dev->jack_type = SND_JACK_HEADSET; in tac5xx2_sdca_headset_detect() 960 tac_dev->jack_type = 0; in tac5xx2_sdca_headset_detect() 1121 if (tac_dev->jack_type == 0) in tac_interrupt_callback() 1124 dev_dbg(tac_dev->dev, "in %s, jack_type=%d\n", __func__, tac_dev->jack_type); in tac_interrupt_callback() 1130 snd_soc_jack_report(tac_dev->hs_jack, tac_dev->jack_type | btn_type, in tac_interrupt_callback() 2004 tac_dev->jack_type = 0; in tac_sdw_probe()
|
| H A D | rt700.h | 24 int jack_type; member
|
| H A D | rt711-sdca.h | 31 int jack_type, jd_src; member
|
| H A D | rt722-sdca.h | 34 int jack_type; member
|
| H A D | rt721-sdca.h | 35 int jack_type; member
|
| H A D | rt711.h | 26 int jack_type, jd_src; member
|
| H A D | rt5645.c | 473 int jack_type; member 3213 rt5645->jack_type = SND_JACK_HEADSET; in rt5645_jack_detect() 3222 rt5645->jack_type = SND_JACK_HEADPHONE; in rt5645_jack_detect() 3232 rt5645->jack_type = 0; in rt5645_jack_detect() 3257 return rt5645->jack_type; in rt5645_jack_detect() 3351 if (!val && rt5645->jack_type == 0) { /* jack in */ in rt5645_jack_detect_work() 3353 } else if (!val && rt5645->jack_type == SND_JACK_HEADSET) { in rt5645_jack_detect_work() 3398 report = rt5645->jack_type; in rt5645_jack_detect_work() 4353 rt5645->jack_type = 0; in rt5645_sys_resume()
|
| /linux/sound/soc/intel/boards/ |
| H A D | cht_bsw_max98090_ti.c | 188 int jack_type; in cht_codec_init() 201 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE; in cht_codec_init() 204 jack_type, jack, in cht_codec_init() 294 int jack_type; in cht_max98090_headset_init() 304 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE | in cht_max98090_headset_init() 308 ret = snd_soc_card_jack_new(card, "Headset Jack", jack_type, jack); in cht_max98090_headset_init() 189 int jack_type; cht_codec_init() local 295 int jack_type; cht_max98090_headset_init() local
|
| H A D | cht_bsw_rt5645.c | 255 int jack_type; in cht_codec_init() local 298 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE | in cht_codec_init() 302 jack_type = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE; in cht_codec_init() 304 ret = snd_soc_card_jack_new_pins(runtime->card, "Headset", jack_type, in cht_codec_init()
|
| /linux/drivers/staging/greybus/ |
| H A D | audio_module.c | 39 module->jack_type = 0; in gbaudio_request_jack() 58 if (module->jack_type) in gbaudio_request_jack() 61 module->jack_type, report); in gbaudio_request_jack() 63 module->jack_type = report; in gbaudio_request_jack() 87 if (!module->jack_type) { in gbaudio_request_button()
|
| /linux/sound/soc/sunxi/ |
| H A D | sun8i-codec.c | 235 int jack_type; member 1363 if (scodec->jack_type & SND_JACK_MICROPHONE) { in sun8i_codec_jack_work() 1376 scodec->jack_type); in sun8i_codec_jack_work() 1417 snd_soc_jack_report(scodec->jack, type, scodec->jack_type); in sun8i_codec_jack_work() 1424 if (scodec->jack_type & SND_JACK_MICROPHONE) in sun8i_codec_jack_work() 1427 snd_soc_jack_report(scodec->jack, 0, scodec->jack_type); in sun8i_codec_jack_work() 1491 scodec->jack_type); in sun8i_codec_jack_irq()
|
| /linux/include/sound/ |
| H A D | soc-jack.h | 39 unsigned int jack_type; member
|