diff options
| -rw-r--r-- | sound/soc/codecs/da732x.c | 12 | ||||
| -rw-r--r-- | sound/soc/codecs/sta32x.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm8958-dsp2.c | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c index f295b6569910..f4d965ebc29e 100644 --- a/sound/soc/codecs/da732x.c +++ b/sound/soc/codecs/da732x.c | |||
| @@ -1268,11 +1268,23 @@ static struct snd_soc_dai_driver da732x_dai[] = { | |||
| 1268 | }, | 1268 | }, |
| 1269 | }; | 1269 | }; |
| 1270 | 1270 | ||
| 1271 | static bool da732x_volatile(struct device *dev, unsigned int reg) | ||
| 1272 | { | ||
| 1273 | switch (reg) { | ||
| 1274 | case DA732X_REG_HPL_DAC_OFF_CNTL: | ||
| 1275 | case DA732X_REG_HPR_DAC_OFF_CNTL: | ||
| 1276 | return true; | ||
| 1277 | default: | ||
| 1278 | return false; | ||
| 1279 | } | ||
| 1280 | } | ||
| 1281 | |||
| 1271 | static const struct regmap_config da732x_regmap = { | 1282 | static const struct regmap_config da732x_regmap = { |
| 1272 | .reg_bits = 8, | 1283 | .reg_bits = 8, |
| 1273 | .val_bits = 8, | 1284 | .val_bits = 8, |
| 1274 | 1285 | ||
| 1275 | .max_register = DA732X_MAX_REG, | 1286 | .max_register = DA732X_MAX_REG, |
| 1287 | .volatile_reg = da732x_volatile, | ||
| 1276 | .reg_defaults = da732x_reg_cache, | 1288 | .reg_defaults = da732x_reg_cache, |
| 1277 | .num_reg_defaults = ARRAY_SIZE(da732x_reg_cache), | 1289 | .num_reg_defaults = ARRAY_SIZE(da732x_reg_cache), |
| 1278 | .cache_type = REGCACHE_RBTREE, | 1290 | .cache_type = REGCACHE_RBTREE, |
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index ea78c172538c..2735361a4c3c 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c | |||
| @@ -434,7 +434,7 @@ SOC_SINGLE_TLV("Treble Tone Control", STA32X_TONE, STA32X_TONE_TTC_SHIFT, 15, 0, | |||
| 434 | SOC_ENUM("Limiter1 Attack Rate (dB/ms)", sta32x_limiter1_attack_rate_enum), | 434 | SOC_ENUM("Limiter1 Attack Rate (dB/ms)", sta32x_limiter1_attack_rate_enum), |
| 435 | SOC_ENUM("Limiter2 Attack Rate (dB/ms)", sta32x_limiter2_attack_rate_enum), | 435 | SOC_ENUM("Limiter2 Attack Rate (dB/ms)", sta32x_limiter2_attack_rate_enum), |
| 436 | SOC_ENUM("Limiter1 Release Rate (dB/ms)", sta32x_limiter1_release_rate_enum), | 436 | SOC_ENUM("Limiter1 Release Rate (dB/ms)", sta32x_limiter1_release_rate_enum), |
| 437 | SOC_ENUM("Limiter2 Release Rate (dB/ms)", sta32x_limiter1_release_rate_enum), | 437 | SOC_ENUM("Limiter2 Release Rate (dB/ms)", sta32x_limiter2_release_rate_enum), |
| 438 | 438 | ||
| 439 | /* depending on mode, the attack/release thresholds have | 439 | /* depending on mode, the attack/release thresholds have |
| 440 | * two different enum definitions; provide both | 440 | * two different enum definitions; provide both |
diff --git a/sound/soc/codecs/wm8958-dsp2.c b/sound/soc/codecs/wm8958-dsp2.c index b7488f190d2b..d4248e00160e 100644 --- a/sound/soc/codecs/wm8958-dsp2.c +++ b/sound/soc/codecs/wm8958-dsp2.c | |||
| @@ -153,7 +153,7 @@ static int wm8958_dsp2_fw(struct snd_soc_codec *codec, const char *name, | |||
| 153 | 153 | ||
| 154 | data32 &= 0xffffff; | 154 | data32 &= 0xffffff; |
| 155 | 155 | ||
| 156 | wm8994_bulk_write(codec->control_data, | 156 | wm8994_bulk_write(wm8994->wm8994, |
| 157 | data32 & 0xffffff, | 157 | data32 & 0xffffff, |
| 158 | block_len / 2, | 158 | block_len / 2, |
| 159 | (void *)(data + 8)); | 159 | (void *)(data + 8)); |
