diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-07 05:01:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-09 23:25:14 -0400 |
commit | b8575a1143f6d57a791c946291ba4363e07e32a3 (patch) | |
tree | bfd75a5fb3b0c1766fcf84b12453795b7ea2d89b /drivers/extcon/extcon-arizona.c | |
parent | 22c5fb6a7dc8674424394122337c84eaf48efbdf (diff) |
extcon: arizona: Use bypass mode for MICVDD
We can perform microphone detection with MICVDD in bypass mode so try to
enable that during startup for minimal power - other users or machine
constraints will prevent bypass mode being activated if it is unsuitable.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/extcon/extcon-arizona.c')
-rw-r--r-- | drivers/extcon/extcon-arizona.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 427a289f32a5..6c19833ed2d0 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c | |||
@@ -434,6 +434,11 @@ static int __devinit arizona_extcon_probe(struct platform_device *pdev) | |||
434 | regmap_update_bits(arizona->regmap, ARIZONA_JACK_DETECT_ANALOGUE, | 434 | regmap_update_bits(arizona->regmap, ARIZONA_JACK_DETECT_ANALOGUE, |
435 | ARIZONA_JD1_ENA, ARIZONA_JD1_ENA); | 435 | ARIZONA_JD1_ENA, ARIZONA_JD1_ENA); |
436 | 436 | ||
437 | ret = regulator_allow_bypass(info->micvdd, true); | ||
438 | if (ret != 0) | ||
439 | dev_warn(arizona->dev, "Failed to set MICVDD to bypass: %d\n", | ||
440 | ret); | ||
441 | |||
437 | pm_runtime_put(&pdev->dev); | 442 | pm_runtime_put(&pdev->dev); |
438 | 443 | ||
439 | return 0; | 444 | return 0; |