diff options
author | Dharageswari R <dharageswari.r@intel.com> | 2016-06-03 15:59:39 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-07 16:19:11 +0300 |
commit | fe3f4442e2166453f68f0995fd4a95e98c0cd1c9 (patch) | |
tree | ec0fdcb932947f07500034c063121f9c9e264317 /sound/soc/intel/skylake/skl-sst.c | |
parent | 260eb73aa252d0cbdfe11523d5def9d6d00625d4 (diff) | |
download | linux-fe3f4442e2166453f68f0995fd4a95e98c0cd1c9.tar.xz |
ASoC: Intel: Skylake: Clean up of driver resources in suspend
On suspend firmware is re-initialized so resources are reset inside
firmware. Driver should also clear the firmware counters at this time.
Signed-off-by: Dharageswari R <dharageswari.r@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>
Diffstat (limited to 'sound/soc/intel/skylake/skl-sst.c')
-rw-r--r-- | sound/soc/intel/skylake/skl-sst.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c index 6021fa6ed80d..4cabae54a71e 100644 --- a/sound/soc/intel/skylake/skl-sst.c +++ b/sound/soc/intel/skylake/skl-sst.c @@ -379,6 +379,16 @@ static int skl_unload_module(struct sst_dsp *ctx, u16 mod_id) return ret; } +void skl_clear_module_cnt(struct sst_dsp *ctx) +{ + struct skl_module_table *module; + + list_for_each_entry(module, &ctx->module_list, list) { + module->usage_cnt = 0; + } +} +EXPORT_SYMBOL_GPL(skl_clear_module_cnt); + static void skl_clear_module_table(struct sst_dsp *ctx) { struct skl_module_table *module, *tmp; |