From 38c9d753db092c88d3f94b07d76064cf79b637a0 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Wed, 15 Jun 2005 19:56:44 +0000 Subject: Proper UDA1380 bass and treble settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6727 a1c6a512-1295-4272-9138-f99709370657 --- firmware/sound.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'firmware') diff --git a/firmware/sound.c b/firmware/sound.c index 4e1506525c..02dc6e27ac 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -23,6 +23,9 @@ #ifndef SIMULATOR #include "i2c.h" #include "mas.h" +#ifdef HAVE_UDA1380 +#include "uda1380.h" +#endif #include "dac.h" #include "system.h" #include "hwcompat.h" @@ -85,6 +88,10 @@ static const int numdecimals[] = static const int steps[] = { 1, /* Volume */ +#ifdef HAVE_UDA1380 + 2, /* Bass */ + 2, /* Treble */ +#endif 1, /* Bass */ 1, /* Treble */ 1, /* Balance */ @@ -109,6 +116,9 @@ static const int minval[] = #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) -12, /* Bass */ -12, /* Treble */ +#elif defined(HAVE_UDA1380) + 0, /* Bass */ + 0, /* Treble */ #else -15, /* Bass */ -15, /* Treble */ @@ -135,6 +145,9 @@ static const int maxval[] = #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 12, /* Bass */ 12, /* Treble */ +#elif defined(HAVE_UDA1380) + 24, /* Bass */ + 6, /* Treble */ #else 15, /* Bass */ 15, /* Treble */ -- cgit v1.2.3