diff options
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index 7004a40fb6..923a8693bd 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #endif | 29 | #endif |
30 | #include "dac.h" | 30 | #include "dac.h" |
31 | #include "system.h" | 31 | #include "system.h" |
32 | #include "hwcompat.h" | ||
33 | #if CONFIG_CODEC == SWCODEC | 32 | #if CONFIG_CODEC == SWCODEC |
34 | #include "pcm_playback.h" | 33 | #include "pcm_playback.h" |
35 | #endif | 34 | #endif |
@@ -282,7 +281,7 @@ static const unsigned int prescale_table[] = | |||
282 | }; | 281 | }; |
283 | 282 | ||
284 | /* convert tenth of dB volume (-780..+180) to dac3550 register value */ | 283 | /* convert tenth of dB volume (-780..+180) to dac3550 register value */ |
285 | static int tenthdb2reg(int db) | 284 | static int tenthdb2reg(int db) |
286 | { | 285 | { |
287 | if (db < -540) /* 3 dB steps */ | 286 | if (db < -540) /* 3 dB steps */ |
288 | return (db + 780) / 30; | 287 | return (db + 780) / 30; |