diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-29 05:03:39 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-29 13:08:03 (GMT) |
commit | 939dc51bddc245df51c1e8ee44bf136621475149 (patch) | |
tree | d4bea62bc17369b6cf2946142945904febac853e /sound/soc/codecs/wm2000.c | |
parent | 8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff) | |
download | linux-fsl-qoriq-939dc51bddc245df51c1e8ee44bf136621475149.tar.xz |
ASoC: wm2000: Expose some more registers for diagnostics
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm2000.c')
-rw-r--r-- | sound/soc/codecs/wm2000.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index f2ac38b..7fefd76 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c @@ -761,6 +761,8 @@ static bool wm2000_readable_reg(struct device *dev, unsigned int reg) case WM2000_REG_SYS_CTL2: case WM2000_REG_ANC_STAT: case WM2000_REG_IF_CTL: + case WM2000_REG_ANA_MIC_CTL: + case WM2000_REG_SPK_CTL: return true; default: return false; @@ -771,7 +773,7 @@ static const struct regmap_config wm2000_regmap = { .reg_bits = 16, .val_bits = 8, - .max_register = WM2000_REG_IF_CTL, + .max_register = WM2000_REG_SPK_CTL, .readable_reg = wm2000_readable_reg, }; |