summaryrefslogtreecommitdiff
path: root/firmware/mp3_playback.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-06-22 12:37:42 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-06-22 12:37:42 +0000
commit94da3b5f1d6bd8ea7bba41dee573895f23c04544 (patch)
tree14d2c743c6c3c4ec007a185c34781cef7a505630 /firmware/mp3_playback.c
parent9830b164ef09277df433be37c2adafe3b078c3d4 (diff)
downloadrockbox-94da3b5f1d6bd8ea7bba41dee573895f23c04544.tar.gz
rockbox-94da3b5f1d6bd8ea7bba41dee573895f23c04544.zip
Added the (practically useless) 20ms option to the Auto Volume setting, for completeness
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4793 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mp3_playback.c')
-rw-r--r--firmware/mp3_playback.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c
index 28d14eae64..5d43458445 100644
--- a/firmware/mp3_playback.c
+++ b/firmware/mp3_playback.c
@@ -124,7 +124,7 @@ static int maxval[] =
124 100, /* Balance */ 124 100, /* Balance */
125 17, /* Loudness */ 125 17, /* Loudness */
126 100, /* Bass boost */ 126 100, /* Bass boost */
127 3, /* AVC */ 127 4, /* AVC */
128 6, /* Channels */ 128 6, /* Channels */
129 15, /* Left gain */ 129 15, /* Left gain */
130 15, /* Right gain */ 130 15, /* Right gain */
@@ -673,13 +673,16 @@ void mpeg_sound_set(int setting, int value)
673 673
674 case SOUND_AVC: 674 case SOUND_AVC:
675 switch (value) { 675 switch (value) {
676 case 1: /* 2s */ 676 case 1: /* 20ms */
677 tmp = (0x1 << 8) | (0x8 << 12);
678 break;
679 case 2: /* 2s */
677 tmp = (0x2 << 8) | (0x8 << 12); 680 tmp = (0x2 << 8) | (0x8 << 12);
678 break; 681 break;
679 case 2: /* 4s */ 682 case 3: /* 4s */
680 tmp = (0x4 << 8) | (0x8 << 12); 683 tmp = (0x4 << 8) | (0x8 << 12);
681 break; 684 break;
682 case 3: /* 8s */ 685 case 4: /* 8s */
683 tmp = (0x8 << 8) | (0x8 << 12); 686 tmp = (0x8 << 8) | (0x8 << 12);
684 break; 687 break;
685 case -1: /* turn off and then turn on again to decay quickly */ 688 case -1: /* turn off and then turn on again to decay quickly */