mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "asoc: codecs: mbhc: Detect cross connection for mono headsets"
This commit is contained in:
commit
becc3cca8d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#include <linux/module.h>
|
||||
#include <linux/init.h>
|
||||
|
|
@ -313,7 +313,7 @@ static int wcd_check_cross_conn(struct wcd_mbhc *mbhc)
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (hphl_adc_res > 100 && hphr_adc_res > 100) {
|
||||
if (hphl_adc_res > 100 || hphr_adc_res > 100) {
|
||||
plug_type = MBHC_PLUG_TYPE_GND_MIC_SWAP;
|
||||
pr_debug("%s: Cross connection identified\n", __func__);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue