]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab95770377436bb3f8c54c66ebe91220a75133ab
treef84082b44e17ebd2a4275a7190e01fe4a5aab0fd
parent7f52f150039cf61ee34a558ded185d4cf0f11e33
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