summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/debug-x1000.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/debug-x1000.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/debug-x1000.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/debug-x1000.c b/firmware/target/mips/ingenic_x1000/debug-x1000.c
index 98b8f95fb5..236442a880 100644
--- a/firmware/target/mips/ingenic_x1000/debug-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/debug-x1000.c
@@ -118,12 +118,18 @@ static bool dbg_gpios(void)
118} 118}
119 119
120extern volatile unsigned aic_tx_underruns; 120extern volatile unsigned aic_tx_underruns;
121#ifdef HAVE_RECORDING
122extern volatile unsigned aic_rx_overruns;
123#endif
121 124
122static bool dbg_audio(void) 125static bool dbg_audio(void)
123{ 126{
124 do { 127 do {
125 lcd_clear_display(); 128 lcd_clear_display();
126 lcd_putsf(0, 0, "TX underruns: %u", aic_tx_underruns); 129 lcd_putsf(0, 0, "TX underruns: %u", aic_tx_underruns);
130#ifdef HAVE_RECORDING
131 lcd_putsf(0, 1, "RX overruns: %u", aic_rx_overruns);
132#endif
127 lcd_update(); 133 lcd_update();
128 } while(get_action(CONTEXT_STD, HZ) != ACTION_STD_CANCEL); 134 } while(get_action(CONTEXT_STD, HZ) != ACTION_STD_CANCEL);
129 135