diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-05-22 15:56:05 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-05-22 15:56:05 +0000 |
commit | cdbf33adf719a54221f4f5aac4b15b0dfe54d24d (patch) | |
tree | 9a3a38da744860df4fc2ffd591f848fd02b4094b /firmware/drivers/audio/uda1380.c | |
parent | e7075db2a76425051b2ecfdd14f14b07384c7e08 (diff) | |
download | rockbox-cdbf33adf719a54221f4f5aac4b15b0dfe54d24d.tar.gz rockbox-cdbf33adf719a54221f4f5aac4b15b0dfe54d24d.zip |
* move audio settings into audio codec drivers
* add mas35xx driver for all mas35xx targets. Later
mas35xx code from sound.c will move to this new driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13464 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/uda1380.c')
-rw-r--r-- | firmware/drivers/audio/uda1380.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c index ae0d1e841d..6ee35fab4d 100644 --- a/firmware/drivers/audio/uda1380.c +++ b/firmware/drivers/audio/uda1380.c | |||
@@ -26,6 +26,18 @@ | |||
26 | #include "uda1380.h" | 26 | #include "uda1380.h" |
27 | #include "pcf50606.h" | 27 | #include "pcf50606.h" |
28 | 28 | ||
29 | const struct sound_settings_info audiohw_settings[] = { | ||
30 | [SOUND_VOLUME] = {"dB", 0, 1, -84, 0, -25}, | ||
31 | [SOUND_BASS] = {"dB", 0, 2, 0, 24, 0}, | ||
32 | [SOUND_TREBLE] = {"dB", 0, 2, 0, 6, 0}, | ||
33 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | ||
34 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | ||
35 | [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100}, | ||
36 | [SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0}, | ||
37 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0}, | ||
38 | [SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16}, | ||
39 | }; | ||
40 | |||
29 | /* convert tenth of dB volume (-840..0) to master volume register value */ | 41 | /* convert tenth of dB volume (-840..0) to master volume register value */ |
30 | int tenthdb2master(int db) | 42 | int tenthdb2master(int db) |
31 | { | 43 | { |