]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Use DPIB to update position for Playback stream
authorDharageswari R <dharageswari.r@intel.com>
Thu, 6 Oct 2016 03:21:21 +0000 (08:51 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 6 Oct 2016 11:05:11 +0000 (13:05 +0200)
commit49e6d8562f2ce96a056c3d940ed859b5b59b2ede
tree89c0ee6045675c6b6039ef86f2ce57755d1b1ebd
parentd82eecf67b18899b012e20674371f64fd8209526
ASoC: Intel: Skylake: Use DPIB to update position for Playback stream

DPIB is read currently from a buffer position in memory (indicated by
the registers DPIB[U|L]BASE).Driver reads the position buffer on BDL
completion interrupts to report the DMA position. But the BDL completion
interrupt only indicates the last DMA transfer of the buffer is
completed at the Intel HD Audio subsystem boundary. The periodic DMA
Position-in-Buffer writes may be scheduled at the same time or later
than the MSI and does not guarantee to reflect the position of the last
buffer that was transferred.

Whereas DPIB register in HDA space(vendor specific register indicated by
SDxDPIB) reflects the actual data that is transferred. Hence update the
position based on DPIB for playback.

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