summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/SOURCES4
-rw-r--r--apps/codecs.c20
-rw-r--r--apps/codecs.h18
-rw-r--r--apps/codecs/lib/SOURCES2
-rw-r--r--apps/codecs/lib/xxx2wav.c4
-rw-r--r--apps/database.c2
-rw-r--r--apps/debug_menu.c4
-rw-r--r--apps/filetypes.c4
-rw-r--r--apps/main.c8
-rw-r--r--apps/playlist.c4
-rw-r--r--apps/plugin.c18
-rw-r--r--apps/plugin.h16
-rw-r--r--apps/plugins/SOURCES2
-rw-r--r--apps/plugins/oscillograph.c2
-rw-r--r--apps/plugins/oscilloscope.c2
-rw-r--r--apps/plugins/rockboy/rbsound.c2
-rw-r--r--apps/plugins/splitedit.c10
-rw-r--r--apps/plugins/vu_meter.c2
-rw-r--r--apps/recorder/peakmeter.c8
-rw-r--r--apps/recorder/radio.c18
-rw-r--r--apps/screens.c4
-rw-r--r--apps/settings.c26
-rw-r--r--apps/settings.h4
-rw-r--r--apps/settings_menu.c16
-rw-r--r--apps/sound_menu.c10
-rw-r--r--apps/status.c2
-rw-r--r--apps/talk.c24
-rw-r--r--apps/tree.c2
28 files changed, 119 insertions, 119 deletions
diff --git a/apps/SOURCES b/apps/SOURCES
index 3c933d22b6..063abe34d7 100644
--- a/apps/SOURCES
+++ b/apps/SOURCES
@@ -23,7 +23,7 @@ settings_menu.c
23sleeptimer.c 23sleeptimer.c
24sound_menu.c 24sound_menu.c
25status.c 25status.c
26#if !defined(SIMULATOR) || CONFIG_HWCODEC == MASNONE 26#if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC
27talk.c 27talk.c
28#endif 28#endif
29tree.c 29tree.c
@@ -49,7 +49,7 @@ recorder/radio.c
49#ifdef HAVE_RECORDING 49#ifdef HAVE_RECORDING
50recorder/recording.c 50recorder/recording.c
51#endif 51#endif
52#if CONFIG_HWCODEC == MASNONE 52#if CONFIG_CODEC == SWCODEC
53pcmbuf.c 53pcmbuf.c
54playback.c 54playback.c
55metadata.c 55metadata.c
diff --git a/apps/codecs.c b/apps/codecs.c
index 0093da67c5..f7f271da96 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -48,12 +48,12 @@
48#include "system.h" 48#include "system.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
55#ifdef SIMULATOR 55#ifdef SIMULATOR
56#if CONFIG_HWCODEC == MASNONE 56#if CONFIG_CODEC == SWCODEC
57unsigned char codecbuf[CODEC_SIZE]; 57unsigned char codecbuf[CODEC_SIZE];
58#endif 58#endif
59void *sim_codec_load_ram(char* codecptr, int size, 59void *sim_codec_load_ram(char* codecptr, int size,
@@ -161,10 +161,10 @@ struct codec_api ci = {
161 mp3_play_pause, 161 mp3_play_pause,
162 mp3_play_stop, 162 mp3_play_stop,
163 mp3_is_playing, 163 mp3_is_playing,
164#if CONFIG_HWCODEC != MASNONE 164#if CONFIG_CODEC != SWCODEC
165 bitswap, 165 bitswap,
166#endif 166#endif
167#if CONFIG_HWCODEC == MASNONE 167#if CONFIG_CODEC == SWCODEC
168 pcm_play_data, 168 pcm_play_data,
169 pcm_play_stop, 169 pcm_play_stop,
170 pcm_set_frequency, 170 pcm_set_frequency,
@@ -188,24 +188,24 @@ struct codec_api ci = {
188 audio_current_track, 188 audio_current_track,
189 audio_flush_and_reload_tracks, 189 audio_flush_and_reload_tracks,
190 audio_get_file_pos, 190 audio_get_file_pos,
191#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 191#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
192 mpeg_get_last_header, 192 mpeg_get_last_header,
193#endif 193#endif
194#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 194#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
195 sound_set_pitch, 195 sound_set_pitch,
196#endif 196#endif
197 197
198#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 198#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
199 /* MAS communication */ 199 /* MAS communication */
200 mas_readmem, 200 mas_readmem,
201 mas_writemem, 201 mas_writemem,
202 mas_readreg, 202 mas_readreg,
203 mas_writereg, 203 mas_writereg,
204#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 204#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
205 mas_codec_writereg, 205 mas_codec_writereg,
206 mas_codec_readreg, 206 mas_codec_readreg,
207#endif 207#endif
208#endif /* !simulator and HWCODEC != MASNONE */ 208#endif /* !simulator and HWCODEC != SWCODEC */
209 209
210 /* tag database */ 210 /* tag database */
211 &tagdbheader, 211 &tagdbheader,
@@ -232,7 +232,7 @@ struct codec_api ci = {
232 find_next_frame, 232 find_next_frame,
233 battery_level, 233 battery_level,
234 battery_level_safe, 234 battery_level_safe,
235#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 235#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
236 peak_meter_scale_value, 236 peak_meter_scale_value,
237 peak_meter_set_use_dbfs, 237 peak_meter_set_use_dbfs,
238 peak_meter_get_use_dbfs, 238 peak_meter_get_use_dbfs,
diff --git a/apps/codecs.h b/apps/codecs.h
index 47cd5711ae..fe309554db 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -43,7 +43,7 @@
43#include "mpeg.h" 43#include "mpeg.h"
44#include "audio.h" 44#include "audio.h"
45#include "mp3_playback.h" 45#include "mp3_playback.h"
46#if (HWCODEC == MASNONE) 46#if (HWCODEC == SWCODEC)
47#include "pcm_playback.h" 47#include "pcm_playback.h"
48#endif 48#endif
49#include "settings.h" 49#include "settings.h"
@@ -234,10 +234,10 @@ struct codec_api {
234 void (*mp3_play_pause)(bool play); 234 void (*mp3_play_pause)(bool play);
235 void (*mp3_play_stop)(void); 235 void (*mp3_play_stop)(void);
236 bool (*mp3_is_playing)(void); 236 bool (*mp3_is_playing)(void);
237#if CONFIG_HWCODEC != MASNONE 237#if CONFIG_CODEC != SWCODEC
238 void (*bitswap)(unsigned char *data, int length); 238 void (*bitswap)(unsigned char *data, int length);
239#endif 239#endif
240#if CONFIG_HWCODEC == MASNONE 240#if CONFIG_CODEC == SWCODEC
241 void (*pcm_play_data)(void (*get_more)(unsigned char** start, long*size)); 241 void (*pcm_play_data)(void (*get_more)(unsigned char** start, long*size));
242 void (*pcm_play_stop)(void); 242 void (*pcm_play_stop)(void);
243 void (*pcm_set_frequency)(unsigned int frequency); 243 void (*pcm_set_frequency)(unsigned int frequency);
@@ -261,20 +261,20 @@ struct codec_api {
261 struct mp3entry* (*audio_current_track)(void); 261 struct mp3entry* (*audio_current_track)(void);
262 void (*audio_flush_and_reload_tracks)(void); 262 void (*audio_flush_and_reload_tracks)(void);
263 int (*audio_get_file_pos)(void); 263 int (*audio_get_file_pos)(void);
264#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 264#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
265 unsigned long (*mpeg_get_last_header)(void); 265 unsigned long (*mpeg_get_last_header)(void);
266#endif 266#endif
267#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 267#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
268 void (*sound_set_pitch)(int pitch); 268 void (*sound_set_pitch)(int pitch);
269#endif 269#endif
270 270
271 /* MAS communication */ 271 /* MAS communication */
272#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 272#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
273 int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); 273 int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len);
274 int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len); 274 int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len);
275 int (*mas_readreg)(int reg); 275 int (*mas_readreg)(int reg);
276 int (*mas_writereg)(int reg, unsigned int val); 276 int (*mas_writereg)(int reg, unsigned int val);
277#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 277#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
278 int (*mas_codec_writereg)(int reg, unsigned int val); 278 int (*mas_codec_writereg)(int reg, unsigned int val);
279 int (*mas_codec_readreg)(int reg); 279 int (*mas_codec_readreg)(int reg);
280#endif 280#endif
@@ -311,7 +311,7 @@ struct codec_api {
311 long max_offset, unsigned long last_header); 311 long max_offset, unsigned long last_header);
312 int (*battery_level)(void); 312 int (*battery_level)(void);
313 bool (*battery_level_safe)(void); 313 bool (*battery_level_safe)(void);
314#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 314#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
315 unsigned short (*peak_meter_scale_value)(unsigned short val, 315 unsigned short (*peak_meter_scale_value)(unsigned short val,
316 int meterwidth); 316 int meterwidth);
317 void (*peak_meter_set_use_dbfs)(bool use); 317 void (*peak_meter_set_use_dbfs)(bool use);
@@ -332,7 +332,7 @@ struct codec_api {
332}; 332};
333 333
334/* defined by the codec loader (codec.c) */ 334/* defined by the codec loader (codec.c) */
335#if CONFIG_HWCODEC == MASNONE 335#if CONFIG_CODEC == SWCODEC
336int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap, 336int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap,
337 struct codec_api *api); 337 struct codec_api *api);
338int codec_load_file(const char* codec, struct codec_api *api); 338int codec_load_file(const char* codec, struct codec_api *api);
diff --git a/apps/codecs/lib/SOURCES b/apps/codecs/lib/SOURCES
index 352fedbff9..b0e50172a3 100644
--- a/apps/codecs/lib/SOURCES
+++ b/apps/codecs/lib/SOURCES
@@ -1,4 +1,4 @@
1#if CONFIG_HWCODEC == MASNONE /* software codec platforms */ 1#if CONFIG_CODEC == SWCODEC /* software codec platforms */
2codeclib.c 2codeclib.c
3xxx2wav.c 3xxx2wav.c
4#endif 4#endif
diff --git a/apps/codecs/lib/xxx2wav.c b/apps/codecs/lib/xxx2wav.c
index 66cc8b3bbb..cd09d32450 100644
--- a/apps/codecs/lib/xxx2wav.c
+++ b/apps/codecs/lib/xxx2wav.c
@@ -19,7 +19,7 @@
19 19
20/* Various "helper functions" common to all the xxx2wav decoder plugins */ 20/* Various "helper functions" common to all the xxx2wav decoder plugins */
21 21
22#if (CONFIG_HWCODEC == MASNONE) 22#if (CONFIG_CODEC == SWCODEC)
23/* software codec platforms, not for simulator */ 23/* software codec platforms, not for simulator */
24 24
25#include "codecs.h" 25#include "codecs.h"
@@ -138,4 +138,4 @@ void qsort(void *base, size_t nmemb, size_t size,
138 local_rb->qsort(base,nmemb,size,compar); 138 local_rb->qsort(base,nmemb,size,compar);
139} 139}
140 140
141#endif /* CONFIG_HWCODEC == MASNONE */ 141#endif /* CONFIG_CODEC == SWCODEC */
diff --git a/apps/database.c b/apps/database.c
index 90cdc37f2c..a84baa2a5c 100644
--- a/apps/database.c
+++ b/apps/database.c
@@ -44,7 +44,7 @@
44#include "database.h" 44#include "database.h"
45#include "autoconf.h" 45#include "autoconf.h"
46 46
47#if CONFIG_HWCODEC == MASNONE 47#if CONFIG_CODEC == SWCODEC
48#include "playback.h" 48#include "playback.h"
49#else 49#else
50#include "mpeg.h" 50#include "mpeg.h"
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index b4cd05699c..329ba7d7ab 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -61,7 +61,7 @@
61#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR) 61#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR)
62extern bool pcm_rec_screen(void); 62extern bool pcm_rec_screen(void);
63#endif 63#endif
64#if CONFIG_HWCODEC == MASNONE 64#if CONFIG_CODEC == SWCODEC
65#include "pcmbuf.h" 65#include "pcmbuf.h"
66#include "pcm_playback.h" 66#include "pcm_playback.h"
67#endif 67#endif
@@ -154,7 +154,7 @@ bool dbg_os(void)
154#endif 154#endif
155 155
156#ifdef HAVE_LCD_BITMAP 156#ifdef HAVE_LCD_BITMAP
157#if CONFIG_HWCODEC != MASNONE 157#if CONFIG_CODEC != SWCODEC
158bool dbg_audio_thread(void) 158bool dbg_audio_thread(void)
159{ 159{
160 char buf[32]; 160 char buf[32];
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 31852b1aba..ace89154fc 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -40,14 +40,14 @@
40#define MAX_PLUGIN_LENGTH 32 40#define MAX_PLUGIN_LENGTH 32
41 41
42/* max filetypes (plugins & icons stored here) */ 42/* max filetypes (plugins & icons stored here) */
43#if CONFIG_HWCODEC == MASNONE 43#if CONFIG_CODEC == SWCODEC
44#define MAX_FILETYPES 64 44#define MAX_FILETYPES 64
45#else 45#else
46#define MAX_FILETYPES 32 46#define MAX_FILETYPES 32
47#endif 47#endif
48 48
49/* max exttypes (extensions stored here) */ 49/* max exttypes (extensions stored here) */
50#if CONFIG_HWCODEC == MASNONE 50#if CONFIG_CODEC == SWCODEC
51/* Software codecs require more file extensions */ 51/* Software codecs require more file extensions */
52#define MAX_EXTTYPES 64 52#define MAX_EXTTYPES 64
53#else 53#else
diff --git a/apps/main.c b/apps/main.c
index 55897de5f5..6373920c74 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -61,7 +61,7 @@
61#include "misc.h" 61#include "misc.h"
62#include "database.h" 62#include "database.h"
63 63
64#if (CONFIG_HWCODEC == MASNONE) 64#if (CONFIG_CODEC == SWCODEC)
65#include "pcmbuf.h" 65#include "pcmbuf.h"
66#else 66#else
67#define pcmbuf_init() 67#define pcmbuf_init()
@@ -129,7 +129,7 @@ void init(void)
129 global_settings.mdb_enable, 129 global_settings.mdb_enable,
130 global_settings.superbass); 130 global_settings.superbass);
131 button_clear_queue(); /* Empty the keyboard buffer */ 131 button_clear_queue(); /* Empty the keyboard buffer */
132#if CONFIG_HWCODEC == MASNONE 132#if CONFIG_CODEC == SWCODEC
133 talk_init(); 133 talk_init();
134#endif 134#endif
135} 135}
@@ -264,7 +264,7 @@ void init(void)
264 264
265 /* On software codec platforms we have to init audio before 265 /* On software codec platforms we have to init audio before
266 calling audio_set_buffer_margin(). */ 266 calling audio_set_buffer_margin(). */
267#if (CONFIG_HWCODEC == MASNONE) 267#if (CONFIG_CODEC == SWCODEC)
268 audio_init(); 268 audio_init();
269#endif 269#endif
270 settings_calc_config_sector(); 270 settings_calc_config_sector();
@@ -291,7 +291,7 @@ void init(void)
291 global_settings.mdb_shape, 291 global_settings.mdb_shape,
292 global_settings.mdb_enable, 292 global_settings.mdb_enable,
293 global_settings.superbass); 293 global_settings.superbass);
294#if (CONFIG_HWCODEC == MASNONE) 294#if (CONFIG_CODEC == SWCODEC)
295 sound_settings_apply(); 295 sound_settings_apply();
296#else 296#else
297 audio_init(); 297 audio_init();
diff --git a/apps/playlist.c b/apps/playlist.c
index bc2bd05905..70df8113e0 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1417,7 +1417,7 @@ int playlist_resume(void)
1417 }; 1417 };
1418 1418
1419 /* use mp3 buffer for maximum load speed */ 1419 /* use mp3 buffer for maximum load speed */
1420#if CONFIG_HWCODEC != MASNONE 1420#if CONFIG_CODEC != SWCODEC
1421 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ 1421 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
1422 buflen = (audiobufend - audiobuf); 1422 buflen = (audiobufend - audiobuf);
1423 buffer = audiobuf; 1423 buffer = audiobuf;
@@ -1836,7 +1836,7 @@ int playlist_start(int start_index, int offset)
1836 struct playlist_info* playlist = &current_playlist; 1836 struct playlist_info* playlist = &current_playlist;
1837 1837
1838 playlist->index = start_index; 1838 playlist->index = start_index;
1839#if CONFIG_HWCODEC != MASNONE 1839#if CONFIG_CODEC != SWCODEC
1840 talk_buffer_steal(); /* will use the mp3 buffer */ 1840 talk_buffer_steal(); /* will use the mp3 buffer */
1841#endif 1841#endif
1842 audio_play(offset); 1842 audio_play(offset);
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,
diff --git a/apps/plugin.h b/apps/plugin.h
index 8760162405..839e87af64 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -44,7 +44,7 @@
44#include "mpeg.h" 44#include "mpeg.h"
45#include "audio.h" 45#include "audio.h"
46#include "mp3_playback.h" 46#include "mp3_playback.h"
47#if (HWCODEC == MASNONE) 47#if (HWCODEC == SWCODEC)
48#include "pcm_playback.h" 48#include "pcm_playback.h"
49#endif 49#endif
50#include "settings.h" 50#include "settings.h"
@@ -325,10 +325,10 @@ struct plugin_api {
325 void (*mp3_play_pause)(bool play); 325 void (*mp3_play_pause)(bool play);
326 void (*mp3_play_stop)(void); 326 void (*mp3_play_stop)(void);
327 bool (*mp3_is_playing)(void); 327 bool (*mp3_is_playing)(void);
328#if CONFIG_HWCODEC != MASNONE 328#if CONFIG_CODEC != SWCODEC
329 void (*bitswap)(unsigned char *data, int length); 329 void (*bitswap)(unsigned char *data, int length);
330#endif 330#endif
331#if CONFIG_HWCODEC == MASNONE 331#if CONFIG_CODEC == SWCODEC
332 void (*pcm_play_data)(void (*get_more)(unsigned char** start, long*size)); 332 void (*pcm_play_data)(void (*get_more)(unsigned char** start, long*size));
333 void (*pcm_play_stop)(void); 333 void (*pcm_play_stop)(void);
334 void (*pcm_set_frequency)(unsigned int frequency); 334 void (*pcm_set_frequency)(unsigned int frequency);
@@ -352,20 +352,20 @@ struct plugin_api {
352 struct mp3entry* (*audio_current_track)(void); 352 struct mp3entry* (*audio_current_track)(void);
353 void (*audio_flush_and_reload_tracks)(void); 353 void (*audio_flush_and_reload_tracks)(void);
354 int (*audio_get_file_pos)(void); 354 int (*audio_get_file_pos)(void);
355#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 355#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
356 unsigned long (*mpeg_get_last_header)(void); 356 unsigned long (*mpeg_get_last_header)(void);
357#endif 357#endif
358#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 358#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
359 void (*sound_set_pitch)(int pitch); 359 void (*sound_set_pitch)(int pitch);
360#endif 360#endif
361 361
362 /* MAS communication */ 362 /* MAS communication */
363#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 363#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
364 int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); 364 int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len);
365 int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len); 365 int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len);
366 int (*mas_readreg)(int reg); 366 int (*mas_readreg)(int reg);
367 int (*mas_writereg)(int reg, unsigned int val); 367 int (*mas_writereg)(int reg, unsigned int val);
368#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 368#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
369 int (*mas_codec_writereg)(int reg, unsigned int val); 369 int (*mas_codec_writereg)(int reg, unsigned int val);
370 int (*mas_codec_readreg)(int reg); 370 int (*mas_codec_readreg)(int reg);
371#endif 371#endif
@@ -410,7 +410,7 @@ struct plugin_api {
410 long max_offset, unsigned long last_header); 410 long max_offset, unsigned long last_header);
411 int (*battery_level)(void); 411 int (*battery_level)(void);
412 bool (*battery_level_safe)(void); 412 bool (*battery_level_safe)(void);
413#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 413#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
414 unsigned short (*peak_meter_scale_value)(unsigned short val, 414 unsigned short (*peak_meter_scale_value)(unsigned short val,
415 int meterwidth); 415 int meterwidth);
416 void (*peak_meter_set_use_dbfs)(bool use); 416 void (*peak_meter_set_use_dbfs)(bool use);
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index 1b98967ac1..cf62ee7203 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -66,7 +66,7 @@ nim.c
66alpine_cdc.c 66alpine_cdc.c
67#endif 67#endif
68 68
69#if CONFIG_HWCODEC == MASNONE /* software codec platforms */ 69#if CONFIG_CODEC == SWCODEC /* software codec platforms */
70iriverify.c 70iriverify.c
71wav2wv.c 71wav2wv.c
72midi2wav.c 72midi2wav.c
diff --git a/apps/plugins/oscillograph.c b/apps/plugins/oscillograph.c
index 1512e11389..069ef44247 100644
--- a/apps/plugins/oscillograph.c
+++ b/apps/plugins/oscillograph.c
@@ -20,7 +20,7 @@
20 20
21#ifdef HAVE_LCD_BITMAP 21#ifdef HAVE_LCD_BITMAP
22#ifndef SIMULATOR /* don't want this code in the simulator */ 22#ifndef SIMULATOR /* don't want this code in the simulator */
23#if CONFIG_HWCODEC != MASNONE /* only for MAS-targets */ 23#if CONFIG_CODEC != SWCODEC /* only for MAS-targets */
24 24
25/* The different drawing modes */ 25/* The different drawing modes */
26#define DRAW_MODE_FILLED 0 26#define DRAW_MODE_FILLED 0
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c
index f5e5189e2e..b3b081d861 100644
--- a/apps/plugins/oscilloscope.c
+++ b/apps/plugins/oscilloscope.c
@@ -23,7 +23,7 @@
23#include "plugin.h" 23#include "plugin.h"
24 24
25#ifdef HAVE_LCD_BITMAP /* and also not for the Player */ 25#ifdef HAVE_LCD_BITMAP /* and also not for the Player */
26#if CONFIG_HWCODEC != MASNONE /* only for MAS-targets */ 26#if CONFIG_CODEC != SWCODEC /* only for MAS-targets */
27 27
28/* The different drawing modes */ 28/* The different drawing modes */
29#define DRAW_MODE_FILLED 0 29#define DRAW_MODE_FILLED 0
diff --git a/apps/plugins/rockboy/rbsound.c b/apps/plugins/rockboy/rbsound.c
index 529cf6e733..139c33d037 100644
--- a/apps/plugins/rockboy/rbsound.c
+++ b/apps/plugins/rockboy/rbsound.c
@@ -15,7 +15,7 @@ rcvar_t pcm_exports[] =
15 RCV_END 15 RCV_END
16}; 16};
17 17
18/*#if CONFIG_HWCODEC == MASNONE && !defined(SIMULATOR) 18/*#if CONFIG_CODEC == SWCODEC && !defined(SIMULATOR)
19 * disabled cause it crashes with current audio implementation.. no sound. 19 * disabled cause it crashes with current audio implementation.. no sound.
20 */ 20 */
21#if 0 21#if 0
diff --git a/apps/plugins/splitedit.c b/apps/plugins/splitedit.c
index 9317419c23..35562f99fc 100644
--- a/apps/plugins/splitedit.c
+++ b/apps/plugins/splitedit.c
@@ -269,7 +269,7 @@ static void update_icons(void)
269 LCD_WIDTH/3 + LCD_WIDTH/3 / 2 - BMPWIDTH/2, LCD_HEIGHT - BMPHEIGHT, 269 LCD_WIDTH/3 + LCD_WIDTH/3 / 2 - BMPWIDTH/2, LCD_HEIGHT - BMPHEIGHT,
270 BMPWIDTH, BMPHEIGHT); 270 BMPWIDTH, BMPHEIGHT);
271 271
272#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 272#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
273 /* The scale icon */ 273 /* The scale icon */
274 rb->lcd_mono_bitmap(SCALE_BMP[rb->peak_meter_get_use_dbfs() ? 1 : 0], 274 rb->lcd_mono_bitmap(SCALE_BMP[rb->peak_meter_get_use_dbfs() ? 1 : 0],
275 2 *LCD_WIDTH/3 + LCD_WIDTH/3 / 2 - BMPWIDTH/2, LCD_HEIGHT - BMPHEIGHT, 275 2 *LCD_WIDTH/3 + LCD_WIDTH/3 / 2 - BMPWIDTH/2, LCD_HEIGHT - BMPHEIGHT,
@@ -909,7 +909,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
909 { 909 {
910 /* read volume info */ 910 /* read volume info */
911 unsigned short volume; 911 unsigned short volume;
912#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 912#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
913 volume = rb->mas_codec_readreg(0x0c); 913 volume = rb->mas_codec_readreg(0x0c);
914 volume += rb->mas_codec_readreg(0x0d); 914 volume += rb->mas_codec_readreg(0x0d);
915 volume = volume / 2; 915 volume = volume / 2;
@@ -1074,7 +1074,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
1074 lastx = time_to_xpos(mp3->elapsed); 1074 lastx = time_to_xpos(mp3->elapsed);
1075 break; 1075 break;
1076 1076
1077#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 1077#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
1078#ifdef SPLITEDIT_SPEED100 1078#ifdef SPLITEDIT_SPEED100
1079 case SPLITEDIT_SPEED150: 1079 case SPLITEDIT_SPEED150:
1080 rb->sound_set_pitch(1500); 1080 rb->sound_set_pitch(1500);
@@ -1133,7 +1133,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
1133 break; 1133 break;
1134 1134
1135 case SPLITEDIT_SCALE: 1135 case SPLITEDIT_SCALE:
1136#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 1136#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
1137 rb->peak_meter_set_use_dbfs(!rb->peak_meter_get_use_dbfs()); 1137 rb->peak_meter_set_use_dbfs(!rb->peak_meter_get_use_dbfs());
1138#endif 1138#endif
1139 splitedit_invalidate_osci(); 1139 splitedit_invalidate_osci();
@@ -1202,7 +1202,7 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
1202 } 1202 }
1203 } 1203 }
1204 } 1204 }
1205#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 1205#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
1206#ifdef SPLITEDIT_SPEED100 1206#ifdef SPLITEDIT_SPEED100
1207 rb->sound_set_pitch(1000); /* make sure to reset pitch */ 1207 rb->sound_set_pitch(1000); /* make sure to reset pitch */
1208#endif 1208#endif
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c
index c2db45ed88..80621d2fd3 100644
--- a/apps/plugins/vu_meter.c
+++ b/apps/plugins/vu_meter.c
@@ -17,7 +17,7 @@
17 **************************************************************************/ 17 **************************************************************************/
18#include "plugin.h" 18#include "plugin.h"
19 19
20#if defined(HAVE_LCD_BITMAP) && (CONFIG_HWCODEC != MASNONE) 20#if defined(HAVE_LCD_BITMAP) && (CONFIG_CODEC != SWCODEC)
21 21
22/* variable button definitions */ 22/* variable button definitions */
23#if CONFIG_KEYPAD == RECORDER_PAD 23#if CONFIG_KEYPAD == RECORDER_PAD
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 088cf8e099..2e4cea0704 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -33,11 +33,11 @@
33#include "lang.h" 33#include "lang.h"
34#include "peakmeter.h" 34#include "peakmeter.h"
35 35
36#if CONFIG_HWCODEC == MASNONE 36#if CONFIG_CODEC == SWCODEC
37#include "pcm_playback.h" 37#include "pcm_playback.h"
38#endif 38#endif
39 39
40#if !defined(SIMULATOR) && CONFIG_HWCODEC != MASNONE 40#if !defined(SIMULATOR) && CONFIG_CODEC != SWCODEC
41/* Data source */ 41/* Data source */
42static int pm_src_left = MAS_REG_DQPEAK_L; 42static int pm_src_left = MAS_REG_DQPEAK_L;
43static int pm_src_right = MAS_REG_DQPEAK_R; 43static int pm_src_right = MAS_REG_DQPEAK_R;
@@ -490,7 +490,7 @@ void peak_meter_playback(bool playback)
490{ 490{
491#ifdef SIMULATOR 491#ifdef SIMULATOR
492 (void)playback; 492 (void)playback;
493#elif CONFIG_HWCODEC == MASNONE 493#elif CONFIG_CODEC == SWCODEC
494/* FIX: not for the sw-based ones yes */ 494/* FIX: not for the sw-based ones yes */
495 (void)playback; 495 (void)playback;
496#else 496#else
@@ -530,7 +530,7 @@ void peak_meter_peek(void)
530#ifdef SIMULATOR 530#ifdef SIMULATOR
531 pm_cur_left = left = 8000; 531 pm_cur_left = left = 8000;
532 pm_cur_right = right = 9000; 532 pm_cur_right = right = 9000;
533#elif CONFIG_HWCODEC == MASNONE 533#elif CONFIG_CODEC == SWCODEC
534 pcm_calculate_peaks(&pm_cur_left, &pm_cur_right); 534 pcm_calculate_peaks(&pm_cur_left, &pm_cur_right);
535 left = pm_cur_left; 535 left = pm_cur_left;
536 right = pm_cur_right; 536 right = pm_cur_right;
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index a0280ecf1f..68d36dddd3 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -55,7 +55,7 @@
55 55
56#ifdef CONFIG_TUNER 56#ifdef CONFIG_TUNER
57 57
58#if CONFIG_HWCODEC == MASNONE 58#if CONFIG_CODEC == SWCODEC
59#include "uda1380.h" 59#include "uda1380.h"
60#include "pcm_record.h" 60#include "pcm_record.h"
61#endif 61#endif
@@ -213,14 +213,14 @@ bool radio_screen(void)
213 radio_load_presets(); 213 radio_load_presets();
214 214
215#ifndef SIMULATOR 215#ifndef SIMULATOR
216#if CONFIG_HWCODEC != MASNONE 216#if CONFIG_CODEC != SWCODEC
217 if(rec_create_directory() > 0) 217 if(rec_create_directory() > 0)
218 have_recorded = true; 218 have_recorded = true;
219#endif 219#endif
220 220
221 audio_stop(); 221 audio_stop();
222 222
223#if CONFIG_HWCODEC != MASNONE 223#if CONFIG_CODEC != SWCODEC
224 mpeg_init_recording(); 224 mpeg_init_recording();
225 225
226 sound_settings_apply(); 226 sound_settings_apply();
@@ -497,7 +497,7 @@ bool radio_screen(void)
497 } 497 }
498 498
499#ifndef SIMULATOR 499#ifndef SIMULATOR
500#if CONFIG_HWCODEC != MASNONE 500#if CONFIG_CODEC != SWCODEC
501 seconds = mpeg_recorded_time() / HZ; 501 seconds = mpeg_recorded_time() / HZ;
502#endif 502#endif
503#endif 503#endif
@@ -580,7 +580,7 @@ bool radio_screen(void)
580 } 580 }
581 } 581 }
582 582
583#if CONFIG_HWCODEC != MASNONE 583#if CONFIG_CODEC != SWCODEC
584 audio_init_playback(); 584 audio_init_playback();
585#endif 585#endif
586 586
@@ -588,7 +588,7 @@ bool radio_screen(void)
588 588
589 if(keep_playing) 589 if(keep_playing)
590 { 590 {
591#if CONFIG_HWCODEC != MASNONE 591#if CONFIG_CODEC != SWCODEC
592 /* Enable the Left and right A/D Converter */ 592 /* Enable the Left and right A/D Converter */
593 mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN), 593 mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
594 sound_default(SOUND_RIGHT_GAIN), false); 594 sound_default(SOUND_RIGHT_GAIN), false);
@@ -599,7 +599,7 @@ bool radio_screen(void)
599 else 599 else
600 { 600 {
601 radio_stop(); 601 radio_stop();
602#if CONFIG_HWCODEC == MASNONE 602#if CONFIG_CODEC == SWCODEC
603 pcmrec_set_mux(0); /* Line In */ 603 pcmrec_set_mux(0); /* Line In */
604#endif 604#endif
605 } 605 }
@@ -880,7 +880,7 @@ bool handle_radio_presets(void)
880} 880}
881 881
882#ifndef SIMULATOR 882#ifndef SIMULATOR
883#if CONFIG_HWCODEC != MASNONE 883#if CONFIG_CODEC != SWCODEC
884static bool fm_recording_settings(void) 884static bool fm_recording_settings(void)
885{ 885{
886 bool ret; 886 bool ret;
@@ -959,7 +959,7 @@ bool radio_menu(void)
959#endif 959#endif
960 { monomode_menu_string , toggle_mono_mode }, 960 { monomode_menu_string , toggle_mono_mode },
961 { ID2P(LANG_SOUND_SETTINGS) , sound_menu }, 961 { ID2P(LANG_SOUND_SETTINGS) , sound_menu },
962#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) 962#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
963 { ID2P(LANG_RECORDING_SETTINGS) , fm_recording_settings}, 963 { ID2P(LANG_RECORDING_SETTINGS) , fm_recording_settings},
964#endif 964#endif
965 }; 965 };
diff --git a/apps/screens.c b/apps/screens.c
index 5f949efda8..10e1cdd188 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -1307,7 +1307,7 @@ int draw_id3_item(int line, int top, int header, const char* body)
1307 return line + 2; 1307 return line + 2;
1308} 1308}
1309 1309
1310#if CONFIG_HWCODEC == MASNONE 1310#if CONFIG_CODEC == SWCODEC
1311#define ID3_ITEMS 13 1311#define ID3_ITEMS 13
1312#else 1312#else
1313#define ID3_ITEMS 11 1313#define ID3_ITEMS 11
@@ -1401,7 +1401,7 @@ bool browse_id3(void)
1401 snprintf(buf, sizeof(buf), "%d Hz", id3->frequency); 1401 snprintf(buf, sizeof(buf), "%d Hz", id3->frequency);
1402 line = draw_id3_item(line, top, LANG_ID3_FRECUENCY, buf); 1402 line = draw_id3_item(line, top, LANG_ID3_FRECUENCY, buf);
1403 1403
1404#if CONFIG_HWCODEC == MASNONE 1404#if CONFIG_CODEC == SWCODEC
1405 line = draw_id3_item(line, top, LANG_ID3_TRACK_GAIN, 1405 line = draw_id3_item(line, top, LANG_ID3_TRACK_GAIN,
1406 id3->track_gain_string); 1406 id3->track_gain_string);
1407 1407
diff --git a/apps/settings.c b/apps/settings.c
index 6fd2ec64bf..6649ce3f89 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -66,14 +66,14 @@
66#include "version.h" 66#include "version.h"
67#include "rtc.h" 67#include "rtc.h"
68#include "sound.h" 68#include "sound.h"
69#if CONFIG_HWCODEC == MAS3507D 69#if CONFIG_CODEC == MAS3507D
70void dac_line_in(bool enable); 70void dac_line_in(bool enable);
71#endif 71#endif
72struct user_settings global_settings; 72struct user_settings global_settings;
73#ifdef HAVE_RECORDING 73#ifdef HAVE_RECORDING
74const char rec_base_directory[] = REC_BASE_DIR; 74const char rec_base_directory[] = REC_BASE_DIR;
75#endif 75#endif
76#if CONFIG_HWCODEC == MASNONE 76#if CONFIG_CODEC == SWCODEC
77#include "pcmbuf.h" 77#include "pcmbuf.h"
78#include "pcm_playback.h" 78#include "pcm_playback.h"
79#endif 79#endif
@@ -183,14 +183,14 @@ static const struct bit_entry rtc_bits[] =
183 /* sound */ 183 /* sound */
184 {7, S_O(volume), 70, "volume", NULL }, /* 0...100 */ 184 {7, S_O(volume), 70, "volume", NULL }, /* 0...100 */
185 {8 | SIGNED, S_O(balance), 0, "balance", NULL }, /* -100...100 */ 185 {8 | SIGNED, S_O(balance), 0, "balance", NULL }, /* -100...100 */
186#if CONFIG_HWCODEC != MASNONE /* any MAS */ 186#if CONFIG_CODEC != SWCODEC /* any MAS */
187 {5 | SIGNED, S_O(bass), 0, "bass", NULL }, /* -15..+15 / -12..+12 */ 187 {5 | SIGNED, S_O(bass), 0, "bass", NULL }, /* -15..+15 / -12..+12 */
188 {5 | SIGNED, S_O(treble), 0, "treble", NULL }, /* -15..+15 / -12..+12 */ 188 {5 | SIGNED, S_O(treble), 0, "treble", NULL }, /* -15..+15 / -12..+12 */
189#elif defined HAVE_UDA1380 189#elif defined HAVE_UDA1380
190 {5, S_O(bass), 0, "bass", NULL }, /* 0..+24 */ 190 {5, S_O(bass), 0, "bass", NULL }, /* 0..+24 */
191 {3, S_O(treble), 0, "treble", NULL }, /* 0..+6 */ 191 {3, S_O(treble), 0, "treble", NULL }, /* 0..+6 */
192#endif 192#endif
193#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 193#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
194 {5, S_O(loudness), 0, "loudness", NULL }, /* 0...17 */ 194 {5, S_O(loudness), 0, "loudness", NULL }, /* 0...17 */
195 {3, S_O(avc), 0, "auto volume", "off,20ms,2,4,8" }, 195 {3, S_O(avc), 0, "auto volume", "off,20ms,2,4,8" },
196 {1, S_O(superbass), false, "superbass", off_on }, 196 {1, S_O(superbass), false, "superbass", off_on },
@@ -312,7 +312,7 @@ static const struct bit_entry hd_bits[] =
312 {4, S_O(ff_rewind_min_step), FF_REWIND_1000, 312 {4, S_O(ff_rewind_min_step), FF_REWIND_1000,
313 "scan min step", "1,2,3,4,5,6,8,10,15,20,25,30,45,60" }, 313 "scan min step", "1,2,3,4,5,6,8,10,15,20,25,30,45,60" },
314 {4, S_O(ff_rewind_accel), 3, "scan accel", NULL }, 314 {4, S_O(ff_rewind_accel), 3, "scan accel", NULL },
315#if CONFIG_HWCODEC == MASNONE 315#if CONFIG_CODEC == SWCODEC
316 {3, S_O(buffer_margin), 0, "antiskip", 316 {3, S_O(buffer_margin), 0, "antiskip",
317 "5s,15s,30s,1min,2min,3min,5min,10min" }, 317 "5s,15s,30s,1min,2min,3min,5min,10min" },
318#else 318#else
@@ -356,7 +356,7 @@ static const struct bit_entry hd_bits[] =
356 {7, S_O(peak_meter_min), 60, "peak meter min", NULL }, /* 0...100 */ 356 {7, S_O(peak_meter_min), 60, "peak meter min", NULL }, /* 0...100 */
357 {7, S_O(peak_meter_max), 0, "peak meter max", NULL }, /* 0...100 */ 357 {7, S_O(peak_meter_max), 0, "peak meter max", NULL }, /* 0...100 */
358#endif 358#endif
359#if CONFIG_HWCODEC == MAS3587F 359#if CONFIG_CODEC == MAS3587F
360 /* recording */ 360 /* recording */
361 {1, S_O(rec_editable), false, "editable recordings", off_on }, 361 {1, S_O(rec_editable), false, "editable recordings", off_on },
362 {4, S_O(rec_timesplit), 0, "rec timesplit", /* 0...15 */ 362 {4, S_O(rec_timesplit), 0, "rec timesplit", /* 0...15 */
@@ -376,14 +376,14 @@ static const struct bit_entry hd_bits[] =
376 {1, S_O(rec_directory), 0, /* rec_base_directory */ 376 {1, S_O(rec_directory), 0, /* rec_base_directory */
377 "rec directory", REC_BASE_DIR ",current" }, 377 "rec directory", REC_BASE_DIR ",current" },
378#endif 378#endif
379#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 379#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
380 {7, S_O(mdb_strength), 0, "mdb strength", NULL}, 380 {7, S_O(mdb_strength), 0, "mdb strength", NULL},
381 {7, S_O(mdb_harmonics), 0, "mdb harmonics", NULL}, 381 {7, S_O(mdb_harmonics), 0, "mdb harmonics", NULL},
382 {9, S_O(mdb_center), 0, "mdb center", NULL}, 382 {9, S_O(mdb_center), 0, "mdb center", NULL},
383 {9, S_O(mdb_shape), 0, "mdb shape", NULL}, 383 {9, S_O(mdb_shape), 0, "mdb shape", NULL},
384 {1, S_O(mdb_enable), 0, "mdb enable", off_on}, 384 {1, S_O(mdb_enable), 0, "mdb enable", off_on},
385#endif 385#endif
386#if CONFIG_HWCODEC == MAS3507D 386#if CONFIG_CODEC == MAS3507D
387 {1, S_O(line_in), false, "line in", off_on }, 387 {1, S_O(line_in), false, "line in", off_on },
388#endif 388#endif
389 /* voice */ 389 /* voice */
@@ -407,7 +407,7 @@ static const struct bit_entry hd_bits[] =
407 {4, S_O(rec_trigger_mode ), 1, "trigger mode", "off,no rearm,rearm"}, 407 {4, S_O(rec_trigger_mode ), 1, "trigger mode", "off,no rearm,rearm"},
408#endif 408#endif
409 409
410#if CONFIG_HWCODEC == MASNONE 410#if CONFIG_CODEC == SWCODEC
411 {3, S_O(crossfade_duration), 0, "crossfade duration", "1s,2s,4s,6s,8s,10s,12s,14s"}, 411 {3, S_O(crossfade_duration), 0, "crossfade duration", "1s,2s,4s,6s,8s,10s,12s,14s"},
412#endif 412#endif
413 413
@@ -425,7 +425,7 @@ static const struct bit_entry hd_bits[] =
425 {1, S_O(next_folder), false, "move to next folder", off_on }, 425 {1, S_O(next_folder), false, "move to next folder", off_on },
426 {1, S_O(runtimedb), false, "gather runtime data", off_on }, 426 {1, S_O(runtimedb), false, "gather runtime data", off_on },
427 427
428#if CONFIG_HWCODEC == MASNONE 428#if CONFIG_CODEC == SWCODEC
429 {2, S_O(crossfade), 0, "crossfade type", "off,crossfade,mix"}, 429 {2, S_O(crossfade), 0, "crossfade type", "off,crossfade,mix"},
430 {1, S_O(replaygain), false, "replaygain", off_on }, 430 {1, S_O(replaygain), false, "replaygain", off_on },
431 {1, S_O(replaygain_track), false, "replaygain type", "track,album" }, 431 {1, S_O(replaygain_track), false, "replaygain type", "track,album" },
@@ -776,7 +776,7 @@ void sound_settings_apply(void)
776 sound_set(SOUND_VOLUME, global_settings.volume); 776 sound_set(SOUND_VOLUME, global_settings.volume);
777 sound_set(SOUND_CHANNELS, global_settings.channel_config); 777 sound_set(SOUND_CHANNELS, global_settings.channel_config);
778 sound_set(SOUND_STEREO_WIDTH, global_settings.stereo_width); 778 sound_set(SOUND_STEREO_WIDTH, global_settings.stereo_width);
779#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 779#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
780 sound_set(SOUND_LOUDNESS, global_settings.loudness); 780 sound_set(SOUND_LOUDNESS, global_settings.loudness);
781 sound_set(SOUND_AVC, global_settings.avc); 781 sound_set(SOUND_AVC, global_settings.avc);
782 sound_set(SOUND_MDB_STRENGTH, global_settings.mdb_strength); 782 sound_set(SOUND_MDB_STRENGTH, global_settings.mdb_strength);
@@ -811,7 +811,7 @@ void settings_apply(void)
811 backlight_set_fade_out(global_settings.backlight_fade_out); 811 backlight_set_fade_out(global_settings.backlight_fade_out);
812#endif 812#endif
813 ata_spindown(global_settings.disk_spindown); 813 ata_spindown(global_settings.disk_spindown);
814#if CONFIG_HWCODEC == MAS3507D 814#if CONFIG_CODEC == MAS3507D
815 dac_line_in(global_settings.line_in); 815 dac_line_in(global_settings.line_in);
816#endif 816#endif
817#ifdef HAVE_ATA_POWER_OFF 817#ifdef HAVE_ATA_POWER_OFF
@@ -872,7 +872,7 @@ void settings_apply(void)
872 talk_init(); /* use voice of same language */ 872 talk_init(); /* use voice of same language */
873 } 873 }
874 874
875#if CONFIG_HWCODEC == MASNONE 875#if CONFIG_CODEC == SWCODEC
876 audio_set_crossfade(global_settings.crossfade); 876 audio_set_crossfade(global_settings.crossfade);
877#endif 877#endif
878 878
diff --git a/apps/settings.h b/apps/settings.h
index c59fe47532..8387fe02a8 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -154,7 +154,7 @@ struct user_settings
154 bool mdb_enable; /* true/false */ 154 bool mdb_enable; /* true/false */
155 bool superbass; /* true/false */ 155 bool superbass; /* true/false */
156 156
157#if CONFIG_HWCODEC == MASNONE 157#if CONFIG_CODEC == SWCODEC
158 int crossfade; 158 int crossfade;
159 int crossfade_duration; 159 int crossfade_duration;
160#endif 160#endif
@@ -330,7 +330,7 @@ struct user_settings
330 bool next_folder; /* move to next folder */ 330 bool next_folder; /* move to next folder */
331 bool runtimedb; /* runtime database active? */ 331 bool runtimedb; /* runtime database active? */
332 332
333#if CONFIG_HWCODEC == MASNONE 333#if CONFIG_CODEC == SWCODEC
334 bool replaygain; /* enable replaygain */ 334 bool replaygain; /* enable replaygain */
335 bool replaygain_track; /* true for track gain, false for album gain */ 335 bool replaygain_track; /* true for track gain, false for album gain */
336 bool replaygain_noclip; /* scale to prevent clips */ 336 bool replaygain_noclip; /* scale to prevent clips */
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index bbbeca3683..a614723ca5 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -54,7 +54,7 @@
54#include "peakmeter.h" 54#include "peakmeter.h"
55#endif 55#endif
56#include "lang.h" 56#include "lang.h"
57#if CONFIG_HWCODEC == MAS3507D 57#if CONFIG_CODEC == MAS3507D
58void dac_line_in(bool enable); 58void dac_line_in(bool enable);
59#endif 59#endif
60#ifdef HAVE_ALARM_MOD 60#ifdef HAVE_ALARM_MOD
@@ -65,7 +65,7 @@ void dac_line_in(bool enable);
65#include "lcd-remote.h" 65#include "lcd-remote.h"
66#endif 66#endif
67 67
68#if CONFIG_HWCODEC == MASNONE 68#if CONFIG_CODEC == SWCODEC
69#include "pcmbuf.h" 69#include "pcmbuf.h"
70#include "pcm_playback.h" 70#include "pcm_playback.h"
71#include "dsp.h" 71#include "dsp.h"
@@ -879,7 +879,7 @@ static bool poweroff(void)
879#endif /* HAVE_ATA_POWEROFF */ 879#endif /* HAVE_ATA_POWEROFF */
880#endif /* !HAVE_MMC */ 880#endif /* !HAVE_MMC */
881 881
882#if CONFIG_HWCODEC == MAS3507D 882#if CONFIG_CODEC == MAS3507D
883static bool line_in(void) 883static bool line_in(void)
884{ 884{
885 bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in); 885 bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in);
@@ -902,7 +902,7 @@ static bool max_files_in_playlist(void)
902 NULL, 1000, 1000, 20000, NULL ); 902 NULL, 1000, 1000, 20000, NULL );
903} 903}
904 904
905#if CONFIG_HWCODEC == MASNONE 905#if CONFIG_CODEC == SWCODEC
906static bool buffer_margin(void) 906static bool buffer_margin(void)
907{ 907{
908 int ret; 908 int ret;
@@ -1111,7 +1111,7 @@ static bool id3_order(void)
1111 mpeg_id3_options); 1111 mpeg_id3_options);
1112} 1112}
1113 1113
1114#if CONFIG_HWCODEC == MASNONE 1114#if CONFIG_CODEC == SWCODEC
1115static bool crossfade(void) 1115static bool crossfade(void)
1116{ 1116{
1117 static const struct opt_items names[] = { 1117 static const struct opt_items names[] = {
@@ -1172,7 +1172,7 @@ static bool runtimedb(void)
1172 return rc; 1172 return rc;
1173} 1173}
1174 1174
1175#if CONFIG_HWCODEC == MASNONE 1175#if CONFIG_CODEC == SWCODEC
1176static bool replaygain(void) 1176static bool replaygain(void)
1177{ 1177{
1178 bool result = set_bool(str(LANG_REPLAYGAIN_ENABLE), 1178 bool result = set_bool(str(LANG_REPLAYGAIN_ENABLE),
@@ -1270,7 +1270,7 @@ static bool playback_settings_menu(void)
1270 { ID2P(LANG_WIND_MENU), ff_rewind_settings_menu }, 1270 { ID2P(LANG_WIND_MENU), ff_rewind_settings_menu },
1271 { ID2P(LANG_MP3BUFFER_MARGIN), buffer_margin }, 1271 { ID2P(LANG_MP3BUFFER_MARGIN), buffer_margin },
1272 { ID2P(LANG_FADE_ON_STOP), set_fade_on_stop }, 1272 { ID2P(LANG_FADE_ON_STOP), set_fade_on_stop },
1273#if CONFIG_HWCODEC == MASNONE 1273#if CONFIG_CODEC == SWCODEC
1274 { ID2P(LANG_CROSSFADE), crossfade }, 1274 { ID2P(LANG_CROSSFADE), crossfade },
1275 { ID2P(LANG_CROSSFADE_DURATION), crossfade_duration }, 1275 { ID2P(LANG_CROSSFADE_DURATION), crossfade_duration },
1276 { ID2P(LANG_REPLAYGAIN), replaygain_settings_menu }, 1276 { ID2P(LANG_REPLAYGAIN), replaygain_settings_menu },
@@ -1654,7 +1654,7 @@ static bool system_settings_menu(void)
1654 { ID2P(LANG_ALARM_MOD_ALARM_MENU), alarm_screen }, 1654 { ID2P(LANG_ALARM_MOD_ALARM_MENU), alarm_screen },
1655#endif 1655#endif
1656 { ID2P(LANG_LIMITS_MENU), limits_settings_menu }, 1656 { ID2P(LANG_LIMITS_MENU), limits_settings_menu },
1657#if CONFIG_HWCODEC == MAS3507D 1657#if CONFIG_CODEC == MAS3507D
1658 { ID2P(LANG_LINE_IN), line_in }, 1658 { ID2P(LANG_LINE_IN), line_in },
1659#endif 1659#endif
1660#ifdef HAVE_CHARGING 1660#ifdef HAVE_CHARGING
diff --git a/apps/sound_menu.c b/apps/sound_menu.c
index 0c298b091f..0fcf79492c 100644
--- a/apps/sound_menu.c
+++ b/apps/sound_menu.c
@@ -38,7 +38,7 @@
38#include "talk.h" 38#include "talk.h"
39#include "misc.h" 39#include "misc.h"
40#include "sound.h" 40#include "sound.h"
41#if CONFIG_HWCODEC == MAS3587F 41#if CONFIG_CODEC == MAS3587F
42#include "peakmeter.h" 42#include "peakmeter.h"
43#include "mas.h" 43#include "mas.h"
44#endif 44#endif
@@ -171,7 +171,7 @@ static bool treble(void)
171 return set_sound(str(LANG_TREBLE), &global_settings.treble, SOUND_TREBLE); 171 return set_sound(str(LANG_TREBLE), &global_settings.treble, SOUND_TREBLE);
172} 172}
173 173
174#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 174#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
175static bool loudness(void) 175static bool loudness(void)
176{ 176{
177 return set_sound(str(LANG_LOUDNESS), &global_settings.loudness, 177 return set_sound(str(LANG_LOUDNESS), &global_settings.loudness,
@@ -421,7 +421,7 @@ bool sound_menu(void)
421 { ID2P(LANG_BALANCE), balance }, 421 { ID2P(LANG_BALANCE), balance },
422 { ID2P(LANG_CHANNEL_MENU), chanconf }, 422 { ID2P(LANG_CHANNEL_MENU), chanconf },
423 { ID2P(LANG_STEREO_WIDTH), stereo_width }, 423 { ID2P(LANG_STEREO_WIDTH), stereo_width },
424#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 424#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
425 { ID2P(LANG_LOUDNESS), loudness }, 425 { ID2P(LANG_LOUDNESS), loudness },
426 { ID2P(LANG_AUTOVOL), avc }, 426 { ID2P(LANG_AUTOVOL), avc },
427 { ID2P(LANG_SUPERBASS), superbass }, 427 { ID2P(LANG_SUPERBASS), superbass },
@@ -454,7 +454,7 @@ enum trigger_menu_option
454 TRIG_OPTION_COUNT, 454 TRIG_OPTION_COUNT,
455}; 455};
456 456
457#if !defined(SIMULATOR) && CONFIG_HWCODEC == MAS3587F 457#if !defined(SIMULATOR) && CONFIG_CODEC == MAS3587F
458static char* create_thres_str(int threshold) 458static char* create_thres_str(int threshold)
459{ 459{
460 static char retval[6]; 460 static char retval[6];
@@ -846,7 +846,7 @@ bool recording_menu(bool no_source)
846 items[i++].function = recdirectory; 846 items[i++].function = recdirectory;
847 items[i].desc = ID2P(LANG_RECORD_STARTUP); 847 items[i].desc = ID2P(LANG_RECORD_STARTUP);
848 items[i++].function = reconstartup; 848 items[i++].function = reconstartup;
849#if !defined(SIMULATOR) && CONFIG_HWCODEC == MAS3587F 849#if !defined(SIMULATOR) && CONFIG_CODEC == MAS3587F
850 items[i].desc = str(LANG_RECORD_TRIGGER); 850 items[i].desc = str(LANG_RECORD_TRIGGER);
851 items[i++].function = rectrigger; 851 items[i++].function = rectrigger;
852#endif 852#endif
diff --git a/apps/status.c b/apps/status.c
index b980c4d3eb..ca4b21833e 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -106,7 +106,7 @@ int current_playmode(void)
106 else 106 else
107 return STATUS_PLAY; 107 return STATUS_PLAY;
108 } 108 }
109#if CONFIG_HWCODEC == MAS3587F 109#if CONFIG_CODEC == MAS3587F
110 else 110 else
111 { 111 {
112 if(audio_stat & AUDIO_STATUS_RECORD) 112 if(audio_stat & AUDIO_STATUS_RECORD)
diff --git a/apps/talk.c b/apps/talk.c
index 3e6bdb934a..0904ecd2c3 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -34,7 +34,7 @@
34#include "id3.h" 34#include "id3.h"
35#include "logf.h" 35#include "logf.h"
36#include "bitswap.h" 36#include "bitswap.h"
37#if CONFIG_HWCODEC == MASNONE 37#if CONFIG_CODEC == SWCODEC
38#include "playback.h" 38#include "playback.h"
39#endif 39#endif
40 40
@@ -148,7 +148,7 @@ static void load_voicefile(void)
148 int load_size; 148 int load_size;
149 int got_size; 149 int got_size;
150 int file_size; 150 int file_size;
151#if CONFIG_HWCODEC == MASNONE 151#if CONFIG_CODEC == SWCODEC
152 int length, i; 152 int length, i;
153 unsigned char *buf, temp; 153 unsigned char *buf, temp;
154#endif 154#endif
@@ -205,7 +205,7 @@ static void load_voicefile(void)
205#endif 205#endif
206 206
207 /* Do a bitswap as necessary. */ 207 /* Do a bitswap as necessary. */
208#if CONFIG_HWCODEC == MASNONE 208#if CONFIG_CODEC == SWCODEC
209 logf("Bitswapping voice file."); 209 logf("Bitswapping voice file.");
210 cpu_boost(true); 210 cpu_boost(true);
211 buf = (unsigned char *)(&p_voicefile->index) + 211 buf = (unsigned char *)(&p_voicefile->index) +
@@ -261,7 +261,7 @@ static void mp3_callback(unsigned char** start, int* size)
261 261
262 if (queue[queue_read].len > 0) /* current clip not finished? */ 262 if (queue[queue_read].len > 0) /* current clip not finished? */
263 { /* feed the next 64K-1 chunk */ 263 { /* feed the next 64K-1 chunk */
264#if CONFIG_HWCODEC != MASNONE 264#if CONFIG_CODEC != SWCODEC
265 sent = MIN(queue[queue_read].len, 0xFFFF); 265 sent = MIN(queue[queue_read].len, 0xFFFF);
266#else 266#else
267 sent = queue[queue_read].len; 267 sent = queue[queue_read].len;
@@ -279,7 +279,7 @@ re_check:
279 279
280 if (QUEUE_LEVEL) /* queue is not empty? */ 280 if (QUEUE_LEVEL) /* queue is not empty? */
281 { /* start next clip */ 281 { /* start next clip */
282#if CONFIG_HWCODEC != MASNONE 282#if CONFIG_CODEC != SWCODEC
283 sent = MIN(queue[queue_read].len, 0xFFFF); 283 sent = MIN(queue[queue_read].len, 0xFFFF);
284#else 284#else
285 sent = queue[queue_read].len; 285 sent = queue[queue_read].len;
@@ -393,7 +393,7 @@ static int queue_clip(unsigned char* buf, long size, bool enqueue)
393 if (queue_level == 0) 393 if (queue_level == 0)
394 { /* queue was empty, we have to do the initial start */ 394 { /* queue was empty, we have to do the initial start */
395 p_lastclip = buf; 395 p_lastclip = buf;
396#if CONFIG_HWCODEC != MASNONE 396#if CONFIG_CODEC != SWCODEC
397 sent = MIN(size, 0xFFFF); /* DMA can do no more */ 397 sent = MIN(size, 0xFFFF); /* DMA can do no more */
398#else 398#else
399 sent = size; 399 sent = size;
@@ -485,7 +485,7 @@ void talk_init(void)
485 if (has_voicefile) 485 if (has_voicefile)
486 { 486 {
487 voicefile_size = filesize(filehandle); 487 voicefile_size = filesize(filehandle);
488#if CONFIG_HWCODEC == MASNONE 488#if CONFIG_CODEC == SWCODEC
489 voice_init(); 489 voice_init();
490#endif 490#endif
491 close(filehandle); /* close again, this was just to detect presence */ 491 close(filehandle); /* close again, this was just to detect presence */
@@ -519,7 +519,7 @@ int talk_id(long id, bool enqueue)
519 unsigned char* clipbuf; 519 unsigned char* clipbuf;
520 int unit; 520 int unit;
521 521
522#if CONFIG_HWCODEC != MASNONE 522#if CONFIG_CODEC != SWCODEC
523 if (audio_status()) /* busy, buffer in use */ 523 if (audio_status()) /* busy, buffer in use */
524 return -1; 524 return -1;
525#endif 525#endif
@@ -586,7 +586,7 @@ int talk_file(const char* filename, bool enqueue)
586 586
587 if (size) 587 if (size)
588 { 588 {
589#if CONFIG_HWCODEC != MASNONE 589#if CONFIG_CODEC != SWCODEC
590 bitswap(p_thumbnail, size); 590 bitswap(p_thumbnail, size);
591#endif 591#endif
592 queue_clip(p_thumbnail, size, enqueue); 592 queue_clip(p_thumbnail, size, enqueue);
@@ -603,7 +603,7 @@ int talk_number(long n, bool enqueue)
603 int level = 0; /* mille count */ 603 int level = 0; /* mille count */
604 long mil = 1000000000; /* highest possible "-illion" */ 604 long mil = 1000000000; /* highest possible "-illion" */
605 605
606#if CONFIG_HWCODEC != MASNONE 606#if CONFIG_CODEC != SWCODEC
607 if (audio_status()) /* busy, buffer in use */ 607 if (audio_status()) /* busy, buffer in use */
608 return -1; 608 return -1;
609#endif 609#endif
@@ -684,7 +684,7 @@ int talk_value(long n, int unit, bool enqueue)
684 VOICE_HERTZ, 684 VOICE_HERTZ,
685 }; 685 };
686 686
687#if CONFIG_HWCODEC != MASNONE 687#if CONFIG_CODEC != SWCODEC
688 if (audio_status()) /* busy, buffer in use */ 688 if (audio_status()) /* busy, buffer in use */
689 return -1; 689 return -1;
690#endif 690#endif
@@ -718,7 +718,7 @@ int talk_spell(const char* spell, bool enqueue)
718{ 718{
719 char c; /* currently processed char */ 719 char c; /* currently processed char */
720 720
721#if CONFIG_HWCODEC != MASNONE 721#if CONFIG_CODEC != SWCODEC
722 if (audio_status()) /* busy, buffer in use */ 722 if (audio_status()) /* busy, buffer in use */
723 return -1; 723 return -1;
724#endif 724#endif
diff --git a/apps/tree.c b/apps/tree.c
index 5e0d63435b..8746145154 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -71,7 +71,7 @@ const struct filetype filetypes[] = {
71 { ".mp3", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, 71 { ".mp3", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA },
72 { ".mp2", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, 72 { ".mp2", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA },
73 { ".mpa", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, 73 { ".mpa", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA },
74#if CONFIG_HWCODEC == MASNONE 74#if CONFIG_CODEC == SWCODEC
75 /* Temporary hack to allow playlist creation */ 75 /* Temporary hack to allow playlist creation */
76 { ".mp1", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, 76 { ".mp1", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA },
77 { ".ogg", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, 77 { ".ogg", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA },