ASoC: sgtl5000: Fix up define for SGTL5000_SMALL_POP
authorAxel Lin <[email protected]>
Wed, 22 Jul 2015 03:27:45 +0000 (11:27 +0800)
committerMark Brown <[email protected]>
Wed, 22 Jul 2015 09:49:02 +0000 (10:49 +0100)
Currently, below code actually does not update any bit because
SGTL5000_SMALL_POP is 0.

snd_soc_update_bits(codec, SGTL5000_CHIP_REF_CTRL, SGTL5000_SMALL_POP, 1);

The SGTL5000_SMALL_POP should be BIT(0) rather than 0, fix it.

Signed-off-by: Axel Lin <[email protected]>
Acked-By: Alexander Stein <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/sgtl5000.h

index bd7a344bf8c517edf69af2fda9e06e08488e47e0..1c317de2617623438bd169d9ba7cb89623139794 100644 (file)
 #define SGTL5000_BIAS_CTRL_MASK                        0x000e
 #define SGTL5000_BIAS_CTRL_SHIFT               1
 #define SGTL5000_BIAS_CTRL_WIDTH               3
-#define SGTL5000_SMALL_POP                     0
+#define SGTL5000_SMALL_POP                     1
 
 /*
  * SGTL5000_CHIP_MIC_CTRL