ASoC: WCD9310: Update codec register reset values
After tape out of wcd9310 1.0, some of the codec register reset values
are updated by the HW team. These changes are going to be reflected in
wcd9310 1.1 and wcd9310 2.0.
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9310.h b/sound/soc/codecs/wcd9310.h
index 38383e0..681b766 100644
--- a/sound/soc/codecs/wcd9310.h
+++ b/sound/soc/codecs/wcd9310.h
@@ -16,6 +16,8 @@
#define TABLA_MAX_REGISTER (TABLA_NUM_REGISTERS-1)
#define TABLA_CACHE_SIZE TABLA_NUM_REGISTERS
+#define TABLA_REG_VAL(reg, val) {reg, 0, val}
+
extern const u8 tabla_reg_readable[TABLA_CACHE_SIZE];
extern const u8 tabla_reg_defaults[TABLA_CACHE_SIZE];
@@ -44,6 +46,12 @@
int shutdown_plug_removal;
};
+struct tabla_reg_mask_val {
+ u16 reg;
+ u8 mask;
+ u8 val;
+};
+
extern int tabla_hs_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *headset_jack, struct snd_soc_jack *button_jack,
struct tabla_mbhc_calibration *calibration);