From a2ee6a66814191c851efb043802740b4d8d1ab0e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 16 Mar 2007 14:40:40 +0000 Subject: FM Radio mishmash: Make a quieter screen for the SWCODEC targets esp. for the benefit of x5; I wasn't sure if it was good to alter timeouts for HW codec. Simplify things and prepare for eventual scanning and tuning changes (which should help quiet x5 down even more). Make things behave themselves better in general. Enable SWCODEC FM Recording menu and screen for sim as a bonus. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12804 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 996f13d..71094c0 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -2074,7 +2074,6 @@ static bool dbg_fm_radio(void) while(1) { int row = 0; - unsigned long regs; lcd_clear_display(); fm_detected = radio_hardware_present(); @@ -2083,16 +2082,31 @@ static bool dbg_fm_radio(void) lcd_puts(0, row++, buf); #if (CONFIG_TUNER & S1A0903X01) - regs = samsung_get(RADIO_ALL); - snprintf(buf, sizeof buf, "Samsung regs: %08lx", regs); + snprintf(buf, sizeof buf, "Samsung regs: %08X", + samsung_get(RADIO_ALL)); lcd_puts(0, row++, buf); #endif #if (CONFIG_TUNER & TEA5767) - regs = philips_get(RADIO_ALL); - snprintf(buf, sizeof buf, "Philips regs: %08lx", regs); - lcd_puts(0, row++, buf); + { + struct philips_dbg_info info; + philips_dbg_info(&info); + + snprintf(buf, sizeof buf, "Philips regs:"); + lcd_puts(0, row++, buf); + + snprintf(buf, sizeof buf, " Read: %02X %02X %02X %02X %02X", + (unsigned)info.read_regs[0], (unsigned)info.read_regs[1], + (unsigned)info.read_regs[2], (unsigned)info.read_regs[3], + (unsigned)info.read_regs[4]); + lcd_puts(0, row++, buf); + + snprintf(buf, sizeof buf, " Write: %02X %02X %02X %02X %02X", + (unsigned)info.write_regs[0], (unsigned)info.write_regs[1], + (unsigned)info.write_regs[2], (unsigned)info.write_regs[3], + (unsigned)info.write_regs[4]); + lcd_puts(0, row++, buf); + } #endif - lcd_update(); if (action_userabort(HZ)) -- cgit v1.1