ASoC: Intel: fix broadwell module removing failed issue
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Thu, 28 May 2015 06:14:18 +0000 (14:14 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 28 May 2015 19:27:00 +0000 (20:27 +0100)
commit01f202c7b4b40025f3ea4721c52e7f78545e3b07
tree8732a6c7b99718003a482a69dbbd452c4fdfe785
parent506c148ee5e1bfb836116353305927ca4c21a23e
ASoC: Intel: fix broadwell module removing failed issue

In haswell-pcm module unloading, we can't free runtime modules
directly, for they may be already freed in runtime suspend.

Here add executing suspend call to unload runtime modules, only
for status not equal to RPM_SUSPEND, to fix broadwell module
removing failed issue.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/haswell/sst-haswell-pcm.c