diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2007-04-12 09:08:49 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2007-04-12 09:08:49 +0000 |
commit | 9291ae50caa0aa36dced30cddc3bac2af786a81a (patch) | |
tree | c772b9eee7c260b8eed6ce94598e0b63ceb22576 /firmware/export/uda1380.h | |
parent | 91ea874c714d1fc98a13233327a86ad715fe74aa (diff) | |
download | rockbox-9291ae50caa0aa36dced30cddc3bac2af786a81a.tar.gz rockbox-9291ae50caa0aa36dced30cddc3bac2af786a81a.zip |
simplify UDA1380 bass and treble code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13122 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/uda1380.h')
-rw-r--r-- | firmware/export/uda1380.h | 8 |
1 files changed, 4 insertions, 4 deletions
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); | |||
133 | #define EQ_MODE_FLAT (0 << 14) | 133 | #define EQ_MODE_FLAT (0 << 14) |
134 | #define EQ_MODE_MIN (1 << 14) | 134 | #define EQ_MODE_MIN (1 << 14) |
135 | #define EQ_MODE_MAX (3 << 14) | 135 | #define EQ_MODE_MAX (3 << 14) |
136 | #define BASSL(x) (((x) & 0xF) << 8) | 136 | #define BASSL(x) (((x) & 0x1E) << 7) |
137 | #define BASSR(x) (((x) & 0xF) << 0) | 137 | #define BASSR(x) (((x) & 0x1E) >> 1) |
138 | #define TREBLEL(x) (((x) & 0x3) << 12) | 138 | #define TREBLEL(x) (((x) & 0x6) << 11) |
139 | #define TREBLER(x) (((x) & 0x3) << 4) | 139 | #define TREBLER(x) (((x) & 0x6) << 3) |
140 | #define BASS_MASK 0x0F0F | 140 | #define BASS_MASK 0x0F0F |
141 | #define TREBLE_MASK 0x3030 | 141 | #define TREBLE_MASK 0x3030 |
142 | 142 | ||