ASoC: wcd9310: Fix bug to configure compander sample rate
The bit fields for compander sample rate are bits[2:0] so
the mask bits should be 0x07 instead of 0x03. Update the
driver code to fix the bug.
Change-Id: I5c15eba2539a43fd104ecb81a726239e0c521100
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9310.c b/sound/soc/codecs/wcd9310.c
index eded9da..3b14c44 100644
--- a/sound/soc/codecs/wcd9310.c
+++ b/sound/soc/codecs/wcd9310.c
@@ -972,7 +972,7 @@
/* Set sample rate dependent paramater*/
if (tabla->comp_enabled[w->shift] != 0) {
snd_soc_update_bits(codec, TABLA_A_CDC_COMP1_FS_CFG +
- w->shift * 8, 0x03, rate);
+ w->shift * 8, 0x07, rate);
snd_soc_update_bits(codec, TABLA_A_CDC_COMP1_B2_CTL +
w->shift * 8, 0x0F,
comp_samp_params[rate].peak_det_timeout);