summaryrefslogtreecommitdiff
path: root/firmware/drivers/as3514.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/as3514.c')
-rw-r--r--firmware/drivers/as3514.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/as3514.c b/firmware/drivers/as3514.c
index 7b6704e630..89761fbbe0 100644
--- a/firmware/drivers/as3514.c
+++ b/firmware/drivers/as3514.c
@@ -47,7 +47,7 @@ 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 */
48int tenthdb2master(int db) 48int tenthdb2master(int db)
49{ 49{
50 /* +6 to -45.43dB in 1.5dB steps == 32 levels = 5 bits */ 50 /* +6 to -40.43dB in 1.5dB steps == 32 levels = 5 bits */
51 /* 11111 == +6dB (0x1f) = 31) */ 51 /* 11111 == +6dB (0x1f) = 31) */
52 /* 11110 == -4.5dB (0x1e) = 30) */ 52 /* 11110 == -4.5dB (0x1e) = 30) */
53 /* 00001 == -39dB (0x01) */ 53 /* 00001 == -39dB (0x01) */