ASoC: cs42l52: Fix mask for REVID
BIT[0:2] of register 01h is REVID, so the mask for REVID should be 0x7. Also updates the code to use CS42L52_CHIP_REV_MASK. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#define CS42L52_CHIP_REV_A0 0x00
|
||||
#define CS42L52_CHIP_REV_A1 0x01
|
||||
#define CS42L52_CHIP_REV_B0 0x02
|
||||
#define CS42L52_CHIP_REV_MASK 0x03
|
||||
#define CS42L52_CHIP_REV_MASK 0x07
|
||||
|
||||
#define CS42L52_PWRCTL1 0x02
|
||||
#define CS42L52_PWRCTL1_PDN_ALL 0x9F
|
||||
|
Reference in New Issue
Block a user