From 9291ae50caa0aa36dced30cddc3bac2af786a81a Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Thu, 12 Apr 2007 09:08:49 +0000 Subject: simplify UDA1380 bass and treble code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13122 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/uda1380.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/uda1380.h b/firmware/export/uda1380.h index f9c73d0471..c1fb6421ff 100644 --- a/firmware/export/uda1380.h +++ b/firmware/export/uda1380.h @@ -133,10 +133,10 @@ extern void audiohw_set_monitor(int enable); #define EQ_MODE_FLAT (0 << 14) #define EQ_MODE_MIN (1 << 14) #define EQ_MODE_MAX (3 << 14) -#define BASSL(x) (((x) & 0xF) << 8) -#define BASSR(x) (((x) & 0xF) << 0) -#define TREBLEL(x) (((x) & 0x3) << 12) -#define TREBLER(x) (((x) & 0x3) << 4) +#define BASSL(x) (((x) & 0x1E) << 7) +#define BASSR(x) (((x) & 0x1E) >> 1) +#define TREBLEL(x) (((x) & 0x6) << 11) +#define TREBLER(x) (((x) & 0x6) << 3) #define BASS_MASK 0x0F0F #define TREBLE_MASK 0x3030 -- cgit v1.2.3