ASoC: Intel: Skylake: Fix resource cleanup on teardown
authorVinod Koul <vinod.koul@intel.com>
Thu, 5 Nov 2015 16:04:10 +0000 (21:34 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 10:08:09 +0000 (10:08 +0000)
commit7ae3cb15590ea768323b5e5a6be1769f19e91044
tree9b4782383af963bac227f5aa174ac80de5776b47
parentc7b2a44410a1029f1cee4ad0b86588c9a0f83a6c
ASoC: Intel: Skylake: Fix resource cleanup on teardown

MCPS free was being done from PGA context which will free up MCPS
for only last modules in a pipe and not the rest causing MCPS
leak and eventual audio loss due to no "free" MCPS.

This needs to be freed for every module while cleaning up the
modules, so move the check to
skl_tplg_mixer_dapm_post_pmd_event()

Signed-off-by: Mohan Krishna Velaga <mohan.krishnax.velaga@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c