OSDN Git Service

ASoC: es8328: Fix ADC format setup
authorJohn Keeping <john@metanate.com>
Mon, 9 May 2016 11:24:30 +0000 (12:24 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 10 May 2016 17:56:01 +0000 (18:56 +0100)
commit57e41f3fb32a359753a3b2679c2502b2750bf6af
tree97a44660539d2f62589856e9cd3232de4cdd0856
parent420c470d6b5c2924a3182edf5b002870ff770331
ASoC: es8328: Fix ADC format setup

The ADCCONTROL4 and DACCONTROL1 registers are similar but not identical,
with the DACCONTROL1 having each field starting one bit higher than
ADCCONTROL4.

Instead of introducing a magic shift, add new constants for the values
in ADCCONTROL4 and use a second variable to setup the ADC.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c
sound/soc/codecs/es8328.h