diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-20 14:00:50 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-22 07:37:27 -0400 |
commit | 889c85c550ebdf8af69f5c08387fde3f6f48d10f (patch) | |
tree | 5a2c434c268e62184b87347b2e1a6a674485e434 /sound/soc/codecs/wm8996.c | |
parent | e3d73c1bbf08b9abd3f56293796ba7b5c15008f5 (diff) |
ASoC: Automatically manage WM8996 MICBIAS regulating mode
For non-audio uses like accessory detection we can use a lower quality,
unregulated microphone bias, saving a little power. As the hardware can
manually enable and disable the biases we can select regulating mode
automatically with supply widgets connected to the biases.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/codecs/wm8996.c')
-rw-r--r-- | sound/soc/codecs/wm8996.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index ab8e9d1aaff0..2a0a612a4edb 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c | |||
@@ -982,6 +982,8 @@ SND_SOC_DAPM_SUPPLY_S("Charge Pump", 2, WM8996_CHARGE_PUMP_1, 15, 0, cp_event, | |||
982 | SND_SOC_DAPM_POST_PMU), | 982 | SND_SOC_DAPM_POST_PMU), |
983 | 983 | ||
984 | SND_SOC_DAPM_SUPPLY("LDO2", WM8996_POWER_MANAGEMENT_2, 1, 0, NULL, 0), | 984 | SND_SOC_DAPM_SUPPLY("LDO2", WM8996_POWER_MANAGEMENT_2, 1, 0, NULL, 0), |
985 | SND_SOC_DAPM_SUPPLY("MICB1 Audio", WM8996_MICBIAS_1, 4, 1, NULL, 0), | ||
986 | SND_SOC_DAPM_SUPPLY("MICB2 Audio", WM8996_MICBIAS_2, 4, 1, NULL, 0), | ||
985 | SND_SOC_DAPM_MICBIAS("MICB2", WM8996_POWER_MANAGEMENT_1, 9, 0), | 987 | SND_SOC_DAPM_MICBIAS("MICB2", WM8996_POWER_MANAGEMENT_1, 9, 0), |
986 | SND_SOC_DAPM_MICBIAS("MICB1", WM8996_POWER_MANAGEMENT_1, 8, 0), | 988 | SND_SOC_DAPM_MICBIAS("MICB1", WM8996_POWER_MANAGEMENT_1, 8, 0), |
987 | 989 | ||
@@ -1142,7 +1144,9 @@ static const struct snd_soc_dapm_route wm8996_dapm_routes[] = { | |||
1142 | { "Charge Pump", NULL, "SYSCLK" }, | 1144 | { "Charge Pump", NULL, "SYSCLK" }, |
1143 | 1145 | ||
1144 | { "MICB1", NULL, "LDO2" }, | 1146 | { "MICB1", NULL, "LDO2" }, |
1147 | { "MICB1", NULL, "MICB1 Audio" }, | ||
1145 | { "MICB2", NULL, "LDO2" }, | 1148 | { "MICB2", NULL, "LDO2" }, |
1149 | { "MICB2", NULL, "MICB2 Audio" }, | ||
1146 | 1150 | ||
1147 | { "IN1L PGA", NULL, "IN2LN" }, | 1151 | { "IN1L PGA", NULL, "IN2LN" }, |
1148 | { "IN1L PGA", NULL, "IN2LP" }, | 1152 | { "IN1L PGA", NULL, "IN2LP" }, |