OSDN Git Service

ASoC: Intel: add a status for runtime suspend/resume
authorJie Yang <yang.jie@intel.com>
Thu, 5 Feb 2015 14:56:48 +0000 (22:56 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 5 Feb 2015 18:05:28 +0000 (18:05 +0000)
commitcd311dd123f5ae5c6da71bdfa9a379a694eb9917
treeb0b86dcdd990d64371879399d1f282672454eb28
parentc41cda1dbe50816d839c32271007c7b832d4d14a
ASoC: Intel: add a status for runtime suspend/resume

For runtime suspend/resume, it is some different with suspend/resume,
e.g. codec power supply won't be switch off, codec jack detection
still working(to wake up system from Jack event), won't call call
snd_soc_suspend/resume, etc.

So here, we add a platform PM status, HSW_PM_STATE_RTD3, to make
the status more clear, when in idle, it will enter this status, to
transfer from HSW_PM_STATE_RTD3 to HSW_PM_STATE_D3, we will do those
extra jobs, and vice versa for resuming.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-haswell-pcm.c