summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/pcm-coldfire.c
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-07-02 21:09:28 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-07-02 21:09:28 +0000
commit971a6e9c9480d07b939f5e80a050ef9f49c89f81 (patch)
treee01d1843ceb6e4c3efb5a9de7a2b862eb368a461 /firmware/target/coldfire/pcm-coldfire.c
parent15d0ac01345346ae348bb15c58ddf88ef0ac0020 (diff)
downloadrockbox-971a6e9c9480d07b939f5e80a050ef9f49c89f81.tar.gz
rockbox-971a6e9c9480d07b939f5e80a050ef9f49c89f81.zip
HD200 - Setup codec as I2S master and enable recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27250 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/pcm-coldfire.c')
-rw-r--r--firmware/target/coldfire/pcm-coldfire.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/firmware/target/coldfire/pcm-coldfire.c b/firmware/target/coldfire/pcm-coldfire.c
index 06f17d1170..fa320dff3f 100644
--- a/firmware/target/coldfire/pcm-coldfire.c
+++ b/firmware/target/coldfire/pcm-coldfire.c
@@ -84,13 +84,18 @@ static const unsigned char pcm_freq_parms[HW_NUM_FREQ][2] =
#endif
#if CONFIG_CPU == MCF5249 && defined(HAVE_WM8750)
+/* We run codec in master mode.
+ * Codec can reconstruct all frequencies
+ * from single 11.2896 MHz master clock
+ */
static const unsigned char pcm_freq_parms[HW_NUM_FREQ][2] =
{
- [HW_FREQ_88] = { 0x0c, 0x01 },
- [HW_FREQ_44] = { 0x06, 0x01 },
- [HW_FREQ_22] = { 0x04, 0x01 },
- [HW_FREQ_11] = { 0x02, 0x01 },
+ [HW_FREQ_88] = { 0x00, 0x01 },
+ [HW_FREQ_44] = { 0x00, 0x01 },
+ [HW_FREQ_22] = { 0x00, 0x01 },
+ [HW_FREQ_11] = { 0x00, 0x01 },
};
+
#endif
#if (CONFIG_CPU == MCF5250 || CONFIG_CPU == MCF5249) && defined(HAVE_TLV320)