From f16912f624ed5cb9484b3570d241219ee75e81ac Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 11 May 2010 04:13:04 +0000 Subject: [PATCH] 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 --- firmware/drivers/audio/wm8751.c | 2 +- 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 e7c0b18da3..2adbdcaa56 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 2973721e1c..b56e610034 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