diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-06-04 06:25:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-06-06 16:45:44 -0400 |
commit | 56fba41f8f6444f9e2db3bfe2c4cc5c5bac43d1d (patch) | |
tree | ac4e74a24720567d7babb1abbe1b92cc201b9f00 /include/sound | |
parent | 6dffdea70029f2e74c029eba3c24d07641fa4a77 (diff) |
ASoC: Specify target bias state directly as a bias state
Rather than a simple flag to say if we want the DAPM context to be at full
power specify the target bias state. This should have no current effect
but is a bit more direct and so makes it easier to change our decisions
about the which bias state to go into in future.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 2 | ||||
-rw-r--r-- | include/sound/soc.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index c46e7d89561d..7415878c8b37 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -510,7 +510,7 @@ struct snd_soc_dapm_context { | |||
510 | struct snd_soc_card *card; /* parent card */ | 510 | struct snd_soc_card *card; /* parent card */ |
511 | 511 | ||
512 | /* used during DAPM updates */ | 512 | /* used during DAPM updates */ |
513 | int dev_power; | 513 | enum snd_soc_bias_level target_bias_level; |
514 | struct list_head list; | 514 | struct list_head list; |
515 | 515 | ||
516 | #ifdef CONFIG_DEBUG_FS | 516 | #ifdef CONFIG_DEBUG_FS |
diff --git a/include/sound/soc.h b/include/sound/soc.h index f1de3e0c75bc..0f297006f5b2 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -214,10 +214,10 @@ | |||
214 | * @OFF: Power Off. No restrictions on transition times. | 214 | * @OFF: Power Off. No restrictions on transition times. |
215 | */ | 215 | */ |
216 | enum snd_soc_bias_level { | 216 | enum snd_soc_bias_level { |
217 | SND_SOC_BIAS_OFF, | 217 | SND_SOC_BIAS_OFF = 0, |
218 | SND_SOC_BIAS_STANDBY, | 218 | SND_SOC_BIAS_STANDBY = 1, |
219 | SND_SOC_BIAS_PREPARE, | 219 | SND_SOC_BIAS_PREPARE = 2, |
220 | SND_SOC_BIAS_ON, | 220 | SND_SOC_BIAS_ON = 3, |
221 | }; | 221 | }; |
222 | 222 | ||
223 | struct snd_jack; | 223 | struct snd_jack; |