summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-07-27 20:57:33 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-07-27 20:57:33 +0000
commit451138ba74a5914a714214bc09307ea571c56510 (patch)
treec6028ecc2ea82a745c77e3b82d77db9b2ab0e527 /firmware/export
parent24bde73d1ed1c4a07d0071e7fdf7fd316e719f09 (diff)
downloadrockbox-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')
-rw-r--r--firmware/export/wm8751.h10
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);
#define ENHANCE_3D_MODE3D_RECORD (0 << 7)
#define ALC1 0x11
-#define ALC1_ALCL(x) ((x) & (0x0f))
-#define ALC1_MAXGAIN(x) ((x) & (0x07 << 4))
+#define ALC1_ALCL(x) ((x) & 0x0f)
+#define ALC1_MAXGAIN(x) (((x) & 0x07) << 4)
#define ALC1_ALCSEL_DISABLED (0 << 7)
#define ALC1_ALCSEL_RIGHT (1 << 7)
#define ALC1_ALCSEL_LEFT (2 << 7)
@@ -144,14 +144,14 @@ void audiohw_set_recsrc(int source, bool recording);
#define ALC3 0x13
#define ALC3_ATK(x) ((x) & 0x0f)
-#define ALC3_DCY(x) ((x) & (0x0f << 4))
+#define ALC3_DCY(x) (((x) & 0x0f) << 4)
#define NGAT 0x14
#define NGAT_NGAT (1 << 0)
#define NGAT_NGG_CONST (0 << 1)
#define NGAT_NGG_MUTEADC (1 << 1)
-#define NGAT_NGG(x) ((x) & (0x3 << 1))
-#define NGAT_NGTH(x) ((x) & (0x1f << 3))
+#define NGAT_NGG(x) (((x) & 0x3) << 1)
+#define NGAT_NGTH(x) (((x) & 0x1f) << 3)
#endif
#define ADDITIONAL1 0x17