summaryrefslogtreecommitdiff
path: root/firmware/sound.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2008-05-16 20:06:50 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2008-05-16 20:06:50 +0000
commitdfa28e69f6c8b8da05034b39e44eab298924ee06 (patch)
treed67de55860963462c2d017669ce10fa0e71ccf93 /firmware/sound.c
parentf1dd7bbcd71658a9c0086b5866896de1666ceb2a (diff)
fix FS#8992 - hope all sound bass/treble problems are gone now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17541 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index 2005a0f356..d33addbd09 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -352,6 +352,14 @@ void sound_set_bass(int value)
if(!audio_is_initialized)
return;
+#if !defined(AUDIOHW_HAVE_CLIPPING)
+#if defined(HAVE_WM8751)
+ current_bass = value;
+#else
+ current_bass = value * 10;
+#endif
+#endif
+
#if defined(AUDIOHW_HAVE_BASS)
audiohw_set_bass(value);
#else
@@ -359,11 +367,6 @@ void sound_set_bass(int value)
#endif
#if !defined(AUDIOHW_HAVE_CLIPPING)
-#if defined(HAVE_WM8751)
- current_bass = value;
-#else
- current_bass = value * 10;
-#endif
set_prescaled_volume();
#endif
}
@@ -373,6 +376,14 @@ void sound_set_treble(int value)
if(!audio_is_initialized)
return;
+#if !defined(AUDIOHW_HAVE_CLIPPING)
+#if defined(HAVE_WM8751)
+ current_treble = value;
+#else
+ current_treble = value * 10;
+#endif
+#endif
+
#if defined(AUDIOHW_HAVE_TREBLE)
audiohw_set_treble(value);
#else
@@ -380,11 +391,6 @@ void sound_set_treble(int value)
#endif
#if !defined(AUDIOHW_HAVE_CLIPPING)
-#if defined(HAVE_WM8751)
- current_treble = value;
-#else
- current_treble = value * 10;
-#endif
set_prescaled_volume();
#endif
}