ASoC: es7134: Add VDD and AVDD power supplies
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 29 Jun 2018 15:09:23 +0000 (17:09 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Jul 2018 10:07:30 +0000 (11:07 +0100)
Add the VDD and AVDD power supplies to the DAPM graph as some board may
need to enable a regulator to turn them on.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es7134.c

index 698289dc3e227b95c87d3dc829b3f62201dadc95..5ad59c38fed1c8dfc03cf279b4593d521ca876e6 100644 (file)
@@ -167,11 +167,15 @@ static const struct snd_soc_dapm_widget es7134_dapm_widgets[] = {
        SND_SOC_DAPM_OUTPUT("AOUTL"),
        SND_SOC_DAPM_OUTPUT("AOUTR"),
        SND_SOC_DAPM_DAC("DAC", "Playback", SND_SOC_NOPM, 0, 0),
+       SND_SOC_DAPM_REGULATOR_SUPPLY("VDD", 0, 0),
+       SND_SOC_DAPM_REGULATOR_SUPPLY("AVDD", 0, 0),
 };
 
 static const struct snd_soc_dapm_route es7134_dapm_routes[] = {
        { "AOUTL", NULL, "DAC" },
        { "AOUTR", NULL, "DAC" },
+       { "Playback", NULL, "VDD" },
+       { "DAC", NULL, "AVDD" },
 };
 
 static const struct snd_soc_component_driver es7134_component_driver = {