summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/dac3550a.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/dac3550a.c')
-rw-r--r--firmware/drivers/audio/dac3550a.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/firmware/drivers/audio/dac3550a.c b/firmware/drivers/audio/dac3550a.c
index 9c6dfbb292..0ff5d8ad21 100644
--- a/firmware/drivers/audio/dac3550a.c
+++ b/firmware/drivers/audio/dac3550a.c
@@ -27,15 +27,6 @@
27static bool line_in_enabled = false; 27static bool line_in_enabled = false;
28static bool dac_enabled = false; 28static bool dac_enabled = false;
29 29
30/* convert tenth of dB volume (-780..+180) to dac3550 register value */
31int tenthdb2reg(int db)
32{
33 if (db < -540) /* 3 dB steps */
34 return (db + 780) / 30;
35 else /* 1.5 dB steps */
36 return (db + 660) / 15;
37}
38
39int dac_volume(unsigned int left, unsigned int right, bool deemph) 30int dac_volume(unsigned int left, unsigned int right, bool deemph)
40{ 31{
41 int ret = 0; 32 int ret = 0;