summaryrefslogtreecommitdiff
path: root/uisimulator/common/fmradio.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 /uisimulator/common/fmradio.c
parenta91a35be74774742d8efc766a89ca33fcb880ab1 (diff)
downloadrockbox-a2ee6a66814191c851efb043802740b4d8d1ab0e.tar.gz
rockbox-a2ee6a66814191c851efb043802740b4d8d1ab0e.zip
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 'uisimulator/common/fmradio.c')
-rw-r--r--uisimulator/common/fmradio.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c
index ea6d6f6aa5..d7acaa513b 100644
--- a/uisimulator/common/fmradio.c
+++ b/uisimulator/common/fmradio.c
@@ -26,7 +26,7 @@
26static int frequency = 0; 26static int frequency = 0;
27static bool mono = false; 27static bool mono = false;
28 28
29void radio_set(int setting, int value) 29int radio_set(int setting, int value)
30{ 30{
31 switch(setting) 31 switch(setting)
32 { 32 {
@@ -37,6 +37,10 @@ void radio_set(int setting, int value)
37 frequency = value; 37 frequency = value;
38 break; 38 break;
39 39
40 case RADIO_SCAN_FREQUENCY:
41 frequency = value;
42 break;
43
40 case RADIO_MUTE: 44 case RADIO_MUTE:
41 break; 45 break;
42 46
@@ -45,8 +49,10 @@ void radio_set(int setting, int value)
45 break; 49 break;
46 50
47 default: 51 default:
48 return; 52 return -1;
49 } 53 }
54
55 return 1;
50} 56}
51 57
52int radio_get(int setting) 58int radio_get(int setting)