diff options
-rw-r--r-- | firmware/sound.c | 13 |
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[] = | |||
85 | static const int steps[] = | 88 | static 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 */ |