summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/tlv320.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-04-15 14:00:48 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-04-15 14:00:48 -0400
commit9e71fd16a55bd69f2cf3345b5ab3459b29c1832d (patch)
tree4c60af99e480be496d4fe8b691c89b356b52e884 /firmware/drivers/audio/tlv320.c
parentbbd991ad63805533ec4e2558061bbba48bfab1a9 (diff)
downloadrockbox-9e71fd16a55bd69f2cf3345b5ab3459b29c1832d.tar.gz
rockbox-9e71fd16a55bd69f2cf3345b5ab3459b29c1832d.zip
Keep fixing 0c7b787 stuff
Change-Id: I0678d3307fbcad32156f9f4e0f8b90eed5a20d92
Diffstat (limited to 'firmware/drivers/audio/tlv320.c')
-rw-r--r--firmware/drivers/audio/tlv320.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c
index 23d2fea3a1..6118734d37 100644
--- a/firmware/drivers/audio/tlv320.c
+++ b/firmware/drivers/audio/tlv320.c
@@ -31,21 +31,6 @@
31#endif 31#endif
32#include "audiohw.h" 32#include "audiohw.h"
33 33
34const struct sound_settings_info audiohw_settings[] = {
35 [SOUND_VOLUME] = {"dB", 0, 1, -73, 6, -20},
36 /* HAVE_SW_TONE_CONTROLS */
37 [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0},
38 [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0},
39 [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
40 [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
41 [SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
42#ifdef HAVE_RECORDING
43 [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23},
44 [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23},
45 [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 1, 1},
46#endif
47};
48
49/* convert tenth of dB volume (-73..6) to master volume register value */ 34/* convert tenth of dB volume (-73..6) to master volume register value */
50static int vol_tenthdb2hw(int db) 35static int vol_tenthdb2hw(int db)
51{ 36{