summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/pcm_playback.c6
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/i2c-meg-fx.h22
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/wmcodec-meg-fx.c1
3 files changed, 29 insertions, 0 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index 7382661f48..cd14f123d1 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -68,6 +68,12 @@ void pcm_init(void)
}
+static void dma_start(const void *addr, size_t size)
+{
+ (void)addr;
+ (void)size;
+}
+
void pcm_set_frequency(unsigned int frequency)
{
(void)frequency;
diff --git a/firmware/target/arm/gigabeat/meg-fx/i2c-meg-fx.h b/firmware/target/arm/gigabeat/meg-fx/i2c-meg-fx.h
new file mode 100644
index 0000000000..cf69230487
--- /dev/null
+++ b/firmware/target/arm/gigabeat/meg-fx/i2c-meg-fx.h
@@ -0,0 +1,22 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2006 by Linus Nielsen Feltzing
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+/* chip-specific i2c functions */
+
+void i2c_send(int bus_address, int reg_address, const unsigned char buf);
diff --git a/firmware/target/arm/gigabeat/meg-fx/wmcodec-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/wmcodec-meg-fx.c
index a793f5a1f4..20c8e9a8e7 100644
--- a/firmware/target/arm/gigabeat/meg-fx/wmcodec-meg-fx.c
+++ b/firmware/target/arm/gigabeat/meg-fx/wmcodec-meg-fx.c
@@ -37,6 +37,7 @@
#include "buffer.h"
#include "audio.h"
#include "i2c.h"
+#include "i2c-meg-fx.h"
/*
* Reset the I2S BIT.FORMAT I2S, 16bit, FIFO.FORMAT 32bit
*/