forked from len0rd/rockbox
less warnings on iriver builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5761 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7030e29abb
commit
e81fb19dfc
3 changed files with 51 additions and 1 deletions
|
@ -1189,6 +1189,27 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness,
|
||||||
bool superbass)
|
bool superbass)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)volume;
|
||||||
|
(void)bass;
|
||||||
|
(void)treble;
|
||||||
|
(void)balance;
|
||||||
|
(void)loudness;
|
||||||
|
(void)avc;
|
||||||
|
(void)channel_config;
|
||||||
|
(void)stereo_width;
|
||||||
|
(void)mdb_strength;
|
||||||
|
(void)mdb_harmonics;
|
||||||
|
(void)mdb_center;
|
||||||
|
(void)mdb_shape;
|
||||||
|
(void)mdb_enable;
|
||||||
|
(void)superbass;
|
||||||
|
|
||||||
|
paused = false;
|
||||||
|
playing = false;
|
||||||
|
playstart_tick = 0;
|
||||||
|
cumulative_ticks = 0;
|
||||||
|
callback_for_more = 0;
|
||||||
|
mpeg_is_initialized = false;
|
||||||
}
|
}
|
||||||
void mp3_shutdown(void)
|
void mp3_shutdown(void)
|
||||||
{
|
{
|
||||||
|
@ -1198,6 +1219,9 @@ void mp3_play_data(const unsigned char* start, int size,
|
||||||
void (*get_more)(unsigned char** start, int* size))
|
void (*get_more)(unsigned char** start, int* size))
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)start;
|
||||||
|
(void)size;
|
||||||
|
(void)get_more;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mp3_play_stop(void)
|
void mp3_play_stop(void)
|
||||||
|
@ -1208,24 +1232,30 @@ void mp3_play_stop(void)
|
||||||
void mp3_play_pause(bool play)
|
void mp3_play_pause(bool play)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)play;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mpeg_sound_set(int setting, int value)
|
void mpeg_sound_set(int setting, int value)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)setting;
|
||||||
|
(void)value;
|
||||||
}
|
}
|
||||||
bool mp3_is_playing(void)
|
bool mp3_is_playing(void)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mpeg_val2phys(int setting, int value)
|
int mpeg_val2phys(int setting, int value)
|
||||||
{
|
{
|
||||||
|
(void) setting;
|
||||||
|
(void) value;
|
||||||
return value; /* FIX dummy */
|
return value; /* FIX dummy */
|
||||||
}
|
}
|
||||||
unsigned char* mp3_get_pos(void)
|
unsigned char* mp3_get_pos(void)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
return 0x1234;
|
return (unsigned char *)0x1234;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_HWCODEC == MASNONE */
|
#endif /* CONFIG_HWCODEC == MASNONE */
|
||||||
|
|
|
@ -292,6 +292,8 @@ unsigned long mpeg_get_last_header(void)
|
||||||
frame sync and all */
|
frame sync and all */
|
||||||
mas_readmem(MAS_BANK_D0, MAS_D0_MPEG_STATUS_1, tmp, 2);
|
mas_readmem(MAS_BANK_D0, MAS_D0_MPEG_STATUS_1, tmp, 2);
|
||||||
return 0xffe00000 | ((tmp[0] & 0x7c00) << 6) | (tmp[1] & 0xffff);
|
return 0xffe00000 | ((tmp[0] & 0x7c00) << 6) | (tmp[1] & 0xffff);
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2468,6 +2470,8 @@ void bitswap(unsigned char *data, int length)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
/* this ought to be useless */
|
/* this ought to be useless */
|
||||||
|
(void)data;
|
||||||
|
(void)length;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mpeg_init_playback(void)
|
void mpeg_init_playback(void)
|
||||||
|
@ -2477,10 +2481,12 @@ void mpeg_init_playback(void)
|
||||||
unsigned long mpeg_recorded_time(void)
|
unsigned long mpeg_recorded_time(void)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
void mpeg_beep(int duration)
|
void mpeg_beep(int duration)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)duration;
|
||||||
}
|
}
|
||||||
void mpeg_pause_recording(void)
|
void mpeg_pause_recording(void)
|
||||||
{
|
{
|
||||||
|
@ -2493,19 +2499,25 @@ void mpeg_resume_recording(void)
|
||||||
unsigned long mpeg_num_recorded_bytes(void)
|
unsigned long mpeg_num_recorded_bytes(void)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
void mpeg_record(const char *filename)
|
void mpeg_record(const char *filename)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)filename;
|
||||||
}
|
}
|
||||||
void mpeg_new_file(const char *filename)
|
void mpeg_new_file(const char *filename)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mpeg_set_recording_gain(int left, int right, bool use_mic)
|
void mpeg_set_recording_gain(int left, int right, bool use_mic)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)left;
|
||||||
|
(void)right;
|
||||||
|
(void)use_mic;
|
||||||
}
|
}
|
||||||
void mpeg_init_recording(void)
|
void mpeg_init_recording(void)
|
||||||
{
|
{
|
||||||
|
@ -2516,6 +2528,12 @@ void mpeg_set_recording_options(int frequency, int quality,
|
||||||
bool editable, int prerecord_time)
|
bool editable, int prerecord_time)
|
||||||
{
|
{
|
||||||
/* a dummy */
|
/* a dummy */
|
||||||
|
(void)frequency;
|
||||||
|
(void)quality;
|
||||||
|
(void)source;
|
||||||
|
(void)channel_mode;
|
||||||
|
(void)editable;
|
||||||
|
(void)prerecord_time;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,8 @@ int rolo_load(const char* filename)
|
||||||
int rolo_load(const char* filename)
|
int rolo_load(const char* filename)
|
||||||
{
|
{
|
||||||
/* dummy */
|
/* dummy */
|
||||||
|
(void)filename;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_CPU == MCF5249 */
|
#endif /* CONFIG_CPU == MCF5249 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue