]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc791db098442445c241addb9fa4897e843d39294
treeb0b86dcdd990d64371879399d1f282672454eb28
parent5c3688dfaff792f633e26187a2741be87e3a19a3
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