ASoC: adau1701: fix adau1701_reg_read()
authorDaniel Mack <zonque@gmail.com>
Thu, 3 Jul 2014 14:51:36 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:17 +0000 (09:19 -0700)
commit9e26a8159b3da6fc21e43c811ba147bce94814e7
tree4a95e6ca5bb3d263f0ec3063fdf7379cca9ddbc7
parent7e2dc8d3b72a4a5f79d1d33b102dcdd69b09b426
ASoC: adau1701: fix adau1701_reg_read()

commit 3ad80b828b2533f37c221e2df155774efd6ed814 upstream.

Fix a long standing bug in the read register routing of adau1701.
The bytes arrive in the buffer in big-endian, so the result has to be
shifted before and-ing the bytes in the loop.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/adau1701.c