Lines Matching refs:hs_threshold

949 	int hs_threshold, micbias_mv;  in wcd_mbhc_adc_get_hs_thres()  local
954 hs_threshold = mbhc->cfg->hs_thr; in wcd_mbhc_adc_get_hs_thres()
956 hs_threshold = (mbhc->cfg->hs_thr * in wcd_mbhc_adc_get_hs_thres()
959 hs_threshold = ((WCD_MBHC_ADC_HS_THRESHOLD_MV * in wcd_mbhc_adc_get_hs_thres()
962 return hs_threshold; in wcd_mbhc_adc_get_hs_thres()
1041 int hs_threshold, micbias_mv; in wcd_mbhc_get_spl_hs_thres() local
1046 hs_threshold = mbhc->cfg->hs_thr; in wcd_mbhc_get_spl_hs_thres()
1048 hs_threshold = (mbhc->cfg->hs_thr * micbias_mv) / mbhc->cfg->micb_mv; in wcd_mbhc_get_spl_hs_thres()
1050 hs_threshold = ((WCD_MBHC_ADC_HS_THRESHOLD_MV * micbias_mv) / in wcd_mbhc_get_spl_hs_thres()
1053 return hs_threshold; in wcd_mbhc_get_spl_hs_thres()
1059 int output_mv, hs_threshold, hph_threshold; in wcd_mbhc_check_for_spl_headset() local
1069 hs_threshold = wcd_mbhc_get_spl_hs_thres(mbhc); in wcd_mbhc_check_for_spl_headset()
1072 if (!(output_mv > hs_threshold || output_mv < hph_threshold)) in wcd_mbhc_check_for_spl_headset()
1092 int output_mv, cross_conn, hs_threshold, try = 0, micbias_mv; in wcd_correct_swch_plug() local
1109 hs_threshold = wcd_mbhc_adc_get_hs_thres(mbhc); in wcd_correct_swch_plug()
1171 if (output_mv > hs_threshold && !is_spl_hs) { in wcd_correct_swch_plug()
1176 hs_threshold *= wcd_mbhc_get_micbias(mbhc); in wcd_correct_swch_plug()
1177 hs_threshold /= micbias_mv; in wcd_correct_swch_plug()
1181 if ((output_mv <= hs_threshold) && !is_pa_on) { in wcd_correct_swch_plug()
1207 if (output_mv > hs_threshold || mbhc->force_linein) in wcd_correct_swch_plug()