diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-04-05 18:04:35 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-07 11:48:50 +0200 |
commit | a14bf88749c5b54bb9c636bcd47c26ea79560ce5 (patch) | |
tree | 9f846449d271ea75515ad68caa0023ceb4a0128b /sound/soc/codecs/cs42l52.h | |
parent | Merge remote-tracking branches 'asoc/topic/tdm' and 'asoc/topic/tegra' into a... (diff) | |
download | linux-a14bf88749c5b54bb9c636bcd47c26ea79560ce5.tar.xz linux-a14bf88749c5b54bb9c636bcd47c26ea79560ce5.zip |
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>
Diffstat (limited to 'sound/soc/codecs/cs42l52.h')
-rw-r--r-- | sound/soc/codecs/cs42l52.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs42l52.h b/sound/soc/codecs/cs42l52.h index 6fb8f00f4191..ac445993e6bf 100644 --- a/sound/soc/codecs/cs42l52.h +++ b/sound/soc/codecs/cs42l52.h @@ -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 |