Lines Matching refs:mbhc_cb
50 const struct wcd_mbhc_cb *mbhc_cb; member
110 mbhc->mbhc_cb->set_btn_thr(component, mbhc->cfg->btn_low, in wcd_program_btn_threshold()
125 if (mbhc->mbhc_cb->mbhc_micbias_control) in wcd_mbhc_curr_micbias_control()
172 if (mbhc->mbhc_cb->micbias_enable_status) in wcd_mbhc_event_notify()
173 micbias2 = mbhc->mbhc_cb->micbias_enable_status(component, MIC_BIAS_2); in wcd_mbhc_event_notify()
182 if (mbhc->mbhc_cb->mbhc_micbias_control) { in wcd_mbhc_event_notify()
196 if (mbhc->mbhc_cb->mbhc_micbias_control/* && !mbhc->micbias_enable*/) { in wcd_mbhc_event_notify()
206 if (!mbhc->mbhc_cb->mbhc_micbias_control) in wcd_mbhc_event_notify()
276 if (mbhc->mbhc_cb->mbhc_micbias_control) in wcd_micbias_disable()
277 mbhc->mbhc_cb->mbhc_micbias_control(component, MIC_BIAS_2, MICB_DISABLE); in wcd_micbias_disable()
279 if (mbhc->mbhc_cb->mbhc_micb_ctrl_thr_mic) in wcd_micbias_disable()
280 mbhc->mbhc_cb->mbhc_micb_ctrl_thr_mic(component, MIC_BIAS_2, false); in wcd_micbias_disable()
282 if (mbhc->mbhc_cb->set_micbias_value) { in wcd_micbias_disable()
283 mbhc->mbhc_cb->set_micbias_value(component); in wcd_micbias_disable()
322 mbhc->mbhc_cb->compute_impedance(mbhc->component, &mbhc->zl, &mbhc->zr); in wcd_mbhc_compute_impedance()
394 if (jack_type == SND_JACK_HEADPHONE && mbhc->mbhc_cb->mbhc_micb_ramp_control) in wcd_mbhc_report_plug_insertion()
395 mbhc->mbhc_cb->mbhc_micb_ramp_control(mbhc->component, false); in wcd_mbhc_report_plug_insertion()
497 if (mbhc->mbhc_cb->hph_pull_down_ctrl) in wcd_mbhc_adc_detect_plug_type()
498 mbhc->mbhc_cb->hph_pull_down_ctrl(component, false); in wcd_mbhc_adc_detect_plug_type()
502 if (mbhc->mbhc_cb->mbhc_micbias_control) { in wcd_mbhc_adc_detect_plug_type()
503 mbhc->mbhc_cb->mbhc_micbias_control(component, MIC_BIAS_2, in wcd_mbhc_adc_detect_plug_type()
529 if (mbhc->mbhc_cb->mbhc_micb_ramp_control) in wcd_mbhc_mech_plug_detect_irq()
530 mbhc->mbhc_cb->mbhc_micb_ramp_control(component, true); in wcd_mbhc_mech_plug_detect_irq()
536 mbhc->mbhc_cb->mbhc_bias(component, true); in wcd_mbhc_mech_plug_detect_irq()
729 if (mbhc->mbhc_cb->hph_pull_up_control_v2) in wcd_mbhc_initialise()
730 mbhc->mbhc_cb->hph_pull_up_control_v2(component, in wcd_mbhc_initialise()
732 else if (mbhc->mbhc_cb->hph_pull_up_control) in wcd_mbhc_initialise()
733 mbhc->mbhc_cb->hph_pull_up_control(component, I_DEFAULT); in wcd_mbhc_initialise()
740 if (mbhc->cfg->gnd_det_en && mbhc->mbhc_cb->mbhc_gnd_det_ctrl) in wcd_mbhc_initialise()
741 mbhc->mbhc_cb->mbhc_gnd_det_ctrl(component, true); in wcd_mbhc_initialise()
753 mbhc->mbhc_cb->mbhc_bias(component, true); in wcd_mbhc_initialise()
755 if (mbhc->mbhc_cb->clk_setup) in wcd_mbhc_initialise()
756 mbhc->mbhc_cb->clk_setup(component, true); in wcd_mbhc_initialise()
775 if (mbhc->mbhc_cb->get_micbias_val) { in wcd_mbhc_get_micbias()
776 mbhc->mbhc_cb->get_micbias_val(mbhc->component, &micbias); in wcd_mbhc_get_micbias()
993 if (mbhc->mbhc_cb->micbias_enable_status) in wcd_mbhc_adc_update_fsm_source()
994 micbias2 = mbhc->mbhc_cb->micbias_enable_status(mbhc->component, in wcd_mbhc_adc_update_fsm_source()
1012 if (mbhc->mbhc_cb->bcs_enable) in wcd_mbhc_bcs_enable()
1013 mbhc->mbhc_cb->bcs_enable(mbhc->component, enable); in wcd_mbhc_bcs_enable()
1061 if (!mbhc->mbhc_cb->mbhc_micb_ctrl_thr_mic) in wcd_mbhc_check_for_spl_headset()
1065 mbhc->mbhc_cb->mbhc_micb_ctrl_thr_mic(mbhc->component, MIC_BIAS_2, true); in wcd_mbhc_check_for_spl_headset()
1077 mbhc->mbhc_cb->mbhc_micb_ctrl_thr_mic(mbhc->component, MIC_BIAS_2, false); in wcd_mbhc_check_for_spl_headset()
1234 if (mbhc->mbhc_cb->mbhc_micbias_control) in wcd_correct_swch_plug()
1238 if (mbhc->mbhc_cb->mbhc_micbias_control/* && !mbhc->micbias_enable*/) in wcd_correct_swch_plug()
1239 mbhc->mbhc_cb->mbhc_micbias_control(component, MIC_BIAS_2, MICB_DISABLE); in wcd_correct_swch_plug()
1256 if (mbhc->mbhc_cb->hph_pull_down_ctrl) in wcd_correct_swch_plug()
1257 mbhc->mbhc_cb->hph_pull_down_ctrl(component, true); in wcd_correct_swch_plug()
1443 const struct wcd_mbhc_cb *mbhc_cb, in wcd_mbhc_init() argument
1452 if (!intr_ids || !fields || !mbhc_cb || !mbhc_cb->mbhc_bias || !mbhc_cb->set_btn_thr) { in wcd_mbhc_init()
1464 mbhc->mbhc_cb = mbhc_cb; in wcd_mbhc_init()
1468 if (mbhc_cb->compute_impedance) in wcd_mbhc_init()