From 451138ba74a5914a714214bc09307ea571c56510 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Tue, 27 Jul 2010 20:57:33 +0000 Subject: 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 --- firmware/export/wm8751.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'firmware/export') 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 -- cgit v1.2.3