ASoC: core: On resume also check the soc device state
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Mon, 22 Feb 2010 11:27:13 +0000 (13:27 +0200)
committer黄涛 <huangtao@rock-chips.com>
Tue, 25 Jan 2011 12:05:54 +0000 (20:05 +0800)
commitecf7611caeb1b68e6ed4575f1abf92c619e75a98
treebeaf23fe60bba27e03b7ac24ed20e0e9a3db3305
parent10b41e10292b412a3e0cc506cd5344d0898cdab9
ASoC: core: On resume also check the soc device state

Check the card->codec on soc_resume to detect if the soc
device is properly initialized.
If the card->codec is NULL, than do not continue the resume
operation, since the device is not initialized properly.

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