summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iaudio/m5
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/iaudio/m5
parent9701954654cbde32e45b148f033e726c25e7dfbe (diff)
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/iaudio/m5')
-rw-r--r--firmware/target/coldfire/iaudio/m5/audio-m5.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/target/coldfire/iaudio/m5/audio-m5.c b/firmware/target/coldfire/iaudio/m5/audio-m5.c
index fcedbcad78..9531f932ad 100644
--- a/firmware/target/coldfire/iaudio/m5/audio-m5.c
+++ b/firmware/target/coldfire/iaudio/m5/audio-m5.c
@@ -49,8 +49,7 @@ void audio_set_source(int source, unsigned flags)
{
audiohw_disable_recording();
audiohw_set_monitor(false);
- /* Reset PDIR2 data flow */
- DATAINCONTROL = (1 << 9);
+ coldfire_set_dataincontrol(0);
}
break;
@@ -59,7 +58,7 @@ void audio_set_source(int source, unsigned flags)
{
audiohw_enable_recording(true); /* source mic */
/* Int. when 6 samples in FIFO, PDIR2 src = iis1RcvData */
- DATAINCONTROL = (3 << 14) | (4 << 3);
+ coldfire_set_dataincontrol((3 << 14) | (4 << 3));
}
break;
@@ -68,7 +67,7 @@ void audio_set_source(int source, unsigned flags)
{
audiohw_enable_recording(false); /* source line */
/* Int. when 6 samples in FIFO, PDIR2 src = iis1RcvData */
- DATAINCONTROL = (3 << 14) | (4 << 3);
+ coldfire_set_dataincontrol((3 << 14) | (4 << 3));
}
break;
} /* end switch */