diff options
author | Daniel Ankers <dan@weirdo.org.uk> | 2007-03-11 17:38:08 +0000 |
---|---|---|
committer | Daniel Ankers <dan@weirdo.org.uk> | 2007-03-11 17:38:08 +0000 |
commit | dfad406aa14a735b2cd071d8d399c79be0f98e43 (patch) | |
tree | 2993687589af53e570e27e6a025fe1c24b8f1a96 /firmware/target/arm/i2s-pp.c | |
parent | e21d21720556bb069f7ceb5669c5b693138838bb (diff) |
Sound for Sansa E200 - based on work by myself, Rene Peinthor, Barry Wardell and Christian Gmeiner from the AS3514 datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12727 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/i2s-pp.c')
-rw-r--r-- | firmware/target/arm/i2s-pp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/i2s-pp.c b/firmware/target/arm/i2s-pp.c index af698fddd6..a2a74bf72b 100644 --- a/firmware/target/arm/i2s-pp.c +++ b/firmware/target/arm/i2s-pp.c @@ -84,6 +84,12 @@ void i2s_reset(void) /* FIFO.FORMAT */ /* If BIT.SIZE < FIFO.FORMAT low bits will be 0 */ IISCONFIG = ((IISCONFIG & ~FIFO_FORMAT_MASK) | FIFO_FORMAT_32LSB); +#ifdef HAVE_AS3514 + /* AS3514 can only operate as I2S Slave */ + IISCONFIG |= I2S_MASTER; + /* Set I2S to 44.1kHz */ + outl((inl(0x70002808) & ~(0x1ff)) | 271, 0x70002808); +#endif /* RX_ATN_LVL=1 == when 12 slots full */ /* TX_ATN_LVL=1 == when 12 slots empty */ |