]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: cs42xx8: Mark chip ID as volatile and remove cache bypass
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 25 Oct 2016 15:42:29 +0000 (16:42 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 25 Oct 2016 19:13:36 +0000 (20:13 +0100)
commit03d2ec460f126d8f4409d137b5865bc4eca253c0
tree15585ba57e0d629aead4fdba74fc81c7ef98d668
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: cs42xx8: Mark chip ID as volatile and remove cache bypass

Rather than manually enabling cache bypass when reading the ID registers
simply remove the default which will cause the first read to go to the
hardware. The old code worked this is simply the more standard way to
implement this. There is a comment included in the code that claims the
chip ID register also contains the right input volume, however this is
clearly not the case from the rest of the driver. Further investigation
reveals exactly the same comment in the wm8962 driver, where this is the
case, so this is almost certainly a copy and paste error from when the
driver was created.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42xx8.c