Lines Matching refs:component
47 struct snd_soc_component *component; member
84 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field()
94 return snd_soc_component_read_field(mbhc->component, in wcd_mbhc_read_field()
108 struct snd_soc_component *component = mbhc->component; in wcd_program_btn_threshold() local
110 mbhc->mbhc_cb->set_btn_thr(component, mbhc->cfg->btn_low, in wcd_program_btn_threshold()
164 struct snd_soc_component *component; in wcd_mbhc_event_notify() local
170 component = mbhc->component; in wcd_mbhc_event_notify()
173 micbias2 = mbhc->mbhc_cb->micbias_enable_status(component, MIC_BIAS_2); in wcd_mbhc_event_notify()
274 struct snd_soc_component *component = mbhc->component; in wcd_micbias_disable() local
277 mbhc->mbhc_cb->mbhc_micbias_control(component, MIC_BIAS_2, MICB_DISABLE); in wcd_micbias_disable()
280 mbhc->mbhc_cb->mbhc_micb_ctrl_thr_mic(component, MIC_BIAS_2, false); 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()
395 mbhc->mbhc_cb->mbhc_micb_ramp_control(mbhc->component, false); in wcd_mbhc_report_plug_insertion()
493 struct snd_soc_component *component = mbhc->component; in wcd_mbhc_adc_detect_plug_type() local
498 mbhc->mbhc_cb->hph_pull_down_ctrl(component, false); 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()
511 struct snd_soc_component *component; in wcd_mbhc_mech_plug_detect_irq() local
516 component = mbhc->component; 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()
714 struct snd_soc_component *component = mbhc->component; in wcd_mbhc_initialise() local
717 ret = pm_runtime_get_sync(component->dev); in wcd_mbhc_initialise()
719 dev_err_ratelimited(component->dev, in wcd_mbhc_initialise()
722 pm_runtime_put_noidle(component->dev); in wcd_mbhc_initialise()
730 mbhc->mbhc_cb->hph_pull_up_control_v2(component, in wcd_mbhc_initialise()
733 mbhc->mbhc_cb->hph_pull_up_control(component, I_DEFAULT); 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()
756 mbhc->mbhc_cb->clk_setup(component, true); in wcd_mbhc_initialise()
765 pm_runtime_mark_last_busy(component->dev); in wcd_mbhc_initialise()
766 pm_runtime_put_autosuspend(component->dev); in wcd_mbhc_initialise()
776 mbhc->mbhc_cb->get_micbias_val(mbhc->component, &micbias); in wcd_mbhc_get_micbias()
994 micbias2 = mbhc->mbhc_cb->micbias_enable_status(mbhc->component, in wcd_mbhc_adc_update_fsm_source()
1013 mbhc->mbhc_cb->bcs_enable(mbhc->component, enable); in wcd_mbhc_bcs_enable()
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()
1088 struct snd_soc_component *component; in wcd_correct_swch_plug() local
1098 component = mbhc->component; in wcd_correct_swch_plug()
1100 ret = pm_runtime_get_sync(component->dev); in wcd_correct_swch_plug()
1102 dev_err_ratelimited(component->dev, in wcd_correct_swch_plug()
1105 pm_runtime_put_noidle(component->dev); in wcd_correct_swch_plug()
1200 if (mbhc->cfg->swap_gnd_mic(component, true)) in wcd_correct_swch_plug()
1239 mbhc->mbhc_cb->mbhc_micbias_control(component, MIC_BIAS_2, MICB_DISABLE); in wcd_correct_swch_plug()
1257 mbhc->mbhc_cb->hph_pull_down_ctrl(component, true); in wcd_correct_swch_plug()
1259 pm_runtime_mark_last_busy(component->dev); in wcd_correct_swch_plug()
1260 pm_runtime_put_autosuspend(component->dev); in wcd_correct_swch_plug()
1442 struct wcd_mbhc *wcd_mbhc_init(struct snd_soc_component *component, in wcd_mbhc_init() argument
1448 struct device *dev = component->dev; in wcd_mbhc_init()
1461 mbhc->component = component; in wcd_mbhc_init()