summaryrefslogtreecommitdiff
path: root/asoc
diff options
context:
space:
mode:
authorLaxminath Kasam <lkasam@codeaurora.org>2020-04-28 23:32:45 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-07-27 01:13:46 -0700
commit51af4b3c2a755f45d5409e43157d498edb05a9a1 (patch)
tree09d925385733437fda6b0c2657044bd0f0bde5b2 /asoc
parentead188cb70dac01923cda368996955fa7a17038d (diff)
downloadmsm-extra-51af4b3c2a755f45d5409e43157d498edb05a9a1.tar.gz
soc: wsa883x: Update changes for wsa8830
Update DRE_CTL offset to 3 for wsa8830 variant. Change-Id: I9acab01b0099093b8e427d52e48ba9744c6f5aac Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Diffstat (limited to 'asoc')
-rw-r--r--asoc/codecs/wsa883x/wsa883x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/asoc/codecs/wsa883x/wsa883x.c b/asoc/codecs/wsa883x/wsa883x.c
index c14114f9..734b2410 100644
--- a/asoc/codecs/wsa883x/wsa883x.c
+++ b/asoc/codecs/wsa883x/wsa883x.c
@@ -1056,6 +1056,10 @@ static void wsa883x_codec_init(struct snd_soc_component *component)
for (i = 0; i < ARRAY_SIZE(reg_init); i++)
snd_soc_component_update_bits(component, reg_init[i].reg,
reg_init[i].mask, reg_init[i].val);
+
+ if (wsa883x->variant == WSA8830)
+ snd_soc_component_update_bits(component, WSA883X_DRE_CTL_0,
+ 0x07, 0x03);
}
static int32_t wsa883x_temp_reg_read(struct snd_soc_component *component,