diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-07 14:41:26 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-07 14:41:26 +0000 |
commit | c633ceb93e8f24e037cc1228dbb58d1feee775f1 (patch) | |
tree | d2668b66c344dc8c4ec2e834009a9fe1b28e4223 /firmware/mpeg.c | |
parent | 5a687d037705c3501e21db77f1a9288d7349c946 (diff) |
Temporarily disabled mpeg code on Recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@917 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r-- | firmware/mpeg.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index aa577bc01b..1620c1db8a 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -17,6 +17,7 @@ * ****************************************************************************/ #include <stdbool.h> +#include "config.h" #include "i2c.h" #include "mas.h" #include "dac.h" @@ -481,38 +482,66 @@ static void setup_sci0(void) void mpeg_play(char* trackname) { +#ifdef ARCHOS_RECORDER + return; +#endif + queue_post(&mpeg_queue, MPEG_PLAY, trackname); } void mpeg_stop(void) { +#ifdef ARCHOS_RECORDER + return; +#endif + queue_post(&mpeg_queue, MPEG_STOP, NULL); } void mpeg_pause(void) { +#ifdef ARCHOS_RECORDER + return; +#endif + queue_post(&mpeg_queue, MPEG_PAUSE, NULL); } void mpeg_resume(void) { +#ifdef ARCHOS_RECORDER + return; +#endif + queue_post(&mpeg_queue, MPEG_RESUME, NULL); } void mpeg_volume(int percent) { +#ifdef ARCHOS_RECORDER + return; +#endif + int volume = 0x38 * percent / 100; dac_volume(volume); } void mpeg_bass(int percent) { +#ifdef ARCHOS_RECORDER + return; +#endif + int bass = 15 * percent / 100; mas_writereg(MAS_REG_KBASS, bass_table[bass]); } void mpeg_treble(int percent) { +#ifdef ARCHOS_RECORDER + return; +#endif + int treble = 15 * percent / 100; mas_writereg(MAS_REG_KTREBLE, treble_table[treble]); } @@ -524,6 +553,10 @@ void mpeg_init(void) setup_sci0(); i2c_init(); +#ifdef ARCHOS_RECORDER + return; +#endif + #ifdef DEBUG { unsigned char buf[32]; |