diff options
author | John Keeping <john@metanate.com> | 2015-12-09 14:38:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-09 23:42:19 +0300 |
commit | 84ebac4d04d25ac5c1b1dc3ae621fd465eb38f4e (patch) | |
tree | 5489558502359655b4c702be167a49610d1936fa /sound/soc/codecs/es8328.h | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | linux-84ebac4d04d25ac5c1b1dc3ae621fd465eb38f4e.tar.xz |
ASoC: es8328: Fix deemphasis values
This is using completely the wrong mask and value when updating the
register. Since the correct values are already defined in the header,
switch to using a table with explicit constants rather than shifting the
array index.
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/es8328.h')
-rw-r--r-- | sound/soc/codecs/es8328.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/es8328.h b/sound/soc/codecs/es8328.h index cb36afe10c0e..156c748c89c7 100644 --- a/sound/soc/codecs/es8328.h +++ b/sound/soc/codecs/es8328.h @@ -153,6 +153,7 @@ int es8328_probe(struct device *dev, struct regmap *regmap); #define ES8328_DACCONTROL6_CLICKFREE (1 << 3) #define ES8328_DACCONTROL6_DAC_INVR (1 << 4) #define ES8328_DACCONTROL6_DAC_INVL (1 << 5) +#define ES8328_DACCONTROL6_DEEMPH_MASK (3 << 6) #define ES8328_DACCONTROL6_DEEMPH_OFF (0 << 6) #define ES8328_DACCONTROL6_DEEMPH_32k (1 << 6) #define ES8328_DACCONTROL6_DEEMPH_44_1k (2 << 6) |