diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-09-04 15:55:11 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-09-04 15:57:00 -0400 |
commit | 90a4f28c2799e3ae5e873f1f34b1e4adb59f77cb (patch) | |
tree | 119dc1bffbfb56aa3d0d4af8a2adba74db7951d3 /firmware/target/mips/ingenic_jz47xx/codec-jz4760.c | |
parent | 5f5e44f593f3c33beb813e8ae2948bc96d49681d (diff) | |
download | rockbox-90a4f28c2799e3ae5e873f1f34b1e4adb59f77cb.tar.gz rockbox-90a4f28c2799e3ae5e873f1f34b1e4adb59f77cb.zip |
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
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/codec-jz4760.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/codec-jz4760.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/codec-jz4760.c b/firmware/target/mips/ingenic_jz47xx/codec-jz4760.c index bc4286fd6a..60bfecb08c 100644 --- a/firmware/target/mips/ingenic_jz47xx/codec-jz4760.c +++ b/firmware/target/mips/ingenic_jz47xx/codec-jz4760.c | |||
@@ -115,6 +115,7 @@ void audiohw_init(void) | |||
115 | __cpm_start_aic(); | 115 | __cpm_start_aic(); |
116 | 116 | ||
117 | /* Init AIC */ | 117 | /* Init AIC */ |
118 | __aic_play_lastsample(); /* on FIFO underflow. Versus 0.. */ | ||
118 | __i2s_enable_sclk(); | 119 | __i2s_enable_sclk(); |
119 | __i2s_external_codec(); | 120 | __i2s_external_codec(); |
120 | __i2s_select_msbjustified(); | 121 | __i2s_select_msbjustified(); |