1
0
Fork 0
forked from len0rd/rockbox

Accept FS#7178 - Sansa e200 FM tuner support by Ivan Zupan. Do the needed integration work into recording and the AS3514 audio driver. Do a little AS3514 fiq_record tweak to have it all work nicely from the start.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13573 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-06-06 19:23:48 +00:00
parent af4cd0a84c
commit 21a4a87ca2
12 changed files with 1039 additions and 39 deletions

View file

@ -1990,16 +1990,48 @@ static bool dbg_fm_radio(void)
lcd_setmargins(0, 0);
fm_detected = radio_hardware_present();
while(1)
{
int row = 0;
lcd_clear_display();
fm_detected = radio_hardware_present();
snprintf(buf, sizeof buf, "HW detected: %s", fm_detected?"yes":"no");
lcd_puts(0, row++, buf);
#if (CONFIG_TUNER & LV24020LP)
if (fm_detected)
{
snprintf(buf, sizeof buf, "CTRL_STAT: %02X",
sanyo_get(RADIO_ALL) );
lcd_puts(0, row++, buf);
snprintf(buf, sizeof buf, "RADIO_STAT: %02X",
sanyo_get(RADIO_REG_STAT));
lcd_puts(0, row++, buf);
snprintf(buf, sizeof buf, "MSS_FM: %d kHz",
(sanyo_get(RADIO_MSS_FM) ) );
lcd_puts(0, row++, buf);
snprintf(buf, sizeof buf, "MSS_IF: %d Hz",
(sanyo_get(RADIO_MSS_IF) ) );
lcd_puts(0, row++, buf);
snprintf(buf, sizeof buf, "MSS_SD: %d Hz",
(sanyo_get(RADIO_MSS_SD) ) );
lcd_puts(0, row++, buf);
snprintf(buf, sizeof buf, "if_set: %d Hz",
(sanyo_get(RADIO_IF_SET) ) );
lcd_puts(0, row++, buf);
snprintf(buf, sizeof buf, "sd_set: %d Hz",
(sanyo_get(RADIO_SD_SET) ) );
lcd_puts(0, row++, buf);
}
#endif
#if (CONFIG_TUNER & S1A0903X01)
snprintf(buf, sizeof buf, "Samsung regs: %08X",
samsung_get(RADIO_ALL));