From a4e7bc383ed296b532a648a02db62a06c99c9ad8 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Tue, 27 Jan 2009 00:38:58 +0000 Subject: Onda VX747: * Implement lcd_flip() * Add support for multiple banks in NAND driver * Add basic I²C driver (untested) * Get audio back working * Add power driver * Other minor fixes and cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19863 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/mips/ingenic_jz47xx/codec-jz4740.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/target/mips/ingenic_jz47xx/codec-jz4740.c') diff --git a/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c b/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c index d144a03553..ef8c343035 100644 --- a/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c @@ -28,7 +28,6 @@ static unsigned short codec_base_gain; static unsigned short codec_mic_gain; static bool HP_on_off_flag; static int HP_register_value; -static int IS_WRITE_PCM; static void i2s_codec_set_samplerate(unsigned short rate); @@ -44,6 +43,9 @@ static void i2s_codec_reset(void) static void i2s_codec_init(void) { + __cpm_start_aic1(); + __cpm_start_aic2(); + __aic_enable(); __i2s_internal_codec(); @@ -185,7 +187,6 @@ static unsigned short i2s_codec_get_volume(void) static void i2s_codec_set_samplerate(unsigned short rate) { unsigned short speed = 0; - unsigned short val = 0; switch (rate) { -- cgit v1.2.3