diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-07-27 20:57:33 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-07-27 20:57:33 +0000 |
commit | 451138ba74a5914a714214bc09307ea571c56510 (patch) | |
tree | c6028ecc2ea82a745c77e3b82d77db9b2ab0e527 /firmware/export/wm8751.h | |
parent | 24bde73d1ed1c4a07d0071e7fdf7fd316e719f09 (diff) | |
download | rockbox-451138ba74a5914a714214bc09307ea571c56510.tar.gz rockbox-451138ba74a5914a714214bc09307ea571c56510.zip |
WM8750 - add ALC and NGAT related low level functions (disabled now by default)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27587 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/wm8751.h')
-rw-r--r-- | firmware/export/wm8751.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/export/wm8751.h b/firmware/export/wm8751.h index 7a3a3075af..a7c28a9855 100644 --- a/firmware/export/wm8751.h +++ b/firmware/export/wm8751.h | |||
@@ -131,8 +131,8 @@ void audiohw_set_recsrc(int source, bool recording); | |||
131 | #define ENHANCE_3D_MODE3D_RECORD (0 << 7) | 131 | #define ENHANCE_3D_MODE3D_RECORD (0 << 7) |
132 | 132 | ||
133 | #define ALC1 0x11 | 133 | #define ALC1 0x11 |
134 | #define ALC1_ALCL(x) ((x) & (0x0f)) | 134 | #define ALC1_ALCL(x) ((x) & 0x0f) |
135 | #define ALC1_MAXGAIN(x) ((x) & (0x07 << 4)) | 135 | #define ALC1_MAXGAIN(x) (((x) & 0x07) << 4) |
136 | #define ALC1_ALCSEL_DISABLED (0 << 7) | 136 | #define ALC1_ALCSEL_DISABLED (0 << 7) |
137 | #define ALC1_ALCSEL_RIGHT (1 << 7) | 137 | #define ALC1_ALCSEL_RIGHT (1 << 7) |
138 | #define ALC1_ALCSEL_LEFT (2 << 7) | 138 | #define ALC1_ALCSEL_LEFT (2 << 7) |
@@ -144,14 +144,14 @@ void audiohw_set_recsrc(int source, bool recording); | |||
144 | 144 | ||
145 | #define ALC3 0x13 | 145 | #define ALC3 0x13 |
146 | #define ALC3_ATK(x) ((x) & 0x0f) | 146 | #define ALC3_ATK(x) ((x) & 0x0f) |
147 | #define ALC3_DCY(x) ((x) & (0x0f << 4)) | 147 | #define ALC3_DCY(x) (((x) & 0x0f) << 4) |
148 | 148 | ||
149 | #define NGAT 0x14 | 149 | #define NGAT 0x14 |
150 | #define NGAT_NGAT (1 << 0) | 150 | #define NGAT_NGAT (1 << 0) |
151 | #define NGAT_NGG_CONST (0 << 1) | 151 | #define NGAT_NGG_CONST (0 << 1) |
152 | #define NGAT_NGG_MUTEADC (1 << 1) | 152 | #define NGAT_NGG_MUTEADC (1 << 1) |
153 | #define NGAT_NGG(x) ((x) & (0x3 << 1)) | 153 | #define NGAT_NGG(x) (((x) & 0x3) << 1) |
154 | #define NGAT_NGTH(x) ((x) & (0x1f << 3)) | 154 | #define NGAT_NGTH(x) (((x) & 0x1f) << 3) |
155 | #endif | 155 | #endif |
156 | 156 | ||
157 | #define ADDITIONAL1 0x17 | 157 | #define ADDITIONAL1 0x17 |