1
0
Fork 0
forked from len0rd/rockbox

a hell of a commit: changed several HAVE_xx configuration flags into multiple choice values (keypad, tuner, CPU, h/w codec)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2004-09-28 22:13:26 +00:00
parent e6f83b6950
commit 593cc00447
52 changed files with 250 additions and 229 deletions

View file

@ -230,7 +230,7 @@ static void update_icons(void)
LCD_WIDTH/3 + LCD_WIDTH/3 / 2 - BMPWIDTH/2, LCD_HEIGHT - BMPHEIGHT,
BMPWIDTH, BMPHEIGHT, true);
#ifdef HAVE_MAS3587F
#if CONFIG_HWCODEC == MAS3587F
/* The scale icon */
rb->lcd_bitmap(SCALE_BMP[rb->peak_meter_get_use_dbfs()],
2 *LCD_WIDTH/3 + LCD_WIDTH/3 / 2 - BMPWIDTH/2, LCD_HEIGHT - BMPHEIGHT,
@ -849,7 +849,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
{
/* read volume info */
unsigned short volume;
#ifdef HAVE_MAS3587F
#if CONFIG_HWCODEC == MAS3587F
volume = rb->mas_codec_readreg(0x0c);
volume += rb->mas_codec_readreg(0x0d);
volume = volume / 2;
@ -1003,7 +1003,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
lastx = time_to_xpos(mp3->elapsed);
break;
#ifdef HAVE_MAS3587F
#if CONFIG_HWCODEC == MAS3587F
case BUTTON_ON | BUTTON_RIGHT:
rb->mpeg_set_pitch(1500);
splitedit_invalidate_osci();
@ -1060,7 +1060,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
break;
case BUTTON_F3:
#ifdef HAVE_MAS3587F
#if CONFIG_HWCODEC == MAS3587F
rb->peak_meter_set_use_dbfs(rb->peak_meter_get_use_dbfs() +1);
#endif
splitedit_invalidate_osci();