diff options
Diffstat (limited to 'sound/soc/codecs/tlv320aic3x.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index a564759845f9..5a3f544bb3a8 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c | |||
@@ -126,6 +126,16 @@ static const struct reg_default aic3x_reg[] = { | |||
126 | { 108, 0x00 }, { 109, 0x00 }, | 126 | { 108, 0x00 }, { 109, 0x00 }, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static bool aic3x_volatile_reg(struct device *dev, unsigned int reg) | ||
130 | { | ||
131 | switch (reg) { | ||
132 | case AIC3X_RESET: | ||
133 | return true; | ||
134 | default: | ||
135 | return false; | ||
136 | } | ||
137 | } | ||
138 | |||
129 | static const struct regmap_config aic3x_regmap = { | 139 | static const struct regmap_config aic3x_regmap = { |
130 | .reg_bits = 8, | 140 | .reg_bits = 8, |
131 | .val_bits = 8, | 141 | .val_bits = 8, |
@@ -133,6 +143,9 @@ static const struct regmap_config aic3x_regmap = { | |||
133 | .max_register = DAC_ICC_ADJ, | 143 | .max_register = DAC_ICC_ADJ, |
134 | .reg_defaults = aic3x_reg, | 144 | .reg_defaults = aic3x_reg, |
135 | .num_reg_defaults = ARRAY_SIZE(aic3x_reg), | 145 | .num_reg_defaults = ARRAY_SIZE(aic3x_reg), |
146 | |||
147 | .volatile_reg = aic3x_volatile_reg, | ||
148 | |||
136 | .cache_type = REGCACHE_RBTREE, | 149 | .cache_type = REGCACHE_RBTREE, |
137 | }; | 150 | }; |
138 | 151 | ||