]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: es8328: Fix deemphasis values
authorJohn Keeping <john@metanate.com>
Wed, 9 Dec 2015 11:38:13 +0000 (11:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:25:48 +0000 (11:25 -0800)
commit66e7f16cf867a10f4023ddd4cee6ec385b2964ce
tree8fe604e6c9734fb4f5658ab146baa621296b6a8f
parent6afa12c119f1e09639da424a9ccefebd08e47cf6
ASoC: es8328: Fix deemphasis values

commit 84ebac4d04d25ac5c1b1dc3ae621fd465eb38f4e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/es8328.c
sound/soc/codecs/es8328.h