diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-04-15 14:38:22 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-04-15 14:38:22 +0000 |
commit | 947eb50d6486f65db824d833b90801f9eabe6492 (patch) | |
tree | 422bd5a786164e2713ee290f1e12f136d6d639a0 /firmware/drivers | |
parent | 8a5ecc8eb4f97dcdb274f96de3364e9e9bf49f60 (diff) | |
download | rockbox-947eb50d6486f65db824d833b90801f9eabe6492.tar.gz rockbox-947eb50d6486f65db824d833b90801f9eabe6492.zip |
adapt some values
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13167 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/as3514.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/as3514.c b/firmware/drivers/as3514.c index 455c2f3320..7b6704e630 100644 --- a/firmware/drivers/as3514.c +++ b/firmware/drivers/as3514.c | |||
@@ -47,11 +47,11 @@ static void as3514_write(int reg, int value) | |||
47 | /* convert tenth of dB volume to master volume register value */ | 47 | /* convert tenth of dB volume to master volume register value */ |
48 | int tenthdb2master(int db) | 48 | int tenthdb2master(int db) |
49 | { | 49 | { |
50 | /* +1..07 to -45.43dB in 1.5dB steps == 32 levels = 5 bits */ | 50 | /* +6 to -45.43dB in 1.5dB steps == 32 levels = 5 bits */ |
51 | /* 11111 == +1.07dB (0x1f) = 31) */ | 51 | /* 11111 == +6dB (0x1f) = 31) */ |
52 | /* 11110 == -0.43dB (0x1e) = 30) */ | 52 | /* 11110 == -4.5dB (0x1e) = 30) */ |
53 | /* 00001 == -43.93dB (0x01) */ | 53 | /* 00001 == -39dB (0x01) */ |
54 | /* 00000 == -45.43dB (0x00) */ | 54 | /* 00000 == -40.5dB (0x00) */ |
55 | 55 | ||
56 | if (db < VOLUME_MIN) { | 56 | if (db < VOLUME_MIN) { |
57 | return 0x0; | 57 | return 0x0; |