aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2010-10-04 11:28:59 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-05 12:57:10 -0400
commite595b3252f4a53fc52227ca7a8b94199f9f319a9 (patch)
treec596ef3f21f9864416078bf42abdb93020a03178 /sound/soc
parentf479fd93d4028afccf155dec736c6d49cde92571 (diff)
ASoC: WM8804: Retrieve the device revision and print it
Be verbose and print out the device revision. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8804.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c
index 2657f5c7ff08..642b07ceddfa 100644
--- a/sound/soc/codecs/wm8804.c
+++ b/sound/soc/codecs/wm8804.c
@@ -643,6 +643,14 @@ static int wm8804_probe(struct snd_soc_codec *codec)
643 goto err_reg_enable; 643 goto err_reg_enable;
644 } 644 }
645 645
646 ret = snd_soc_read(codec, WM8804_DEVREV);
647 if (ret < 0) {
648 dev_err(codec->dev, "Failed to read device revision: %d\n",
649 ret);
650 goto err_reg_enable;
651 }
652 dev_info(codec->dev, "revision %c\n", ret + 'A');
653
646 ret = wm8804_reset(codec); 654 ret = wm8804_reset(codec);
647 if (ret < 0) { 655 if (ret < 0) {
648 dev_err(codec->dev, "Failed to issue reset: %d\n", ret); 656 dev_err(codec->dev, "Failed to issue reset: %d\n", ret);