aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaster K <officiallazerl0rd@gmail.com>2018-06-26 21:27:03 +0100
committerShubh@m <shubhindia123@gmail.com>2019-02-28 22:27:45 +0530
commitccb0574de6fde8e7bbad5fda74f2618b762b56ec (patch)
tree36134c0ed38adeaac5f00afd1a202c68c1437686
parentcbabd2850108cb40ddc6edce9a237caab2dcca72 (diff)
sound: wcd9330: Disable g_DebugMode
Fixes headphones not being detected. Change-Id: I4d846021dd3504ff438649dc59adeef390250f6c Signed-off-by: Laster K. (lazerl0rd) <officiallazerl0rd@gmail.com>
-rw-r--r--sound/soc/codecs/wcd-mbhc-v2.c6
-rw-r--r--sound/soc/codecs/wcd9330.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wcd-mbhc-v2.c b/sound/soc/codecs/wcd-mbhc-v2.c
index 07c1320fd31..722ceaa52fe 100644
--- a/sound/soc/codecs/wcd-mbhc-v2.c
+++ b/sound/soc/codecs/wcd-mbhc-v2.c
@@ -1057,8 +1057,8 @@ static void wcd_mbhc_swch_irq_handler(struct wcd_mbhc *mbhc)
wcd_cancel_hs_detect_plug(mbhc, &mbhc->correct_plug_swch);
/* ASUS_BSP Paul +++ */
- if (g_DebugMode)
- goto exit;
+ //if (g_DebugMode)
+ // goto exit;
/* ASUS_BSP Paul --- */
if (mbhc->mbhc_cb->micbias_enable_status)
@@ -1147,7 +1147,7 @@ static void wcd_mbhc_swch_irq_handler(struct wcd_mbhc *mbhc)
WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_BTN_ISRC_CTL, 0);
}
-exit: /* ASUS_BSP Paul +++ */
+//exit: /* ASUS_BSP Paul +++ */
mbhc->in_swch_irq_handler = false;
WCD_MBHC_RSC_UNLOCK(mbhc);
pr_debug("%s: leave\n", __func__);
diff --git a/sound/soc/codecs/wcd9330.c b/sound/soc/codecs/wcd9330.c
index e038d226f4e..00ae176a4b4 100644
--- a/sound/soc/codecs/wcd9330.c
+++ b/sound/soc/codecs/wcd9330.c
@@ -86,7 +86,7 @@ enum {
#define SLIM_BW_CLK_GEAR_9 6200000
#define SLIM_BW_UNVOTE 0
-int g_DebugMode = 1;
+int g_DebugMode = 0;
struct switch_dev *g_audiowizard_force_preset_sdev = NULL;
static int cpe_debug_mode;
module_param(cpe_debug_mode, int,