Skip to content

Commit

Permalink
ASoC: wm2000: Expose some more registers for diagnostics
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Mar 29, 2013
1 parent 8bb9660 commit 939dc51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/soc/codecs/wm2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
};

Expand Down
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm2000.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#define WM2000_REG_SYS_CTL2 0xf004
#define WM2000_REG_ANC_STAT 0xf005
#define WM2000_REG_IF_CTL 0xf006
#define WM2000_REG_ANA_MIC_CTL 0xf028
#define WM2000_REG_SPK_CTL 0xf034

/* SPEECH_CLARITY */
#define WM2000_SPEECH_CLARITY 0x01
Expand Down

0 comments on commit 939dc51

Please sign in to comment.