diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-11 23:51:00 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-11 23:51:00 +0000 |
commit | 8636e6949e802556da1588b814e454155358df90 (patch) | |
tree | fb668ba4b210d21185ee6f46a8e80e61171af8bf /firmware/sound.c | |
parent | b16137e10b0b309ccd9bf81fb2d70f24b090aa7d (diff) | |
download | rockbox-8636e6949e802556da1588b814e454155358df90.tar.gz rockbox-8636e6949e802556da1588b814e454155358df90.zip |
Moved SH1 system code to target tree. * First shot at hwcompat cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13114 a1c6a512-1295-4272-9138-f99709370657
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; |