The sta32x defines a read-only status register at address 0x2d.
Signed-off-by: Thomas Niederprüm niederp@physik.uni-kl.de --- sound/soc/codecs/sta32x.c | 5 +++-- sound/soc/codecs/sta32x.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index d2f6bed..77be160 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c @@ -101,6 +101,7 @@ static const struct reg_default sta32x_regs[] = { { 0x28, 0xc0 }, { 0x2b, 0x00 }, { 0x2c, 0x0c }, + { 0x2d, 0x0f }, };
static const struct regmap_range sta32x_write_regs_range[] = { @@ -110,7 +111,7 @@ static const struct regmap_range sta32x_write_regs_range[] = {
static const struct regmap_range sta32x_read_regs_range[] = { regmap_reg_range(STA32X_CONFA, STA32X_AUTO2), - regmap_reg_range(STA32X_C1CFG, STA32X_FDRC2), + regmap_reg_range(STA32X_C1CFG, STA32X_STATUS), };
static const struct regmap_range sta32x_volatile_regs_range[] = { @@ -1011,7 +1012,7 @@ static const struct snd_soc_codec_driver sta32x_codec = { static const struct regmap_config sta32x_regmap = { .reg_bits = 8, .val_bits = 8, - .max_register = STA32X_FDRC2, + .max_register = STA32X_STATUS, .reg_defaults = sta32x_regs, .num_reg_defaults = ARRAY_SIZE(sta32x_regs), .cache_type = REGCACHE_RBTREE, diff --git a/sound/soc/codecs/sta32x.h b/sound/soc/codecs/sta32x.h index d8e32a6..4ccc722 100644 --- a/sound/soc/codecs/sta32x.h +++ b/sound/soc/codecs/sta32x.h @@ -67,7 +67,7 @@ #define STA32X_Reserved 0x2a #define STA32X_FDRC1 0x2b #define STA32X_FDRC2 0x2c -/* Reserved 0x2d */ +#define STA32X_STATUS 0x2d
/* STA326 register field definitions */