Lines Matching full:micbias

110 static void wcd_program_btn_threshold(const struct wcd_mbhc *mbhc, bool micbias)  in wcd_program_btn_threshold()  argument
116 mbhc->cfg->num_btn, micbias); in wcd_program_btn_threshold()
124 * Some codecs handle micbias/pullup enablement in codec in wcd_mbhc_curr_micbias_control()
125 * drivers itself and micbias is not needed for regular in wcd_mbhc_curr_micbias_control()
142 /* Disable PULL_UP_EN & enable MICBIAS */ in wcd_mbhc_curr_micbias_control()
144 /* Program Button threshold registers as per MICBIAS */ in wcd_mbhc_curr_micbias_control()
151 /* Program Button threshold registers as per MICBIAS */ in wcd_mbhc_curr_micbias_control()
180 /* MICBIAS usage change */ in wcd_mbhc_event_notify()
205 /* MICBIAS usage change */ in wcd_mbhc_event_notify()
226 /* check if micbias is enabled */ in wcd_mbhc_event_notify()
228 /* Disable cs, pullup & enable micbias */ in wcd_mbhc_event_notify()
231 /* Disable micbias, pullup & enable cs */ in wcd_mbhc_event_notify()
236 /* check if micbias is enabled */ in wcd_mbhc_event_notify()
238 /* Disable cs, pullup & enable micbias */ in wcd_mbhc_event_notify()
241 /* Disable micbias, pullup & enable cs */ in wcd_mbhc_event_notify()
246 /* check if micbias is enabled */ in wcd_mbhc_event_notify()
248 /* Disable cs, pullup & enable micbias */ in wcd_mbhc_event_notify()
251 /* Disable micbias, enable pullup & cs */ in wcd_mbhc_event_notify()
256 /* check if micbias is enabled */ in wcd_mbhc_event_notify()
258 /* Disable cs, pullup & enable micbias */ in wcd_mbhc_event_notify()
261 /* Disable micbias, enable pullup & cs */ in wcd_mbhc_event_notify()
531 /* Enable micbias ramp */ in mbhc_plug_detect_fn()
836 int micbias = 0; in wcd_mbhc_get_micbias() local
839 mbhc->mbhc_cb->get_micbias_val(mbhc->component, &micbias); in wcd_mbhc_get_micbias()
842 /* Read MBHC Micbias (Mic Bias2) voltage */ in wcd_mbhc_get_micbias()
844 /* Formula for getting micbias from vout in wcd_mbhc_get_micbias()
845 * micbias = 1.0V + VOUT_CTL * 50mV in wcd_mbhc_get_micbias()
847 micbias = 1000 + (vout_ctl * 50); in wcd_mbhc_get_micbias()
849 return micbias; in wcd_mbhc_get_micbias()
852 static int wcd_get_voltage_from_adc(u8 val, int micbias) in wcd_get_voltage_from_adc() argument
857 return ((val * 125 * micbias)/(WCD_MBHC_ADC_MICBIAS_MV * 10)); in wcd_get_voltage_from_adc()
1141 /* Add 10ms delay for micbias to settle */ in wcd_mbhc_check_for_spl_headset()
1306 * clear the micbias enable flag, set micbias back to 1.8V and in wcd_correct_swch_plug()
1307 * disable micbias. in wcd_correct_swch_plug()