diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-07 00:57:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-26 07:29:59 -0400 |
commit | c05b84d14b230a96e3f782c9d87ab18d82df8bd2 (patch) | |
tree | 8eeac5a8e43a35f399402b9ee84b7e39a31f6d60 /include/sound | |
parent | 8f6862d4bd6a7f936273d94ba58a25946365eac9 (diff) |
ASoC: dapm: Allow regulators to bypass as well as disable when idle
Allow regulators managed via DAPM to make use of the bypass support that
has recently been added to the regulator API by setting a flag
SND_SOC_DAPM_REGULATOR_BYPASS. When this flag is set the regulator will
be put into bypass mode before being disabled, allowing the regulator to
fall into bypass mode if it can't be disabled due to other users.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index c96bf5ae80a6..e1ef63d4a5c4 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -320,6 +320,9 @@ struct device; | |||
320 | #define SND_SOC_DAPM_EVENT_OFF(e) \ | 320 | #define SND_SOC_DAPM_EVENT_OFF(e) \ |
321 | (e & (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)) | 321 | (e & (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)) |
322 | 322 | ||
323 | /* regulator widget flags */ | ||
324 | #define SND_SOC_DAPM_REGULATOR_BYPASS 0x1 /* bypass when disabled */ | ||
325 | |||
323 | struct snd_soc_dapm_widget; | 326 | struct snd_soc_dapm_widget; |
324 | enum snd_soc_dapm_type; | 327 | enum snd_soc_dapm_type; |
325 | struct snd_soc_dapm_path; | 328 | struct snd_soc_dapm_path; |