asoc: mbhc: change special HS pr_debug

change the debug print from wcd_mbhc_adc_check_for_spl_headset
func to caller wcd_correct_swch_plug function.

Change-Id: Iabca7351a1abb1ad7b3de15812b4a6014a0463ad
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:
Prasad Kumpatla
2023-04-14 16:04:26 +05:30
committad av Gerrit - the friendly Code Review server
förälder db55976826
incheckning 312d94f693

Visa fil

@@ -469,9 +469,6 @@ static bool wcd_mbhc_adc_check_for_spl_headset(struct wcd_mbhc *mbhc,
usleep_range(10000, 10100);
}
if (spl_hs)
pr_debug("%s: Detected special HS (%d)\n", __func__, spl_hs);
exit:
pr_debug("%s: leave\n", __func__);
return spl_hs;
@@ -762,6 +759,9 @@ correct_plug_type:
(spl_hs_count < WCD_MBHC_SPL_HS_CNT)) {
spl_hs = wcd_mbhc_adc_check_for_spl_headset(mbhc,
&spl_hs_count);
if (spl_hs)
pr_debug("%s: Detected special HS (%d)\n",
__func__, spl_hs);
output_mv = wcd_measure_adc_once(mbhc, MUX_CTL_IN2P);
if (spl_hs_count == WCD_MBHC_SPL_HS_CNT) {