ASoC: wcd9310: Enable MBHC micbias always when headset is inserted
Add kernel parameter to select whenever micbias always
needs to be enabled. This is required when there is polling
noise due to sharing of cfilt in wrong HW designs.
Change-Id: I5f19de8303c04e5973e130e4a307240b4c74651c
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9310.h b/sound/soc/codecs/wcd9310.h
index 98c1835..5c991e6 100644
--- a/sound/soc/codecs/wcd9310.h
+++ b/sound/soc/codecs/wcd9310.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -44,6 +44,7 @@
TABLA_MICBIAS2,
TABLA_MICBIAS3,
TABLA_MICBIAS4,
+ TABLA_NUM_MICBIAS,
};
enum tabla_pid_current {
@@ -179,6 +180,7 @@
bool detect_extn_cable;
/* swap_gnd_mic returns true if extern GND/MIC swap switch toggled */
bool (*swap_gnd_mic) (struct snd_soc_codec *);
+ bool micbias_always_on;
};
extern int tabla_hs_detect(struct snd_soc_codec *codec,