]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Add Baytrail suspend/resume support
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Thu, 8 May 2014 13:07:26 +0000 (16:07 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 21:02:18 +0000 (22:02 +0100)
commitc8e723a7a3700aaeb03aafdda48bb4f5d25b4728
treed53557da737bb0840b47b685e5b908f9ef774a3f
parent237985034705ff871402fce67683c05231919dd4
ASoC: Intel: Add Baytrail suspend/resume support

Add suspend and resume support to Baytrail SST DSP. This is implemented by
unloading firmware modules and putting DSP into reset prior suspend and
restarting DSP again in normal boot state after resume.

Context restore for running streams is implemented by scheduling a work from
sst_byt_pcm_trigger() that will allocate a stream with existing parameters
and start it from last known buffer position before suspend.

[Jarkko: Squashed together 5 WIP patches from Liam and 1 from me]

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-baytrail-ipc.c
sound/soc/intel/sst-baytrail-ipc.h
sound/soc/intel/sst-baytrail-pcm.c