diff options
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; |