summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8731.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r--firmware/drivers/audio/wm8731.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index 59fa4cffcf..a1149c3d2e 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -98,19 +98,6 @@ int tenthdb2master(int db)
98 } 98 }
99} 99}
100 100
101/* convert tenth of dB volume (-780..0) to mixer volume register value */
102int tenthdb2mixer(int db)
103{
104 if (db < -660) /* 1.5 dB steps */
105 return (2640 - db) / 15;
106 else if (db < -600) /* 0.75 dB steps */
107 return (990 - db) * 2 / 15;
108 else if (db < -460) /* 0.5 dB steps */
109 return (460 - db) / 5;
110 else /* 0.25 dB steps */
111 return -db * 2 / 5;
112}
113
114int sound_val2phys(int setting, int value) 101int sound_val2phys(int setting, int value)
115{ 102{
116 int result; 103 int result;