diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2019-07-19 06:05:33 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-22 08:26:25 -0400 |
commit | cadee10c983145c16d6c75af88f6a943b22ebeb2 (patch) | |
tree | a81f08257398a354944727cfa76310c7ad206b0a | |
parent | b1f373a11d25fc9a5f7679c9b85799fe09b0dc4a (diff) |
ASoC: sgtl5000: Fix definition of VAG Ramp Control
SGTL5000_SMALL_POP is a bit mask, not a value. Usage of
correct definition makes device probing code more clear.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20190719100524.23300-4-oleksandr.suvorov@toradex.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/sgtl5000.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 34cc85e49003..3f28e7862b5b 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c | |||
@@ -1460,7 +1460,7 @@ static int sgtl5000_probe(struct snd_soc_component *component) | |||
1460 | 1460 | ||
1461 | /* enable small pop, introduce 400ms delay in turning off */ | 1461 | /* enable small pop, introduce 400ms delay in turning off */ |
1462 | snd_soc_component_update_bits(component, SGTL5000_CHIP_REF_CTRL, | 1462 | snd_soc_component_update_bits(component, SGTL5000_CHIP_REF_CTRL, |
1463 | SGTL5000_SMALL_POP, 1); | 1463 | SGTL5000_SMALL_POP, SGTL5000_SMALL_POP); |
1464 | 1464 | ||
1465 | /* disable short cut detector */ | 1465 | /* disable short cut detector */ |
1466 | snd_soc_component_write(component, SGTL5000_CHIP_SHORT_CTRL, 0); | 1466 | snd_soc_component_write(component, SGTL5000_CHIP_SHORT_CTRL, 0); |
diff --git a/sound/soc/codecs/sgtl5000.h b/sound/soc/codecs/sgtl5000.h index 18cae08bbd3a..a4bf4bca95bf 100644 --- a/sound/soc/codecs/sgtl5000.h +++ b/sound/soc/codecs/sgtl5000.h | |||
@@ -273,7 +273,7 @@ | |||
273 | #define SGTL5000_BIAS_CTRL_MASK 0x000e | 273 | #define SGTL5000_BIAS_CTRL_MASK 0x000e |
274 | #define SGTL5000_BIAS_CTRL_SHIFT 1 | 274 | #define SGTL5000_BIAS_CTRL_SHIFT 1 |
275 | #define SGTL5000_BIAS_CTRL_WIDTH 3 | 275 | #define SGTL5000_BIAS_CTRL_WIDTH 3 |
276 | #define SGTL5000_SMALL_POP 1 | 276 | #define SGTL5000_SMALL_POP 0x0001 |
277 | 277 | ||
278 | /* | 278 | /* |
279 | * SGTL5000_CHIP_MIC_CTRL | 279 | * SGTL5000_CHIP_MIC_CTRL |