diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-17 00:01:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 8cb555460ff79e636a7907fb2589e16db98c8600 (patch) | |
tree | 930a3878c7641c9ce045b24f0ade1309e36d5806 /apps/debug_menu.c | |
parent | 0c4f89370d05056faa789aa9cabcccc4e509fb9f (diff) | |
download | rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.tar.gz rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.zip |
[3/4] Completely remove HWCODEC support
'swcodec' is now always set (and recording_swcodec for recording-capable
units) in feature.txt so the manual and language strings don't need to
all be fixed up.
Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 8913558e6c..92451f284c 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include "system.h" | 37 | #include "system.h" |
38 | #include "font.h" | 38 | #include "font.h" |
39 | #include "audio.h" | 39 | #include "audio.h" |
40 | #include "mp3_playback.h" | ||
41 | #include "settings.h" | 40 | #include "settings.h" |
42 | #include "list.h" | 41 | #include "list.h" |
43 | #include "statusbar.h" | 42 | #include "statusbar.h" |
@@ -88,14 +87,12 @@ | |||
88 | #endif | 87 | #endif |
89 | #include "logfdisp.h" | 88 | #include "logfdisp.h" |
90 | #include "core_alloc.h" | 89 | #include "core_alloc.h" |
91 | #if CONFIG_CODEC == SWCODEC | ||
92 | #include "pcmbuf.h" | 90 | #include "pcmbuf.h" |
93 | #include "buffering.h" | 91 | #include "buffering.h" |
94 | #include "playback.h" | 92 | #include "playback.h" |
95 | #if defined(HAVE_SPDIF_OUT) || defined(HAVE_SPDIF_IN) | 93 | #if defined(HAVE_SPDIF_OUT) || defined(HAVE_SPDIF_IN) |
96 | #include "spdif.h" | 94 | #include "spdif.h" |
97 | #endif | 95 | #endif |
98 | #endif | ||
99 | #ifdef IRIVER_H300_SERIES | 96 | #ifdef IRIVER_H300_SERIES |
100 | #include "pcf50606.h" /* for pcf50606_read */ | 97 | #include "pcf50606.h" /* for pcf50606_read */ |
101 | #endif | 98 | #endif |
@@ -304,48 +301,6 @@ static bool dbg_cpuinfo(void) | |||
304 | #endif | 301 | #endif |
305 | 302 | ||
306 | #ifdef HAVE_LCD_BITMAP | 303 | #ifdef HAVE_LCD_BITMAP |
307 | #if CONFIG_CODEC != SWCODEC | ||
308 | #ifndef SIMULATOR | ||
309 | static bool dbg_audio_thread(void) | ||
310 | { | ||
311 | struct audio_debug d; | ||
312 | |||
313 | lcd_setfont(FONT_SYSFIXED); | ||
314 | |||
315 | while(1) | ||
316 | { | ||
317 | if (action_userabort(HZ/5)) | ||
318 | return false; | ||
319 | |||
320 | audio_get_debugdata(&d); | ||
321 | |||
322 | lcd_clear_display(); | ||
323 | |||
324 | lcd_putsf(0, 0, "read: %x", d.audiobuf_read); | ||
325 | lcd_putsf(0, 1, "write: %x", d.audiobuf_write); | ||
326 | lcd_putsf(0, 2, "swap: %x", d.audiobuf_swapwrite); | ||
327 | lcd_putsf(0, 3, "playing: %d", d.playing); | ||
328 | lcd_putsf(0, 4, "playable: %x", d.playable_space); | ||
329 | lcd_putsf(0, 5, "unswapped: %x", d.unswapped_space); | ||
330 | |||
331 | /* Playable space left */ | ||
332 | gui_scrollbar_draw(&screens[SCREEN_MAIN],0, 6*8, 112, 4, d.audiobuflen, 0, | ||
333 | d.playable_space, HORIZONTAL); | ||
334 | |||
335 | /* Show the watermark limit */ | ||
336 | gui_scrollbar_draw(&screens[SCREEN_MAIN],0, 6*8+4, 112, 4, d.audiobuflen, 0, | ||
337 | d.low_watermark_level, HORIZONTAL); | ||
338 | |||
339 | lcd_putsf(0, 7, "wm: %x - %x", | ||
340 | d.low_watermark_level, d.lowest_watermark_level); | ||
341 | |||
342 | lcd_update(); | ||
343 | } | ||
344 | lcd_setfont(FONT_UI); | ||
345 | return false; | ||
346 | } | ||
347 | #endif /* !SIMULATOR */ | ||
348 | #else /* CONFIG_CODEC == SWCODEC */ | ||
349 | static unsigned int ticks, freq_sum; | 304 | static unsigned int ticks, freq_sum; |
350 | #ifndef CPU_MULTI_FREQUENCY | 305 | #ifndef CPU_MULTI_FREQUENCY |
351 | static unsigned int boost_ticks; | 306 | static unsigned int boost_ticks; |
@@ -487,7 +442,6 @@ static bool dbg_buffering_thread(void) | |||
487 | 442 | ||
488 | return false; | 443 | return false; |
489 | } | 444 | } |
490 | #endif /* CONFIG_CODEC */ | ||
491 | #endif /* HAVE_LCD_BITMAP */ | 445 | #endif /* HAVE_LCD_BITMAP */ |
492 | 446 | ||
493 | static const char* bf_getname(int selected_item, void *data, | 447 | static const char* bf_getname(int selected_item, void *data, |
@@ -2606,11 +2560,7 @@ static const struct { | |||
2606 | { "View database info", dbg_tagcache_info }, | 2560 | { "View database info", dbg_tagcache_info }, |
2607 | #endif | 2561 | #endif |
2608 | #ifdef HAVE_LCD_BITMAP | 2562 | #ifdef HAVE_LCD_BITMAP |
2609 | #if CONFIG_CODEC == SWCODEC | ||
2610 | { "View buffering thread", dbg_buffering_thread }, | 2563 | { "View buffering thread", dbg_buffering_thread }, |
2611 | #elif !defined(SIMULATOR) | ||
2612 | { "View audio thread", dbg_audio_thread }, | ||
2613 | #endif | ||
2614 | #ifdef PM_DEBUG | 2564 | #ifdef PM_DEBUG |
2615 | { "pm histogram", peak_meter_histogram}, | 2565 | { "pm histogram", peak_meter_histogram}, |
2616 | #endif /* PM_DEBUG */ | 2566 | #endif /* PM_DEBUG */ |