asoc: wcd-mbhc: Ignore mech plug irq for AATC HS

WCD USB AATC does not require mech plug irq, UCSI
layer will help to get the events to process insert/remove
of AATC HS.

Change-Id: Ie1b14703605be294471303b6454f94b55e9f932d
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:
Prasad Kumpatla
2022-12-14 16:08:05 +05:30
parent 04f76568d1
commit 2937a09ddc

View File

@@ -1141,6 +1141,17 @@ static irqreturn_t wcd_mbhc_mech_plug_detect_irq(int irq, void *data)
struct wcd_mbhc *mbhc = data;
pr_debug("%s: enter\n", __func__);
/* WCD USB AATC did not required mech plug detection, will receive
* insertion/removal events from UCSI layer
*/
#if IS_ENABLED(CONFIG_QCOM_WCD_USBSS_I2C)
if (mbhc->mbhc_cfg->enable_usbc_analog) {
pr_debug("%s: leave, (irq_none)", __func__);
return IRQ_NONE;
}
#endif
if (mbhc == NULL) {
pr_err("%s: NULL irq data\n", __func__);
return IRQ_NONE;