ASoC: Intel: handle haswell pcm suspend including runtime modules freeing
authorJie Yang <yang.jie@intel.com>
Sat, 30 May 2015 14:33:59 +0000 (22:33 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jun 2015 14:34:12 +0000 (15:34 +0100)
commitedd8ed496b98f1b9d9fda5170a90fe41e7f86e6e
tree80bfb402305a250d163f6ff56842261a2f14252d
parent2dbc80caf7e93c3d49787cf939fc416873125c1b
ASoC: Intel: handle haswell pcm suspend including runtime modules freeing

It needs free pcm runtime modules before unloading firmware, here
add hsw_pcm_suspend() to handle this procedure:
suspends firmware ==> frees runtime modules ==> unloads firmware.

This fixes the broadwell module unload failed issue.

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