mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Temporarily disabled mpeg code on Recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@917 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5a687d0377
commit
c633ceb93e
1 changed files with 33 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue