diff options
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) |