[PATCH] ASoC: sgtl5000: fix powerup/down of micbias-voltage
From: fischerc
Date: Thu Jan 11 2018 - 04:00:35 EST
From: Christian Fischer <fischerc@xxxxxxxxxxxxx>
The mic-bias-voltage should get powered up/down automatically.
Added missing DAPM_PRE and DAPM_POST widgets to fire up the mic_bias_event function.
Signed-off-by: Christian Fischer <fischerc@xxxxxxxxxxxxx>
---
sound/soc/codecs/sgtl5000.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index f2bb4fe..4973365 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -260,6 +260,9 @@ static const struct snd_soc_dapm_widget sgtl5000_dapm_widgets[] = {
SND_SOC_DAPM_PRE("VAG_POWER_PRE", power_vag_event),
SND_SOC_DAPM_POST("VAG_POWER_POST", power_vag_event),
+
+ SND_SOC_DAPM_PRE("MIC_BIAS_PRE", mic_bias_event),
+ SND_SOC_DAPM_POST("MIC_BIAS_POST", mic_bias_event),
};
/* routes for sgtl5000 */
--
2.7.4