diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-03-16 14:40:40 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-03-16 14:40:40 +0000 |
commit | a2ee6a66814191c851efb043802740b4d8d1ab0e (patch) | |
tree | 82dc1d505b3606e192241ded2d6626be14c71704 /uisimulator | |
parent | a91a35be74774742d8efc766a89ca33fcb880ab1 (diff) | |
download | rockbox-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')
-rw-r--r-- | uisimulator/common/fmradio.c | 10 |
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 @@ static int frequency = 0; static bool mono = false; -void radio_set(int setting, int value) +int radio_set(int setting, int value) { switch(setting) { @@ -37,6 +37,10 @@ void radio_set(int setting, int value) frequency = value; break; + case RADIO_SCAN_FREQUENCY: + frequency = value; + break; + case RADIO_MUTE: break; @@ -45,8 +49,10 @@ void radio_set(int setting, int value) break; default: - return; + return -1; } + + return 1; } int radio_get(int setting) |