asoc: wsa881x-analog: Update boost preset based on 8810/15

Update boost level setting of value 5.5v and 6v
for 8815 and 8810 variants.

Change-Id: I6e71c58bddb4958f1eda4ab4d4630bcb6073dcdb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam authored and Gerrit - the friendly Code Review server committed 2020-03-01 21:07:39 -08:00
1 parent dbd78e4a61
commit cb923683a8
1 file changed
+8 -3
+8 -3
View File
@@ -398,9 +398,14 @@ static int wsa881x_boost_ctrl(struct snd_soc_component *component, bool enable)
snd_soc_component_update_bits(component,
WSA881X_BOOST_SLOPE_COMP_ISENSE_FB,
0x03, 0x00);
snd_soc_component_update_bits(component,
WSA881X_BOOST_PRESET_OUT1,
0xF0, 0x70);
if (snd_soc_component_read32(component, WSA881X_OTP_REG_0))
snd_soc_component_update_bits(component,
WSA881X_BOOST_PRESET_OUT1,
0xF0, 0x70);
else
snd_soc_component_update_bits(component,
WSA881X_BOOST_PRESET_OUT1,
0xF0, 0xB0);
snd_soc_component_update_bits(component,
WSA881X_ANA_CTL, 0x03, 0x01);
snd_soc_component_update_bits(component,