diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 6c018067ea..c02a8e2936 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -48,7 +48,7 @@ | |||
48 | #include "timer.h" | 48 | #include "timer.h" |
49 | #include "sound.h" | 49 | #include "sound.h" |
50 | #include "database.h" | 50 | #include "database.h" |
51 | #if (CONFIG_HWCODEC == MASNONE) | 51 | #if (CONFIG_CODEC == SWCODEC) |
52 | #include "pcm_playback.h" | 52 | #include "pcm_playback.h" |
53 | #endif | 53 | #endif |
54 | 54 | ||
@@ -249,10 +249,10 @@ static const struct plugin_api rockbox_api = { | |||
249 | mp3_play_pause, | 249 | mp3_play_pause, |
250 | mp3_play_stop, | 250 | mp3_play_stop, |
251 | mp3_is_playing, | 251 | mp3_is_playing, |
252 | #if CONFIG_HWCODEC != MASNONE | 252 | #if CONFIG_CODEC != SWCODEC |
253 | bitswap, | 253 | bitswap, |
254 | #endif | 254 | #endif |
255 | #if CONFIG_HWCODEC == MASNONE | 255 | #if CONFIG_CODEC == SWCODEC |
256 | pcm_play_data, | 256 | pcm_play_data, |
257 | pcm_play_stop, | 257 | pcm_play_stop, |
258 | pcm_set_frequency, | 258 | pcm_set_frequency, |
@@ -276,24 +276,24 @@ static const struct plugin_api rockbox_api = { | |||
276 | audio_current_track, | 276 | audio_current_track, |
277 | audio_flush_and_reload_tracks, | 277 | audio_flush_and_reload_tracks, |
278 | audio_get_file_pos, | 278 | audio_get_file_pos, |
279 | #if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) | 279 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
280 | mpeg_get_last_header, | 280 | mpeg_get_last_header, |
281 | #endif | 281 | #endif |
282 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) | 282 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) |
283 | sound_set_pitch, | 283 | sound_set_pitch, |
284 | #endif | 284 | #endif |
285 | 285 | ||
286 | #if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) | 286 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
287 | /* MAS communication */ | 287 | /* MAS communication */ |
288 | mas_readmem, | 288 | mas_readmem, |
289 | mas_writemem, | 289 | mas_writemem, |
290 | mas_readreg, | 290 | mas_readreg, |
291 | mas_writereg, | 291 | mas_writereg, |
292 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) | 292 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) |
293 | mas_codec_writereg, | 293 | mas_codec_writereg, |
294 | mas_codec_readreg, | 294 | mas_codec_readreg, |
295 | #endif | 295 | #endif |
296 | #endif /* !simulator and HWCODEC != MASNONE */ | 296 | #endif /* !SIMULATOR && CONFIG_CODEC != SWCODEC */ |
297 | 297 | ||
298 | /* tag database */ | 298 | /* tag database */ |
299 | &tagdbheader, | 299 | &tagdbheader, |
@@ -328,7 +328,7 @@ static const struct plugin_api rockbox_api = { | |||
328 | find_next_frame, | 328 | find_next_frame, |
329 | battery_level, | 329 | battery_level, |
330 | battery_level_safe, | 330 | battery_level_safe, |
331 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) | 331 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) |
332 | peak_meter_scale_value, | 332 | peak_meter_scale_value, |
333 | peak_meter_set_use_dbfs, | 333 | peak_meter_set_use_dbfs, |
334 | peak_meter_get_use_dbfs, | 334 | peak_meter_get_use_dbfs, |