summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-03-09 23:32:37 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-03-09 23:32:37 +0000
commit935780e4260755b252cbd7d212aa3e9c0cde7db2 (patch)
tree4d5b0d40fc6619beadc42d426b5deaa6d89233f4 /firmware/export
parentd33bff2b47bd30fe67a6ed963177f51ce156d5b7 (diff)
downloadrockbox-935780e4260755b252cbd7d212aa3e9c0cde7db2.tar.gz
rockbox-935780e4260755b252cbd7d212aa3e9c0cde7db2.tar.bz2
rockbox-935780e4260755b252cbd7d212aa3e9c0cde7db2.zip
Add support for Onda VX747 simulator (and yes, it needs a better picture)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20273 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ondavx747.h9
-rw-r--r--firmware/export/jz4740-codec.h4
2 files changed, 7 insertions, 6 deletions
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h
index ecc7994e11..f3bef714bd 100644
--- a/firmware/export/config-ondavx747.h
+++ b/firmware/export/config-ondavx747.h
@@ -113,9 +113,6 @@
/* Define this if you have the Jz4740 internal codec */
#define HAVE_JZ4740_CODEC
-/* Define this if you have a speaker */
-#define HAVE_SPEAKER
-
/* define the bitmask of hardware sample rates */
#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
@@ -138,6 +135,8 @@
/* Hardware controlled charging with monitoring */
#define CONFIG_CHARGING CHARGING_MONITOR
+#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
+
#ifndef SIMULATOR
/* Define this if you have a Ingenic JZ4732 */
@@ -146,9 +145,11 @@
/* define this if the hardware can be powered off while charging */
#define HAVE_POWEROFF_WHILE_CHARGING
+/* Define this if you have a speaker */
+#define HAVE_SPEAKER
+
/* Define this to the CPU frequency */
#define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
-#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
diff --git a/firmware/export/jz4740-codec.h b/firmware/export/jz4740-codec.h
index 5aab348635..e8751b5141 100644
--- a/firmware/export/jz4740-codec.h
+++ b/firmware/export/jz4740-codec.h
@@ -22,8 +22,8 @@
#define __JZ4740_CODEC_H_
/* TODO */
-#define VOLUME_MIN -1
-#define VOLUME_MAX 1
+#define VOLUME_MIN -730
+#define VOLUME_MAX 60
int tenthdb2master(int db);
void audiohw_set_headphone_vol(int vol_l, int vol_r);