jz47xx: Audio path tweaks:

* Increase audio buffer size to better handle IRQ latency (256->2048)
 * Ensure DMA engine is idle prior to starting transfers
 * Set AIC to repeat last sample in case of underflows

Change-Id: I9c45c20481ee072e5882b7586fb7d50bd8ef2f35
This commit is contained in:
Solomon Peachy 2020-09-04 15:55:11 -04:00
parent 5f5e44f593
commit 90a4f28c27
5 changed files with 10 additions and 0 deletions

View file

@ -137,6 +137,8 @@ void DMA_CALLBACK(DMA_AIC_TX_CHANNEL)(void)
void pcm_play_dma_start(const void *addr, size_t size)
{
pcm_play_dma_stop();
dma_enable();
set_dma(addr, size);