diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-02-02 21:59:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-02 21:59:54 +0000 |
commit | ac5fbf3e48d4d6d76aa19e99593dc26ed304dbbe (patch) | |
tree | 4c4510fa793b13d4176aa7394a43c6cda44e382f /firmware | |
parent | 1d395ae8a922bf53612f74f40a8cced859963ced (diff) | |
download | rockbox-ac5fbf3e48d4d6d76aa19e99593dc26ed304dbbe.tar.gz rockbox-ac5fbf3e48d4d6d76aa19e99593dc26ed304dbbe.zip |
provide a range of dummies to build on iriver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5751 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/mp3_playback.c | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c index f2c588c6b5..2944decdc6 100644 --- a/firmware/mp3_playback.c +++ b/firmware/mp3_playback.c | |||
@@ -242,6 +242,9 @@ int mpeg_sound_default(int setting) | |||
242 | static bool mpeg_is_initialized = false; | 242 | static bool mpeg_is_initialized = false; |
243 | #endif | 243 | #endif |
244 | 244 | ||
245 | #if CONFIG_HWCODEC != MASNONE | ||
246 | /* FIX: this code pretty much assumes a MAS */ | ||
247 | |||
245 | #ifndef SIMULATOR | 248 | #ifndef SIMULATOR |
246 | 249 | ||
247 | unsigned long mas_version_code; | 250 | unsigned long mas_version_code; |
@@ -366,7 +369,7 @@ static void mas_poll_start(void) | |||
366 | 369 | ||
367 | TSTR |= 0x02; /* Start timer 1 */ | 370 | TSTR |= 0x02; /* Start timer 1 */ |
368 | } | 371 | } |
369 | #else | 372 | #elif CONFIG_HWCODEC != MASNONE |
370 | static void postpone_dma_tick(void) | 373 | static void postpone_dma_tick(void) |
371 | { | 374 | { |
372 | unsigned int count; | 375 | unsigned int count; |
@@ -1177,3 +1180,52 @@ unsigned char* mp3_get_pos(void) | |||
1177 | 1180 | ||
1178 | 1181 | ||
1179 | #endif /* #ifndef SIMULATOR */ | 1182 | #endif /* #ifndef SIMULATOR */ |
1183 | |||
1184 | #else /* CONFIG_HWCODEC != MASNONE */ | ||
1185 | void mp3_init(int volume, int bass, int treble, int balance, int loudness, | ||
1186 | int avc, int channel_config, int stereo_width, | ||
1187 | int mdb_strength, int mdb_harmonics, | ||
1188 | int mdb_center, int mdb_shape, bool mdb_enable, | ||
1189 | bool superbass) | ||
1190 | { | ||
1191 | /* a dummy */ | ||
1192 | } | ||
1193 | void mp3_shutdown(void) | ||
1194 | { | ||
1195 | /* a dummy */ | ||
1196 | } | ||
1197 | void mp3_play_data(const unsigned char* start, int size, | ||
1198 | void (*get_more)(unsigned char** start, int* size)) | ||
1199 | { | ||
1200 | /* a dummy */ | ||
1201 | } | ||
1202 | |||
1203 | void mp3_play_stop(void) | ||
1204 | { | ||
1205 | /* a dummy */ | ||
1206 | } | ||
1207 | |||
1208 | void mp3_play_pause(bool play) | ||
1209 | { | ||
1210 | /* a dummy */ | ||
1211 | } | ||
1212 | |||
1213 | void mpeg_sound_set(int setting, int value) | ||
1214 | { | ||
1215 | /* a dummy */ | ||
1216 | } | ||
1217 | bool mp3_is_playing(void) | ||
1218 | { | ||
1219 | /* a dummy */ | ||
1220 | } | ||
1221 | |||
1222 | int mpeg_val2phys(int setting, int value) | ||
1223 | { | ||
1224 | return value; /* FIX dummy */ | ||
1225 | } | ||
1226 | unsigned char* mp3_get_pos(void) | ||
1227 | { | ||
1228 | /* a dummy */ | ||
1229 | return 0x1234; | ||
1230 | } | ||
1231 | #endif /* CONFIG_HWCODEC == MASNONE */ | ||