diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-01-27 00:38:58 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-01-27 00:38:58 +0000 |
commit | a4e7bc383ed296b532a648a02db62a06c99c9ad8 (patch) | |
tree | 97ab9a2d4441aebeae7a76ef1c448f10883daadf /firmware/target/mips/ingenic_jz47xx/codec-jz4740.c | |
parent | 95577c7996e7a79a71a12e27433cbd5126c0ccd8 (diff) | |
download | rockbox-a4e7bc383ed296b532a648a02db62a06c99c9ad8.tar.gz rockbox-a4e7bc383ed296b532a648a02db62a06c99c9ad8.zip |
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
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19863 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/codec-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/codec-jz4740.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; | |||
28 | static unsigned short codec_mic_gain; | 28 | static unsigned short codec_mic_gain; |
29 | static bool HP_on_off_flag; | 29 | static bool HP_on_off_flag; |
30 | static int HP_register_value; | 30 | static int HP_register_value; |
31 | static int IS_WRITE_PCM; | ||
32 | 31 | ||
33 | static void i2s_codec_set_samplerate(unsigned short rate); | 32 | static void i2s_codec_set_samplerate(unsigned short rate); |
34 | 33 | ||
@@ -44,6 +43,9 @@ static void i2s_codec_reset(void) | |||
44 | 43 | ||
45 | static void i2s_codec_init(void) | 44 | static void i2s_codec_init(void) |
46 | { | 45 | { |
46 | __cpm_start_aic1(); | ||
47 | __cpm_start_aic2(); | ||
48 | |||
47 | __aic_enable(); | 49 | __aic_enable(); |
48 | 50 | ||
49 | __i2s_internal_codec(); | 51 | __i2s_internal_codec(); |
@@ -185,7 +187,6 @@ static unsigned short i2s_codec_get_volume(void) | |||
185 | static void i2s_codec_set_samplerate(unsigned short rate) | 187 | static void i2s_codec_set_samplerate(unsigned short rate) |
186 | { | 188 | { |
187 | unsigned short speed = 0; | 189 | unsigned short speed = 0; |
188 | unsigned short val = 0; | ||
189 | 190 | ||
190 | switch (rate) | 191 | switch (rate) |
191 | { | 192 | { |