]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Feb 2010 14:39:42 +0000 (14:39 +0000)
commitce51a23c492ce1916c81b5c1151c64e6109d1475
treea605b64474c3e4e6016720b62f479f1e1b6eaca5
parent5c59a70f5abab73c23c97abbed386bc1b8761f10
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