ASoC: amd: Modified DMA transfer Mechanism for Playback
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Thu, 9 Nov 2017 17:35:52 +0000 (12:35 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 9 Nov 2017 17:41:33 +0000 (17:41 +0000)
commit31c45b3e8d0ecc3a5cbfbf3dfe18adeab2f17a48
treef84082b44e17ebd2a4275a7190e01fe4a5aab0fd
parent7db08b2cb36cbfbcb06c44dc8e48ccb6a119466f
ASoC: amd: Modified DMA transfer Mechanism for Playback

Before rendering starts, DMA driver copies full buffer valid data
to ACP SRAM for the first time, after that ACP SRAM to I2S
FIFO DMA will be initiated. After rendering first half of ACP SRAM,
IOC will be raised then Audio data will be copied from first half of
System Memory to first half of ACP SRAM. Similarly after rendering
second half of ACP SRAM, IOC will be raised then Audio Data will be
copied from second half of the System Memory to second half of the
ACP SRAM in ping-pong way till rendering stops.

Old design introducing latency issues resulting stutter sound observed
during playback.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Signed-off-by: Akshu Agrawal <Akshu.Agrawal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c