summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-10-17 08:53:18 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-10-17 08:53:18 +0000
commit91f9350cbde2653034840fc930749e2b1f9af9c7 (patch)
tree4c669ffda33c468e22266d3b3bb9587b47ff706f /apps
parent79afbafa669bee52059d980ae887dfa06948c252 (diff)
downloadrockbox-91f9350cbde2653034840fc930749e2b1f9af9c7.tar.gz
rockbox-91f9350cbde2653034840fc930749e2b1f9af9c7.zip
moved and renamed fmradio_set/get_status to power.c, where it now additionally serves well for tuner power enable on OndioFM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5296 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/radio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 8eaff1d917..45a02d5332 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -49,6 +49,7 @@
49#include "talk.h" 49#include "talk.h"
50#include "tuner.h" 50#include "tuner.h"
51#include "hwcompat.h" 51#include "hwcompat.h"
52#include "power.h"
52 53
53#ifdef CONFIG_TUNER 54#ifdef CONFIG_TUNER
54 55
@@ -168,7 +169,7 @@ bool radio_screen(void)
168 lcd_clear_display(); 169 lcd_clear_display();
169 lcd_setmargins(0, 8); 170 lcd_setmargins(0, 8);
170 status_draw(true); 171 status_draw(true);
171 fmradio_set_status(FMRADIO_PLAYING); 172 radio_set_status(FMRADIO_PLAYING);
172 173
173 font_get(FONT_UI); 174 font_get(FONT_UI);
174 lcd_getstringsize("M", &fw, &fh); 175 lcd_getstringsize("M", &fw, &fh);
@@ -405,7 +406,7 @@ bool radio_screen(void)
405 if(mpeg_status() != MPEG_STATUS_RECORD) 406 if(mpeg_status() != MPEG_STATUS_RECORD)
406 { 407 {
407 default_event_handler(SYS_USB_CONNECTED); 408 default_event_handler(SYS_USB_CONNECTED);
408 fmradio_set_status(0); 409 radio_set_status(0);
409 screen_freeze = true; /* Cosmetic: makes sure the 410 screen_freeze = true; /* Cosmetic: makes sure the
410 radio screen doesn't redraw */ 411 radio screen doesn't redraw */
411 done = true; 412 done = true;
@@ -529,7 +530,7 @@ bool radio_screen(void)
529 530
530 sound_settings_apply(); 531 sound_settings_apply();
531 532
532 fmradio_set_status(0); 533 radio_set_status(0);
533 534
534 if(keep_playing) 535 if(keep_playing)
535 { 536 {