ASoC: Intel: Skylake: Fix DMA position reporting for capture stream
authorHardik T Shah <hardik.t.shah@intel.com>
Fri, 24 Mar 2017 17:40:32 +0000 (23:10 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 29 Mar 2017 11:53:39 +0000 (12:53 +0100)
commitfdd85a054b850db43c6abe39c1da28b581be5e93
tree32c288f9d0d1c97831b2c1c3a8e2fe30148343b1
parentb26199eae86f7a1c2363d049249c3be33694f93b
ASoC: Intel: Skylake: Fix DMA position reporting for capture stream

As per hardware recommendation, for every capture stream completion
following operations need to be done in order to reflect the actual
data that is received in position buffer.

1. Wait for 20us before reading the DMA position in buffer once the
interrupt is generated for stream completion.
2. Read any of the register to flush the DMA position value. This is
dummy read operation.

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Hardik T Shah <hardik.t.shah@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c