diff options
Diffstat (limited to 'firmware/drivers/audio/dac3550a.c')
-rw-r--r-- | firmware/drivers/audio/dac3550a.c | 9 |
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 @@ | |||
27 | static bool line_in_enabled = false; | 27 | static bool line_in_enabled = false; |
28 | static bool dac_enabled = false; | 28 | static bool dac_enabled = false; |
29 | 29 | ||
30 | /* convert tenth of dB volume (-780..+180) to dac3550 register value */ | ||
31 | int 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 | |||
39 | int dac_volume(unsigned int left, unsigned int right, bool deemph) | 30 | int dac_volume(unsigned int left, unsigned int right, bool deemph) |
40 | { | 31 | { |
41 | int ret = 0; | 32 | int ret = 0; |