ASoC: amd: Report accurate hw_ptr during dma
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Fri, 3 Nov 2017 20:35:43 +0000 (16:35 -0400)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 16:06:49 +0000 (16:06 +0000)
commit61add8147942d23519b91f0edc30980d7c14482c
tree77c93abd49b19d59a010a98064d71b07a961b14a
parent566a1847fb37f1b12d997f85623cbf8658c87394
ASoC: amd: Report accurate hw_ptr during dma

Using hw register to read transmitted byte count and report
accordingly the hw pointer.

TEST=
modprobe snd-soc-acp-pcm.ko
modprobe snd-soc-acp-rt5645.ko
aplay <file>

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Signed-off-by: Akshu Agrawal <Akshu.Agrawal@amd.com>
Tested-by: Akshu Agrawal <akshu.agrawal@amd.com>
Reviewed-by: Jason Clinton <jclinton@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c
sound/soc/amd/acp.h