]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: wm2000: Expose some more registers for diagnostics
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Mar 2013 05:03:39 +0000 (13:03 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Mar 2013 13:08:03 +0000 (13:08 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm2000.c
sound/soc/codecs/wm2000.h

index f2ac38b61a1bc15b8b583915069c6a09fe870108..7fefd766b582b7dcc1c3e31b82675c8430b15ead 100644 (file)
@@ -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,
 };
 
index fb812cd9e77dd7ea8e44cd7bc48bfd328fc0eadd..3870c0e1d2469342475766ad070485e1dbd01aae 100644 (file)
@@ -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