diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-27 12:46:25 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-27 12:46:25 +0100 |
commit | 997e7547ab53c84044964fc332c4e1ebc8b96470 (patch) | |
tree | 0db6846ca39f36c14924cc4a32b01c4da7910f9e /sound/soc/codecs/da732x.c | |
parent | e2755cf9a4b9403373f5d50292e4ac410ab9ce0e (diff) | |
parent | 23308e88201c2c0036da23450f7fed6fd64ae1ef (diff) |
Merge tag 'asoc-v3.14-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Updates for v3.14
A few more driver specific bug fixes, all driver specific things that
only affect users of those devices.
Diffstat (limited to 'sound/soc/codecs/da732x.c')
-rw-r--r-- | sound/soc/codecs/da732x.c | 12 |
1 files changed, 12 insertions, 0 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[] = { }, }; +static bool da732x_volatile(struct device *dev, unsigned int reg) +{ + switch (reg) { + case DA732X_REG_HPL_DAC_OFF_CNTL: + case DA732X_REG_HPR_DAC_OFF_CNTL: + return true; + default: + return false; + } +} + static const struct regmap_config da732x_regmap = { .reg_bits = 8, .val_bits = 8, .max_register = DA732X_MAX_REG, + .volatile_reg = da732x_volatile, .reg_defaults = da732x_reg_cache, .num_reg_defaults = ARRAY_SIZE(da732x_reg_cache), .cache_type = REGCACHE_RBTREE, |