summaryrefslogtreecommitdiffstats
path: root/firmware/pcm_mixer.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-03-09 21:00:49 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-03-12 00:16:12 +0100
commit64bb720edf8a738685c9f0a18957a1b15e984cf6 (patch)
tree039401182143da0652c15e86d94cc29cb6d39b3c /firmware/pcm_mixer.c
parentd2aafd19e4fbe0ef8ec053e59085bcac85e64491 (diff)
downloadrockbox-64bb720edf8a738685c9f0a18957a1b15e984cf6.tar.gz
rockbox-64bb720edf8a738685c9f0a18957a1b15e984cf6.tar.bz2
rockbox-64bb720edf8a738685c9f0a18957a1b15e984cf6.zip
Coldfire: Optimize emac context save/restore in mixer ISR.
Save only once if emac is used in ISR and restore only once per ISR call if already saved. Change-Id: I0e40db5d4aab2a8552480f76873f59ff6ccd9977 Reviewed-on: http://gerrit.rockbox.org/176 Tested-by: Michael Sevakis <jethead71@rockbox.org> Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Diffstat (limited to 'firmware/pcm_mixer.c')
-rw-r--r--firmware/pcm_mixer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/pcm_mixer.c b/firmware/pcm_mixer.c
index 9077c6f271..00891f367d 100644
--- a/firmware/pcm_mixer.c
+++ b/firmware/pcm_mixer.c
@@ -232,6 +232,9 @@ fill_frame:
*downmix_buf[downmix_index] = downmix_index ? 0x7fff7fff : 0x80008000;
#endif
+ /* Certain SoC's have to do cleanup */
+ mixer_buffer_callback_exit();
+
return PCM_DMAST_OK;
}