From cdbf33adf719a54221f4f5aac4b15b0dfe54d24d Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 22 May 2007 15:56:05 +0000 Subject: * 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 --- firmware/drivers/audio/tlv320.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'firmware/drivers/audio/tlv320.c') diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c index 90587fc23a..95945883bf 100644 --- a/firmware/drivers/audio/tlv320.c +++ b/firmware/drivers/audio/tlv320.c @@ -24,6 +24,19 @@ #include "i2c-coldfire.h" #include "tlv320.h" +const struct sound_settings_info audiohw_settings[] = { + [SOUND_VOLUME] = {"dB", 0, 1, -73, 6, -20}, + /* HAVE_SW_TONE_CONTROLS */ + [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, + [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, + [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, + [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, + [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100}, + [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23}, + [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23}, + [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 1, 1}, +}; + /* convert tenth of dB volume (-840..0) to master volume register value */ int tenthdb2master(int db) { -- cgit v1.2.3