summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mp3_playback.c32
-rw-r--r--firmware/mpeg.c18
-rw-r--r--firmware/rolo.c2
3 files changed, 51 insertions, 1 deletions
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c
index 2944decdc6..bc1a70e685 100644
--- a/firmware/mp3_playback.c
+++ b/firmware/mp3_playback.c
@@ -1189,6 +1189,27 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness,
bool superbass)
{
/* 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)
{
@@ -1198,6 +1219,9 @@ void mp3_play_data(const unsigned char* start, int size,
void (*get_more)(unsigned char** start, int* size))
{
/* a dummy */
+ (void)start;
+ (void)size;
+ (void)get_more;
}
void mp3_play_stop(void)
@@ -1208,24 +1232,30 @@ void mp3_play_stop(void)
void mp3_play_pause(bool play)
{
/* a dummy */
+ (void)play;
}
void mpeg_sound_set(int setting, int value)
{
/* a dummy */
+ (void)setting;
+ (void)value;
}
bool mp3_is_playing(void)
{
/* a dummy */
+ return false;
}
int mpeg_val2phys(int setting, int value)
{
+ (void) setting;
+ (void) value;
return value; /* FIX dummy */
}
unsigned char* mp3_get_pos(void)
{
/* a dummy */
- return 0x1234;
+ return (unsigned char *)0x1234;
}
#endif /* CONFIG_HWCODEC == MASNONE */
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 9b46c3caf1..4b11eecb5a 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -292,6 +292,8 @@ unsigned long mpeg_get_last_header(void)
frame sync and all */
mas_readmem(MAS_BANK_D0, MAS_D0_MPEG_STATUS_1, tmp, 2);
return 0xffe00000 | ((tmp[0] & 0x7c00) << 6) | (tmp[1] & 0xffff);
+#else
+ return 0;
#endif
}
@@ -2468,6 +2470,8 @@ void bitswap(unsigned char *data, int length)
{
/* a dummy */
/* this ought to be useless */
+ (void)data;
+ (void)length;
}
void mpeg_init_playback(void)
@@ -2477,10 +2481,12 @@ void mpeg_init_playback(void)
unsigned long mpeg_recorded_time(void)
{
/* a dummy */
+ return 0;
}
void mpeg_beep(int duration)
{
/* a dummy */
+ (void)duration;
}
void mpeg_pause_recording(void)
{
@@ -2493,19 +2499,25 @@ void mpeg_resume_recording(void)
unsigned long mpeg_num_recorded_bytes(void)
{
/* a dummy */
+ return 0;
}
void mpeg_record(const char *filename)
{
/* a dummy */
+ (void)filename;
}
void mpeg_new_file(const char *filename)
{
/* a dummy */
+ (void)filename;
}
void mpeg_set_recording_gain(int left, int right, bool use_mic)
{
/* a dummy */
+ (void)left;
+ (void)right;
+ (void)use_mic;
}
void mpeg_init_recording(void)
{
@@ -2516,6 +2528,12 @@ void mpeg_set_recording_options(int frequency, int quality,
bool editable, int prerecord_time)
{
/* a dummy */
+ (void)frequency;
+ (void)quality;
+ (void)source;
+ (void)channel_mode;
+ (void)editable;
+ (void)prerecord_time;
}
#endif
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 2d8a1c54c7..a5b3c56da9 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -149,6 +149,8 @@ int rolo_load(const char* filename)
int rolo_load(const char* filename)
{
/* dummy */
+ (void)filename;
+ return 0;
}
#endif /* CONFIG_CPU == MCF5249 */