From f2042983f08cd49404be0b6916fc73d778fe8dba Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 2 May 2008 19:12:09 +0000 Subject: Add the Sansa M200 (v1) as a target - it's extremely similar to the Logik DAX (the LCD driver worked unchanged). Plus various tcc77x work, including a working tick interrupt (enabled in the bootloader). Rockbox itself builds for the M200 (there are no keymaps yet for the DAX), but doesn't progress very far due to the lack of an ATA (NAND flash) driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17306 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/tlv320.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/drivers/audio/tlv320.c') diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c index c0f37302fc..6a22ab1c74 100644 --- a/firmware/drivers/audio/tlv320.c +++ b/firmware/drivers/audio/tlv320.c @@ -21,7 +21,9 @@ #include "string.h" #include "audio.h" +#ifdef CPU_COLDFIRE #include "i2c-coldfire.h" +#endif #include "audiohw.h" const struct sound_settings_info audiohw_settings[] = { @@ -73,7 +75,11 @@ static void tlv320_write_reg(unsigned reg, unsigned value) data[0] = (reg << 1) | ((value >> 8) & 1); data[1] = value; +#ifdef CPU_COLDFIRE if (i2c_write(I2C_IFACE_0, TLV320_ADDR, data, 2) != 2) +#else + #warning Implement tlv320_write_reg() +#endif { logf("tlv320 error reg=0x%x", reg); return; -- cgit v1.2.3