summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-04-09 22:20:04 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-04-09 22:20:04 +0000
commit159f8ee41aa0d8c6434867775547d9e030a963d7 (patch)
treef2da1e5a46530487fb8ce93c7ff332fd506a4363 /firmware/export
parent791e0928c5f9d5287a6077a95a385bc6bd90ac1d (diff)
downloadrockbox-159f8ee41aa0d8c6434867775547d9e030a963d7.tar.gz
rockbox-159f8ee41aa0d8c6434867775547d9e030a963d7.zip
D2: Beginnings of a WM8985 driver (based on WM8758, using EQ1 and EQ5 as HW treble/bass). Untested, but harmless.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17057 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/audiohw.h2
-rw-r--r--firmware/export/config-cowond2.h4
-rw-r--r--firmware/export/wm8985.h12
3 files changed, 8 insertions, 10 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h
index ca706811a0..a4ff75c22c 100644
--- a/firmware/export/audiohw.h
+++ b/firmware/export/audiohw.h
@@ -69,7 +69,7 @@ enum {
69 SOUND_RIGHT_GAIN, 69 SOUND_RIGHT_GAIN,
70 SOUND_MIC_GAIN, 70 SOUND_MIC_GAIN,
71#endif 71#endif
72#ifdef HAVE_WM8758 72#if defined(HAVE_WM8758) || defined(HAVE_WM8985)
73 SOUND_BASS_CUTOFF, 73 SOUND_BASS_CUTOFF,
74 SOUND_TREBLE_CUTOFF, 74 SOUND_TREBLE_CUTOFF,
75#endif 75#endif
diff --git a/firmware/export/config-cowond2.h b/firmware/export/config-cowond2.h
index 78becb3161..74cf90eac4 100644
--- a/firmware/export/config-cowond2.h
+++ b/firmware/export/config-cowond2.h
@@ -83,8 +83,8 @@
83/* The D2 uses a WM8985 codec */ 83/* The D2 uses a WM8985 codec */
84#define HAVE_WM8985 84#define HAVE_WM8985
85 85
86/* There is no hardware tone control */ 86/* Use WM8985 EQ1 & EQ5 as hardware tone controls */
87#define HAVE_SW_TONE_CONTROLS 87/* #define HAVE_SW_TONE_CONTROLS */
88 88
89/* Define this for LCD backlight available */ 89/* Define this for LCD backlight available */
90#define HAVE_BACKLIGHT 90#define HAVE_BACKLIGHT
diff --git a/firmware/export/wm8985.h b/firmware/export/wm8985.h
index a12d7cda57..8fa58425bf 100644
--- a/firmware/export/wm8985.h
+++ b/firmware/export/wm8985.h
@@ -21,22 +21,20 @@
21#define _WM8985_H 21#define _WM8985_H
22 22
23/* volume/balance/treble/bass interdependency */ 23/* volume/balance/treble/bass interdependency */
24#define VOLUME_MIN -730 24#define VOLUME_MIN -570
25#define VOLUME_MAX 60 25#define VOLUME_MAX 60
26 26
27extern int tenthdb2master(int db); 27extern int tenthdb2master(int db);
28extern int tenthdb2mixer(int db);
28 29
29extern void audiohw_set_master_vol(int vol_l, int vol_r); 30extern void audiohw_set_master_vol(int vol_l, int vol_r);
30extern void audiohw_set_lineout_vol(int vol_l, int vol_r); 31extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
32extern void audiohw_set_mixer_vol(int channel1, int channel2);
31extern void audiohw_set_bass(int value); 33extern void audiohw_set_bass(int value);
34extern void audiohw_set_bass_cutoff(int value);
32extern void audiohw_set_treble(int value); 35extern void audiohw_set_treble(int value);
36extern void audiohw_set_treble_cutoff(int value);
33extern void audiohw_set_nsorder(int order); 37extern void audiohw_set_nsorder(int order);
34extern void audiohw_set_sample_rate(int sampling_control); 38extern void audiohw_set_sample_rate(int sampling_control);
35 39
36/* Register addresses */
37// .. tbc
38
39/* Register settings for the supported samplerates: */
40// .. tbc
41
42#endif /* _WM8985_H */ 40#endif /* _WM8985_H */