summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/debug_menu.c4
-rw-r--r--apps/recorder/radio.c2
-rw-r--r--firmware/tuner_samsung.c5
3 files changed, 1 insertions, 10 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 81b2f6a905..c51f8d42b0 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1935,8 +1935,6 @@ bool dbg_save_roms(void)
#endif /* CONFIG_CPU == SH7034 */
#ifdef CONFIG_TUNER
-extern int debug_fm_detection;
-
bool dbg_fm_radio(void)
{
char buf[32];
@@ -1954,8 +1952,6 @@ bool dbg_fm_radio(void)
snprintf(buf, sizeof buf, "HW detected: %s", fm_detected?"yes":"no");
lcd_puts(0, 0, buf);
- snprintf(buf, sizeof buf, "Result: %08x", debug_fm_detection);
- lcd_puts(0, 1, buf);
lcd_update();
button = button_get(true);
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 7ed4ef04cb..93e2022caf 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -84,8 +84,6 @@ static struct fmstation presets[MAX_PRESETS];
static const char default_filename[] = "/.rockbox/fm-presets-default.fmr";
-int debug_fm_detection;
-
static int preset_menu; /* The menu index of the preset list */
static struct menu_item preset_menu_items[MAX_PRESETS];
static int num_presets; /* The number of presets in the preset list */
diff --git a/firmware/tuner_samsung.c b/firmware/tuner_samsung.c
index f54748e7c6..632fb7561f 100644
--- a/firmware/tuner_samsung.c
+++ b/firmware/tuner_samsung.c
@@ -27,7 +27,6 @@
#define DEFAULT_IN2 0x140884 /* 5kHz, 7.2MHz crystal */
#define PLL_FREQ_STEP 10000
-int debug_fm_detection;
static int fm_in1;
static int fm_in2;
@@ -96,9 +95,7 @@ int samsung_get(int setting)
{
case RADIO_PRESENT:
fmradio_set(2, 0x140885); /* 5kHz, 7.2MHz crystal, test mode 1 */
- val = fmradio_read(0);
- debug_fm_detection = val;
- val = (val == 0x140885);
+ val = (fmradio_read(0) == 0x140885);
break;
case RADIO_TUNED: