diff options
author | Tzung-Bi Shih <tzungbi@google.com> | 2020-06-25 17:35:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-06-25 20:21:00 +0200 |
commit | 10e834099d38dd2c02bf2bd5feaa3997cfcf139f (patch) | |
tree | e5f0a99fdf0e87d7f7ddbc0423fd47976c295162 /include/sound/soc-dapm.h | |
parent | ASoC: tas2562: Fix shut-down gpio property (diff) | |
download | linux-10e834099d38dd2c02bf2bd5feaa3997cfcf139f.tar.xz linux-10e834099d38dd2c02bf2bd5feaa3997cfcf139f.zip |
ASoC: core: move definition of enum snd_soc_bias_level
To fix compilation error:
- error: field 'XXX' has incomplete type
Moves definition of enum snd_soc_bias_level from soc.h to soc-dapm.h.
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20200625153543.85039-2-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index cc3dcb815282..75467f2ed405 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -376,6 +376,24 @@ struct snd_soc_dapm_widget_list; struct snd_soc_dapm_update; enum snd_soc_dapm_direction; +/* + * Bias levels + * + * @ON: Bias is fully on for audio playback and capture operations. + * @PREPARE: Prepare for audio operations. Called before DAPM switching for + * stream start and stop operations. + * @STANDBY: Low power standby state when no playback/capture operations are + * in progress. NOTE: The transition time between STANDBY and ON + * should be as fast as possible and no longer than 10ms. + * @OFF: Power Off. No restrictions on transition times. + */ +enum snd_soc_bias_level { + SND_SOC_BIAS_OFF = 0, + SND_SOC_BIAS_STANDBY = 1, + SND_SOC_BIAS_PREPARE = 2, + SND_SOC_BIAS_ON = 3, +}; + int dapm_regulator_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event); int dapm_clock_event(struct snd_soc_dapm_widget *w, |