summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/system-coldfire.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-05 08:14:27 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-05 08:14:27 +0000
commit8867d001419158b0a4112661583c59f49632be81 (patch)
treeb347e523da3bcb2463bc09b9b9e7076864b0623d /firmware/target/coldfire/system-coldfire.c
parent9701954654cbde32e45b148f033e726c25e7dfbe (diff)
downloadrockbox-8867d001419158b0a4112661583c59f49632be81.tar.gz
rockbox-8867d001419158b0a4112661583c59f49632be81.zip
More catching up on old work. Refine audio interface setup on Coldfire. Stop the funky glitching on the iAudio stuff when starting recording esp. at 88.2kHz. (probably due to the bidi interface). iRivers don't seem to care what you do. TLV320 still seems to have a little trouble selecting it's filters correctly for 88.2kHz or it could be some odd phasing effect. Get rid of the horrible reset parameter in pcm_apply_settings as it can decide for itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12618 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/system-coldfire.c')
-rw-r--r--firmware/target/coldfire/system-coldfire.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c
index bc769877ba..251c97fb73 100644
--- a/firmware/target/coldfire/system-coldfire.c
+++ b/firmware/target/coldfire/system-coldfire.c
@@ -321,3 +321,8 @@ void coldfire_set_pllcr_audio_bits(long bits)
PLLCR = (PLLCR & ~0x70400000) | (bits & 0x70400000);
}
+/* Set DATAINCONTROL without disturbing FIFO reset state */
+void coldfire_set_dataincontrol(unsigned long value)
+{
+ DATAINCONTROL = (DATAINCONTROL & (1 << 9)) | value;
+}