From c633ceb93e8f24e037cc1228dbb58d1feee775f1 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 7 Jun 2002 14:41:26 +0000 Subject: Temporarily disabled mpeg code on Recorder git-svn-id: svn://svn.rockbox.org/rockbox/trunk@917 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 +#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]; -- cgit v1.2.3