]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ASoC: Intel: Skylake: set the resume point to LPIB
authorJeeja KP <jeeja.kp@intel.com>
Tue, 10 Jan 2017 12:27:47 +0000 (17:57 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jan 2017 15:43:04 +0000 (15:43 +0000)
commita700a1e65aa3ee76d2e8c58150ee7b7272d93608
treecc939e915f09d89f8d141fa4c0d44597e8f690f0
parent7cbfdf87f422211b9a1f2845acb2e39597b3ef7e
ASoC: Intel: Skylake: set the resume point to LPIB

In system suspend, the firmware pipelines will be deleted and there
is no need to save the pipeline context. Driver will save the DPIB and
LPIB pointers in suspend.

In system resume, the firmware pipelines will be created again and the
RD/RW pointers in the Firmware buffer points to the base address. So
need to fetch the non-played data again to firmware buffer. LPIB
indicates the HW rendered position.

Instead of setting DPIB as resume point, set it to LPIB to restore from
the HW render position so that DMA would fetch the non-played data one
more time.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c