diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-07-02 21:09:28 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-07-02 21:09:28 +0000 |
commit | 971a6e9c9480d07b939f5e80a050ef9f49c89f81 (patch) | |
tree | e01d1843ceb6e4c3efb5a9de7a2b862eb368a461 /firmware/export/wm8751.h | |
parent | 15d0ac01345346ae348bb15c58ddf88ef0ac0020 (diff) | |
download | rockbox-971a6e9c9480d07b939f5e80a050ef9f49c89f81.tar.gz rockbox-971a6e9c9480d07b939f5e80a050ef9f49c89f81.zip |
HD200 - Setup codec as I2S master and enable recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27250 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/wm8751.h')
-rw-r--r-- | firmware/export/wm8751.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/export/wm8751.h b/firmware/export/wm8751.h index 8992c88076..7a3a3075af 100644 --- a/firmware/export/wm8751.h +++ b/firmware/export/wm8751.h | |||
@@ -25,13 +25,19 @@ | |||
25 | #define VOLUME_MIN -730 | 25 | #define VOLUME_MIN -730 |
26 | #define VOLUME_MAX 60 | 26 | #define VOLUME_MAX 60 |
27 | 27 | ||
28 | /* turn off 3D Enchance feature of WM8750 for now | ||
29 | #if defined(HAVE_WM8750) | ||
30 | #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP | DEPTH_3D_CAP) | ||
31 | #else | ||
32 | */ | ||
28 | #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP) | 33 | #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP) |
34 | /* #endif */ | ||
29 | 35 | ||
30 | extern int tenthdb2master(int db); | 36 | extern int tenthdb2master(int db); |
31 | 37 | ||
32 | extern void audiohw_set_master_vol(int vol_l, int vol_r); | 38 | extern void audiohw_set_master_vol(int vol_l, int vol_r); |
33 | extern void audiohw_set_lineout_vol(int vol_l, int vol_r); | 39 | extern void audiohw_set_lineout_vol(int vol_l, int vol_r); |
34 | #if defined(HAVE_WM8750) | 40 | #if defined(HAVE_WM8750) && defined(HAVE_RECORDING) |
35 | void audiohw_set_recsrc(int source, bool recording); | 41 | void audiohw_set_recsrc(int source, bool recording); |
36 | #endif | 42 | #endif |
37 | 43 | ||
@@ -222,7 +228,7 @@ void audiohw_set_recsrc(int source, bool recording); | |||
222 | #define ADCL_LMICBOOST_13DB (1 << 4) | 228 | #define ADCL_LMICBOOST_13DB (1 << 4) |
223 | #define ADCL_LMICBOOST_20DB (2 << 4) | 229 | #define ADCL_LMICBOOST_20DB (2 << 4) |
224 | #define ADCL_LMICBOOST_29DB (3 << 4) | 230 | #define ADCL_LMICBOOST_29DB (3 << 4) |
225 | #define ADCL_LMICBOOST(x) ((x) & (0x3 << 7)) | 231 | #define ADCL_LMICBOOST(x) (((x) & 0x3) << 4)) |
226 | #define ADCL_LINSEL_LINPUT1 (0 << 6) | 232 | #define ADCL_LINSEL_LINPUT1 (0 << 6) |
227 | #define ADCL_LINSEL_LINPUT2 (1 << 6) | 233 | #define ADCL_LINSEL_LINPUT2 (1 << 6) |
228 | #define ADCL_LINSEL_LINPUT3 (2 << 6) | 234 | #define ADCL_LINSEL_LINPUT3 (2 << 6) |