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
This commit is contained in:
Michael Sevakis 2010-05-11 04:13:04 +00:00
parent 8ce5b01ec7
commit f16912f624
2 changed files with 3 additions and 3 deletions

View file

@ -257,7 +257,7 @@ void audiohw_set_treble(int value)
void audiohw_set_prescaler(int value) void audiohw_set_prescaler(int value)
{ {
prescaler = 2 * value; prescaler = 3 * value / 15;
wmcodec_write(LEFTGAIN, 0xff - (prescaler & LEFTGAIN_LDACVOL)); wmcodec_write(LEFTGAIN, 0xff - (prescaler & LEFTGAIN_LDACVOL));
wmcodec_write(RIGHTGAIN, RIGHTGAIN_RDVU | wmcodec_write(RIGHTGAIN, RIGHTGAIN_RDVU |
(0xff - (prescaler & RIGHTGAIN_RDACVOL))); (0xff - (prescaler & RIGHTGAIN_RDACVOL)));

View file

@ -296,7 +296,7 @@ void sound_set_bass(int value)
#if !defined(AUDIOHW_HAVE_CLIPPING) #if !defined(AUDIOHW_HAVE_CLIPPING)
#if defined(HAVE_WM8750) || defined(HAVE_WM8751) #if defined(HAVE_WM8750) || defined(HAVE_WM8751)
current_bass = value / 15; current_bass = value;
#else #else
current_bass = value * 10; current_bass = value * 10;
#endif #endif
@ -320,7 +320,7 @@ void sound_set_treble(int value)
#if !defined(AUDIOHW_HAVE_CLIPPING) #if !defined(AUDIOHW_HAVE_CLIPPING)
#if defined(HAVE_WM8750) || defined(HAVE_WM8751) #if defined(HAVE_WM8750) || defined(HAVE_WM8751)
current_treble = value / 15; current_treble = value;
#else #else
current_treble = value * 10; current_treble = value * 10;
#endif #endif