Skip to contentSkip to conversation

ASoC: Swap bias level enumeration

PATCH Applied Jarkko Nikula 3 participants 3 messages Aug 31, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Swap bias level enumeration

Swapping the bias level enumeration is only meant to help debugging. It is easier if number 0 means bias off and bigger number means bigger bias level.

---
 include/sound/soc.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
include/sound/soc.h +3 -3
index d31e8b7..493b3a4 100644
@@ -214,10 +214,10 @@
  * @OFF:     Power Off. No restrictions on transition times.
  */
 enum snd_soc_bias_level {
-	SND_SOC_BIAS_ON,
-	SND_SOC_BIAS_PREPARE,
-	SND_SOC_BIAS_STANDBY,
 	SND_SOC_BIAS_OFF,
+	SND_SOC_BIAS_STANDBY,
+	SND_SOC_BIAS_PREPARE,
+	SND_SOC_BIAS_ON,
 };
 
 struct snd_jack;
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jarkko Nikula

Swapping the bias level enumeration is only meant to help debugging. It is easier if number 0 means bias off and bigger number means bigger bias level.

Good point.

Quoted 1 line
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
Applied
#2 lore raw
Quoted 6 lines · Liam Girdwood
Quoted 2 lines · Jarkko Nikula

Swapping the bias level enumeration is only meant to help debugging. It is easier if number 0 means bias off and bigger number means bigger bias level.

Good point.

Personally I always display as plain text which is even more legible :)

Applied, thanks.