diff options
author | John Keeping <john@metanate.com> | 2015-12-09 12:38:13 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-09 21:42:19 +0100 |
commit | 84ebac4d04d25ac5c1b1dc3ae621fd465eb38f4e (patch) | |
tree | 5489558502359655b4c702be167a49610d1936fa /sound/soc/codecs/es8328.h | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-84ebac4d04d25ac5c1b1dc3ae621fd465eb38f4e.tar.xz linux-84ebac4d04d25ac5c1b1dc3ae621fd465eb38f4e.zip |
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) |