asoc: mbhc: disable pa while measuring the adc values
While measuring the adc, if PA is on we will get incorrect values of adc due to which the detection type is missmatched. So disable the PA While measuring the adc values and restore back PA once measuring adc done. Change-Id: I5833452e23a71637353449bb48b937ee44be24ae Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#ifndef __WCD_MBHC_V2_H__
|
||||
#define __WCD_MBHC_V2_H__
|
||||
@@ -528,6 +529,8 @@ struct wcd_mbhc_cb {
|
||||
bool (*mbhc_get_moisture_status)(struct wcd_mbhc *mbhc);
|
||||
void (*mbhc_moisture_polling_ctrl)(struct wcd_mbhc *mbhc, bool enable);
|
||||
void (*mbhc_moisture_detect_en)(struct wcd_mbhc *mbhc, bool enable);
|
||||
void (*hph_pa_enable)(struct snd_soc_component *component, bool enable);
|
||||
|
||||
};
|
||||
|
||||
struct wcd_mbhc_fn {
|
||||
|
Reference in New Issue
Block a user