From 8250aa6bfe1961dc7dcbeab74d3208a8daba4ee5 Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Tue, 28 Apr 2020 23:32:45 +0530 Subject: [PATCH] soc: wsa883x: Update changes for wsa8830 Update DRE_CTL offset to 3 for wsa8830 variant. Change-Id: I9acab01b0099093b8e427d52e48ba9744c6f5aac Signed-off-by: Laxminath Kasam --- asoc/codecs/wsa883x/wsa883x.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asoc/codecs/wsa883x/wsa883x.c b/asoc/codecs/wsa883x/wsa883x.c index 6617ce126d42..aa15b096dac5 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,