aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tpa6130a2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r--sound/soc/codecs/tpa6130a2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index 199edf07f47e..42887ae1568b 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -151,11 +151,6 @@ static int tpa6130a2_power(u8 power)
151 data->power_state = 0; 151 data->power_state = 0;
152 goto exit; 152 goto exit;
153 } 153 }
154
155 /* Clear SWS */
156 val = tpa6130a2_read(TPA6130A2_REG_CONTROL);
157 val &= ~TPA6130A2_SWS;
158 tpa6130a2_i2c_write(TPA6130A2_REG_CONTROL, val);
159 } else { 154 } else {
160 /* set SWS */ 155 /* set SWS */
161 val = tpa6130a2_read(TPA6130A2_REG_CONTROL); 156 val = tpa6130a2_read(TPA6130A2_REG_CONTROL);
@@ -301,6 +296,7 @@ static void tpa6130a2_channel_enable(u8 channel, int enable)
301 /* Enable amplifier */ 296 /* Enable amplifier */
302 val = tpa6130a2_read(TPA6130A2_REG_CONTROL); 297 val = tpa6130a2_read(TPA6130A2_REG_CONTROL);
303 val |= channel; 298 val |= channel;
299 val &= ~TPA6130A2_SWS;
304 tpa6130a2_i2c_write(TPA6130A2_REG_CONTROL, val); 300 tpa6130a2_i2c_write(TPA6130A2_REG_CONTROL, val);
305 301
306 /* Unmute channel */ 302 /* Unmute channel */