summaryrefslogtreecommitdiff
path: root/firmware/sound.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-06-15 19:56:44 +0000
committerThom Johansen <thomj@rockbox.org>2005-06-15 19:56:44 +0000
commit38c9d753db092c88d3f94b07d76064cf79b637a0 (patch)
treecc4b5e6f97f18009d673e287b9a08d05c9fd30fa /firmware/sound.c
parent53ce20a1ae53757f747d6508e78ff5a9e4f543ba (diff)
downloadrockbox-38c9d753db092c88d3f94b07d76064cf79b637a0.tar.gz
rockbox-38c9d753db092c88d3f94b07d76064cf79b637a0.zip
Proper UDA1380 bass and treble settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6727 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index 4e1506525c..02dc6e27ac 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -23,6 +23,9 @@
23#ifndef SIMULATOR 23#ifndef SIMULATOR
24#include "i2c.h" 24#include "i2c.h"
25#include "mas.h" 25#include "mas.h"
26#ifdef HAVE_UDA1380
27#include "uda1380.h"
28#endif
26#include "dac.h" 29#include "dac.h"
27#include "system.h" 30#include "system.h"
28#include "hwcompat.h" 31#include "hwcompat.h"
@@ -85,6 +88,10 @@ static const int numdecimals[] =
85static const int steps[] = 88static const int steps[] =
86{ 89{
87 1, /* Volume */ 90 1, /* Volume */
91#ifdef HAVE_UDA1380
92 2, /* Bass */
93 2, /* Treble */
94#endif
88 1, /* Bass */ 95 1, /* Bass */
89 1, /* Treble */ 96 1, /* Treble */
90 1, /* Balance */ 97 1, /* Balance */
@@ -109,6 +116,9 @@ static const int minval[] =
109#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 116#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
110 -12, /* Bass */ 117 -12, /* Bass */
111 -12, /* Treble */ 118 -12, /* Treble */
119#elif defined(HAVE_UDA1380)
120 0, /* Bass */
121 0, /* Treble */
112#else 122#else
113 -15, /* Bass */ 123 -15, /* Bass */
114 -15, /* Treble */ 124 -15, /* Treble */
@@ -135,6 +145,9 @@ static const int maxval[] =
135#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 145#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
136 12, /* Bass */ 146 12, /* Bass */
137 12, /* Treble */ 147 12, /* Treble */
148#elif defined(HAVE_UDA1380)
149 24, /* Bass */
150 6, /* Treble */
138#else 151#else
139 15, /* Bass */ 152 15, /* Bass */
140 15, /* Treble */ 153 15, /* Treble */