summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-26 22:57:49 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-26 22:57:49 +0000
commita0458dac2b14d4ec50dc2d65d26005a58b6a5581 (patch)
treec4dde20b8140e5c49e31af75b0d8226de2520aa3 /firmware/export
parent83eb479732879e9852064644942ca36a7fd986a9 (diff)
downloadrockbox-a0458dac2b14d4ec50dc2d65d26005a58b6a5581.tar.gz
rockbox-a0458dac2b14d4ec50dc2d65d26005a58b6a5581.zip
Fix audio on Onda VX747
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21097 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ondavx747.h6
-rw-r--r--firmware/export/jz4740-codec.h4
-rw-r--r--firmware/export/jz4740.h2
3 files changed, 3 insertions, 9 deletions
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h
index 176a35f4e9..b603e02c2b 100644
--- a/firmware/export/config-ondavx747.h
+++ b/firmware/export/config-ondavx747.h
@@ -122,6 +122,9 @@
122/* Define this if you have the Jz4740 internal codec */ 122/* Define this if you have the Jz4740 internal codec */
123#define HAVE_JZ4740_CODEC 123#define HAVE_JZ4740_CODEC
124 124
125/* has no tone controls, so we use the software ones */
126#define HAVE_SW_TONE_CONTROLS
127
125/* define the bitmask of hardware sample rates */ 128/* define the bitmask of hardware sample rates */
126#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \ 129#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
127 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \ 130 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
@@ -131,9 +134,6 @@
131 134
132#define NEED_ADC_CLOSE 1 135#define NEED_ADC_CLOSE 1
133 136
134/* has no tone controls, so we use the software ones */
135//#define HAVE_SW_TONE_CONTROLS
136
137#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */ 137#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
138#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ 138#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
139#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ 139#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
diff --git a/firmware/export/jz4740-codec.h b/firmware/export/jz4740-codec.h
index e8751b5141..c98bfba602 100644
--- a/firmware/export/jz4740-codec.h
+++ b/firmware/export/jz4740-codec.h
@@ -21,11 +21,7 @@
21#ifndef __JZ4740_CODEC_H_ 21#ifndef __JZ4740_CODEC_H_
22#define __JZ4740_CODEC_H_ 22#define __JZ4740_CODEC_H_
23 23
24/* TODO */
25#define VOLUME_MIN -730 24#define VOLUME_MIN -730
26#define VOLUME_MAX 60 25#define VOLUME_MAX 60
27 26
28int tenthdb2master(int db);
29void audiohw_set_headphone_vol(int vol_l, int vol_r);
30
31#endif /* __JZ4740_CODEC_H_ */ 27#endif /* __JZ4740_CODEC_H_ */
diff --git a/firmware/export/jz4740.h b/firmware/export/jz4740.h
index 7ddec364a6..3bf34bd342 100644
--- a/firmware/export/jz4740.h
+++ b/firmware/export/jz4740.h
@@ -1310,8 +1310,6 @@
1310#define ICDC_CDCCR2_MICBG(n) ((n & 0x3) << 4) 1310#define ICDC_CDCCR2_MICBG(n) ((n & 0x3) << 4)
1311#define ICDC_CDCCR2_HPVOL(n) ((n & 0x3) << 0) 1311#define ICDC_CDCCR2_HPVOL(n) ((n & 0x3) << 0)
1312 1312
1313#define ICDC_CDCCR2_AINVOL_DB(n) ((n+34.5)/1.5)
1314
1315#define ICDC_CDCCR2_SMPR_8 (0) 1313#define ICDC_CDCCR2_SMPR_8 (0)
1316#define ICDC_CDCCR2_SMPR_11 (1) 1314#define ICDC_CDCCR2_SMPR_11 (1)
1317#define ICDC_CDCCR2_SMPR_12 (2) 1315#define ICDC_CDCCR2_SMPR_12 (2)