summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-16 14:40:40 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-16 14:40:40 +0000
commita2ee6a66814191c851efb043802740b4d8d1ab0e (patch)
tree82dc1d505b3606e192241ded2d6626be14c71704 /apps/debug_menu.c
parenta91a35be74774742d8efc766a89ca33fcb880ab1 (diff)
downloadrockbox-a2ee6a66814191c851efb043802740b4d8d1ab0e.zip
rockbox-a2ee6a66814191c851efb043802740b4d8d1ab0e.tar.gz
rockbox-a2ee6a66814191c851efb043802740b4d8d1ab0e.tar.bz2
rockbox-a2ee6a66814191c851efb043802740b4d8d1ab0e.tar.xz
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
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c28
1 files changed, 21 insertions, 7 deletions
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))