summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-10-03 09:40:19 +0000
committerRobert Hak <adiamas@rockbox.org>2002-10-03 09:40:19 +0000
commit0478236611f4a1e5f3a6690c72fd650d0975309c (patch)
treece110bb19c7e8c85d667df11d77b2fcccb8eba9d /firmware
parent40ffbb1a89a5e75e7d79c87d3eee960fe17eba55 (diff)
volume now increments by 1 not 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2487 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mpeg.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index d7c360550a..0551f40c4b 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -91,13 +91,13 @@ static int minval[] =
-50, /* Balance */
0, /* Loudness */
0, /* Bass boost */
- -1, /* AVC */
+ -1, /* AVC */
0 /* Channels */
};
static int maxval[] =
{
- 50, /* Volume */
+ 100, /* Volume */
#ifdef HAVE_MAS3587F
24, /* Bass */
24, /* Treble */
@@ -114,7 +114,7 @@ static int maxval[] =
static int defaultval[] =
{
- 70/2, /* Volume */
+ 70, /* Volume */
#ifdef HAVE_MAS3587F
12+6, /* Bass */
12+6, /* Treble */
@@ -1609,7 +1609,8 @@ void mpeg_sound_set(int setting, int value)
switch(setting)
{
case SOUND_VOLUME:
- value *= 2; /* Convert to percent */
+ /* We are doing increments of 1 */
+ /*value *= 2;*/ /* Convert to percent */
#ifdef HAVE_MAS3587F
tmp = 0x7f00 * value / 100;
@@ -1738,7 +1739,8 @@ int mpeg_val2phys(int setting, int value)
switch(setting)
{
case SOUND_VOLUME:
- result = value * 2;
+/* result = value * 2;*/
+ result = value;
break;
case SOUND_BALANCE: