diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-11 04:13:04 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-11 04:13:04 +0000 |
| commit | f16912f624ed5cb9484b3570d241219ee75e81ac (patch) | |
| tree | 48ae3d7b36476899b3f5c854d410d85480a6c06d | |
| parent | 8ce5b01ec717a8ee1d765ec9c0d4d6f20868092e (diff) | |
| download | rockbox-f16912f624ed5cb9484b3570d241219ee75e81ac.zip rockbox-f16912f624ed5cb9484b3570d241219ee75e81ac.tar.gz rockbox-f16912f624ed5cb9484b3570d241219ee75e81ac.tar.bz2 rockbox-f16912f624ed5cb9484b3570d241219ee75e81ac.tar.xz | |
r25940 oops. No, no, no, that wasn't quite right. Must be truthful about the level in decidecibels for subsequent code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25941 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/audio/wm8751.c | 2 | ||||
| -rw-r--r-- | firmware/sound.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c index e7c0b18..2adbdca 100644 --- a/firmware/drivers/audio/wm8751.c +++ b/firmware/drivers/audio/wm8751.c @@ -257,7 +257,7 @@ void audiohw_set_treble(int value) void audiohw_set_prescaler(int value) { - prescaler = 2 * value; + prescaler = 3 * value / 15; wmcodec_write(LEFTGAIN, 0xff - (prescaler & LEFTGAIN_LDACVOL)); wmcodec_write(RIGHTGAIN, RIGHTGAIN_RDVU | (0xff - (prescaler & RIGHTGAIN_RDACVOL))); diff --git a/firmware/sound.c b/firmware/sound.c index 2973721..b56e610 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -296,7 +296,7 @@ void sound_set_bass(int value) #if !defined(AUDIOHW_HAVE_CLIPPING) #if defined(HAVE_WM8750) || defined(HAVE_WM8751) - current_bass = value / 15; + current_bass = value; #else current_bass = value * 10; #endif @@ -320,7 +320,7 @@ void sound_set_treble(int value) #if !defined(AUDIOHW_HAVE_CLIPPING) #if defined(HAVE_WM8750) || defined(HAVE_WM8751) - current_treble = value / 15; + current_treble = value; #else current_treble = value * 10; #endif |