summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic31xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c
index 23419109ecac..a9c4a8baba88 100644
--- a/sound/soc/codecs/tlv320aic31xx.c
+++ b/sound/soc/codecs/tlv320aic31xx.c
@@ -329,6 +329,7 @@ static int aic31xx_wait_bits(struct aic31xx_priv *aic31xx, unsigned int reg,
329 unsigned int bits; 329 unsigned int bits;
330 int counter = count; 330 int counter = count;
331 int ret = regmap_read(aic31xx->regmap, reg, &bits); 331 int ret = regmap_read(aic31xx->regmap, reg, &bits);
332
332 while ((bits & mask) != wbits && counter && !ret) { 333 while ((bits & mask) != wbits && counter && !ret) {
333 usleep_range(sleep, sleep * 2); 334 usleep_range(sleep, sleep * 2);
334 ret = regmap_read(aic31xx->regmap, reg, &bits); 335 ret = regmap_read(aic31xx->regmap, reg, &bits);
@@ -435,6 +436,7 @@ static int mic_bias_event(struct snd_soc_dapm_widget *w,
435{ 436{
436 struct snd_soc_codec *codec = w->codec; 437 struct snd_soc_codec *codec = w->codec;
437 struct aic31xx_priv *aic31xx = snd_soc_codec_get_drvdata(codec); 438 struct aic31xx_priv *aic31xx = snd_soc_codec_get_drvdata(codec);
439
438 switch (event) { 440 switch (event) {
439 case SND_SOC_DAPM_POST_PMU: 441 case SND_SOC_DAPM_POST_PMU:
440 /* change mic bias voltage to user defined */ 442 /* change mic bias voltage to user defined */