ASoC: Handle read failures in codec_reg
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Jul 2010 15:14:33 +0000 (16:14 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Jul 2010 19:13:09 +0000 (20:13 +0100)
commit5164d74d74447895aaa31c094a1b9e666acaa656
treea13079984b1f2601cd940d83d21fcd5e4bc3451d
parent03b0dc02cf54a79d6bc2f49c0005bc07db5120a4
ASoC: Handle read failures in codec_reg

When a device is powered down volatile registers can't be read so
attempts to display codec_reg will show error values, and obviously
it is also possible for there to be hardware errors too. Check for
errors from reads and display them more clearly when formatting
codec_reg.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/soc-core.c