diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-22 09:19:23 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-22 09:19:23 -0500 |
commit | eeb1080b29a0fa00e426ba77eb96f3a157b335ab (patch) | |
tree | 0c1414d160d1f0364dddfea7ef56de7269aa8dcb /sound/soc/codecs/wm8753.c | |
parent | ce3bdaa8710c10eec5a6dae67aaf73088d0ced4f (diff) |
ASoC: Report I/O errors from WM8753 reset
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8753.c')
-rw-r--r-- | sound/soc/codecs/wm8753.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index 31ff337f8225..180ec94ad8ae 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c | |||
@@ -1561,7 +1561,11 @@ static int wm8753_init(struct snd_soc_device *socdev) | |||
1561 | 1561 | ||
1562 | wm8753_set_dai_mode(codec, 0); | 1562 | wm8753_set_dai_mode(codec, 0); |
1563 | 1563 | ||
1564 | wm8753_reset(codec); | 1564 | ret = wm8753_reset(codec); |
1565 | if (ret < 0) { | ||
1566 | printk(KERN_ERR "wm8753: failed to reset device\n"); | ||
1567 | return ret; | ||
1568 | } | ||
1565 | 1569 | ||
1566 | /* register pcms */ | 1570 | /* register pcms */ |
1567 | ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1); | 1571 | ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1); |