[alsa-devel] [PATCH] 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 jhnikula@gmail.com --- include/sound/soc.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/sound/soc.h b/include/sound/soc.h index d31e8b7..493b3a4 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -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;

On Tue, 2010-08-31 at 14:52 +0300, Jarkko Nikula wrote:
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.
Signed-off-by: Jarkko Nikula jhnikula@gmail.com
Acked-by: Liam Girdwood lrg@slimlogic.co.uk

On Tue, Aug 31, 2010 at 01:03:44PM +0100, Liam Girdwood wrote:
On Tue, 2010-08-31 at 14:52 +0300, Jarkko Nikula wrote:
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.
participants (3)
-
Jarkko Nikula
-
Liam Girdwood
-
Mark Brown