ASoC: Swap bias level enumeration
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.
Signed-off-by Jarkko Nikula <[email protected]>
--- include/sound/soc.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
include/sound/soc.h +3 -3
@@ -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
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
Signed-off-by Jarkko Nikula <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 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.