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-pcm.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-pcm.c')
-rw-r--r-- | sound/soc/intel/skylake/skl-pcm.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c index ff0491716e06..1590beff644d 100644 --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -1197,9 +1197,17 @@ static int skl_pcm_new(struct snd_soc_pcm_runtime *rtd) static int skl_platform_soc_probe(struct snd_soc_platform *platform) { struct hdac_ext_bus *ebus = dev_get_drvdata(platform->dev); + struct skl *skl = ebus_to_skl(ebus); + int ret; - if (ebus->ppcap) - return skl_tplg_init(platform, ebus); + if (ebus->ppcap) { + ret = skl_tplg_init(platform, ebus); + if (ret < 0) { + dev_err(platform->dev, "Failed to init topology!\n"); + return ret; + } + skl->platform = platform; + } return 0; } |