summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c (follow)
Commit message (Collapse)AuthorAge
* split the radio code into multiple files in the hope that makes it more ↵Jonathan Gordon2010-05-17
| | | | | | likely for someone to want to work on! :D git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26109 a1c6a512-1295-4272-9138-f99709370657
* FS#11263 - Radio Art support! %C and %Cl tags work in the radio screen and ↵Jonathan Gordon2010-05-16
| | | | | | | | | Base Skin when the radio is running. put your station images in .rockbox/fmpresets/<preset name>.bmp or .jpg. Must be in preset mode and the preset name must match the filename git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26078 a1c6a512-1295-4272-9138-f99709370657
* fix FS#11264 - frequency bar and presets not working in the sbsJonathan Gordon2010-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25982 a1c6a512-1295-4272-9138-f99709370657
* fix the last of the reds, and make RDS tags actually work (and add them to ↵Jonathan Gordon2010-05-12
| | | | | | the hardcoded radio skin) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25966 a1c6a512-1295-4272-9138-f99709370657
* fix red and yellow (most of it anyway)Jonathan Gordon2010-05-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25965 a1c6a512-1295-4272-9138-f99709370657
* FS#10853 - Skin support in the radio screen! Check CustomWPS for the new tagsJonathan Gordon2010-05-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25964 a1c6a512-1295-4272-9138-f99709370657
* slightly rework peakmeter handling to make it cleaner and be able to be used ↵Jonathan Gordon2010-05-09
| | | | | | in conditionals git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25913 a1c6a512-1295-4272-9138-f99709370657
* Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2010-05-06
| | | | | | | | directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
* Make creat() posix compliant API-wise. Shouldn't affect the core as it's ↵Thomas Martitz2010-05-06
| | | | | | wrapped via a static inline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#11152 in a cleaner way. At least on the sim, the state remained in ↵Frank Gevaerts2010-03-31
| | | | | | FMRADIO_PLAYING forever after r25403, which broke (at least) the playback mode display in skins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25408 a1c6a512-1295-4272-9138-f99709370657
* Make sure FM Tuner is stopped at initRafaël Carré2010-03-30
| | | | | | | Author: Doru Barbu Flyspray: FS#11152 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25403 a1c6a512-1295-4272-9138-f99709370657
* Factor out some drawing code.Thomas Martitz2010-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24796 a1c6a512-1295-4272-9138-f99709370657
* Quickscreen for the radio screen. I added a keymap for almost all targets. I ↵Thomas Martitz2010-02-20
| | | | | | couldn't find a nice one (i.e. one that's consistent with the wps/menu quickscreen combo) for iaudio m3, ondavx747 and the gogears. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24795 a1c6a512-1295-4272-9138-f99709370657
* Fix up Fuze's radio keymap a bit.Thomas Martitz2010-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24794 a1c6a512-1295-4272-9138-f99709370657
* Remove a few unused definesThomas Martitz2010-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24793 a1c6a512-1295-4272-9138-f99709370657
* Cowon D2: Rename COWOND2_PAD -> COWON_D2_PAD to match macro used in manual, andTomer Shalev2009-12-15
| | | | | | | to target naming conventions in general git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24010 a1c6a512-1295-4272-9138-f99709370657
* FS#10824 - viewport/statusbar API rework.Jonathan Gordon2009-12-09
| | | | | | | | | | | | | | | | Hopefully the only user visible changes are: - fm and recording screens go by the statusbar setting (sbs or inbuilt) - plugins go back to using the theme as they should for menus and lists - splash screens might get cut a bit... entirely theme and splash dependant.. if there is a problematic one we can look at it later. - hopefully nothing more than very minor screen flickerings... let me know exactly where they are so they can be fixed New GUI screen rules: * Screens assume that the theme (sbs+ui viewport+ maybe background image) are always enabled. They may be disabled on a per display basis, but MUST be re-enabled on exit * Screens must not be coded in a way that requires a statusbar of any type.. the inbuilt bar will be removed shortly. ALWAYS RESPECT THE USERS SETTINGS unless the screen requires the full display to fit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23904 a1c6a512-1295-4272-9138-f99709370657
* Add support for the ipod FM remote to the 4G, Color, 5G, nano 1G with RDSLaurent Gautier2009-12-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23805 a1c6a512-1295-4272-9138-f99709370657
* mpeg.h/c cleanupJeffrey Goode2009-11-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23652 a1c6a512-1295-4272-9138-f99709370657
* Fix scrolling lines that keep scrolling after exiting plugins and scrolling ↵Nils Wallménius2009-11-15
| | | | | | lines from the fm screen that keep scrolling in the radio context menu, closes FS#10616, git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23633 a1c6a512-1295-4272-9138-f99709370657
* Avoid more useless string copys and make some random cleanupsNils Wallménius2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23092 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#10588 by stopping scrolling in the radio screen instead of blindy ↵Thomas Martitz2009-09-05
| | | | | | relying on list code (which doesn't just stop scrolling entirely for the whole screen anymore). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22632 a1c6a512-1295-4272-9138-f99709370657
* Make the formatter functions used by the settings return a pointer to avoid ↵Nils Wallménius2009-08-20
| | | | | | usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
* FS#10080Nils Wallménius2009-07-14
| | | | | | | | | | * Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
* Fix duplicate #includesBertrik Sikken2009-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
* Remove unneeded function call (radio_load_presets does clear the memory)Alexander Levin2009-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20941 a1c6a512-1295-4272-9138-f99709370657
* Remove unneeded #include "backdrop.h"Bertrik Sikken2009-05-09
| | | | | | | Remove unneeded #include "statusbar.h" git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20891 a1c6a512-1295-4272-9138-f99709370657
* D2: Enable FM radio (based on FS#10035 by Michael Burtin with some changes ↵Rob Purchase2009-03-21
| | | | | | by myself). Also updates the LV24020 driver to add optional logf debugging. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20420 a1c6a512-1295-4272-9138-f99709370657
* Move screendump from apps to firmware, solving two nasty firmware-to-apps ↵Jens Arnold2009-02-10
| | | | | | calls. This required to move the filename creation functions as well. * Fix bug in the BMP header of Clip screendumps. * Add remote screendump for targets with an LCD remote. * Simplify some ifdefs and rename a macro in the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19967 a1c6a512-1295-4272-9138-f99709370657
* continuation of last nights statusbar cleanup.Jonathan Gordon2009-02-02
| | | | | | | | accept FS#9858 and FS#9859 make the rec and fm screens force the statusbar the correct way now which doesnt need extra status variables git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19904 a1c6a512-1295-4272-9138-f99709370657
* Decouple the statusbar drawing from the rest of the screen drawing. it is ↵Jonathan Gordon2008-12-31
| | | | | | | | | | | | not drawn roughly 4x per second automatically. viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#9646 by Christopher Williams which fixes a few radio preset bugs:Jonathan Gordon2008-12-16
| | | | | | | | | | | | | * presets list does not scroll horizontally properly (due to the list_do_action() repeatedly timing out after 1 second) * when returning from the presets list to the main radio screen, the highlighted item in the list scrolls on main radio screen (if it's too wide for the screen, that is) * when adding a preset while in the presets list (with ACTION_FM_PRESET) the list is not updated with the new preset * when clearing presets (or deleting the last preset), the main screen still shows the same preset number * when deleting a preset, the current preset number doesn't change if it's past the end of the list (this is partially related to the previous issue) * the find_closest_preset() routine could be improved to actually find the closest frequency that is saved as a preset * inputting a preset name could be optimized in both time and space (especially in radio_add_preset()); also the length parameter to kbd_input() includes the null terminator, so I added one to those arguments git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19457 a1c6a512-1295-4272-9138-f99709370657
* FS#9609 FM radio support for the Gigabeat S, seeking/scanning is not yet Nils Wallménius2008-12-09
| | | | | | | | | implemented but manual tuning works nicely. Thanks to Rafaël Carré, Bertrik Sikken and Robert Menes for suggestions and debugging help. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19372 a1c6a512-1295-4272-9138-f99709370657
* Accept FS #9301 by Christopher Williams: fix radio preset list after ↵Peter D'Hoye2008-08-19
| | | | | | removing a preset git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18318 a1c6a512-1295-4272-9138-f99709370657
* FS#9281 Rename of splash functions.Nils Wallménius2008-08-15
| | | | | | | | | | | | | | | | | | | | * Remove gui_splash() * Rename gui_syncsplash() to splashf() and remove its voice capabilities. * Rename the internal splash() to splash_internal() and introduce an externally visible splash() that handles simple splashing without printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ, "foo"); if a LANG_* id is passed it will be voiced. * Adjust all places that called gui_syncsplash() to use the correct variant from above. * Export both new functions to plugins and adjust places calling rb->splash() to use the correct variant so that we now have naming consistency between the core and plugins. * Fix one latent bug that would cause my sim to crash with the above changes and correct P2STR and P2ID macros, thanks to pondlife. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
* A bit of code police, no functional changesPeter D'Hoye2008-08-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18191 a1c6a512-1295-4272-9138-f99709370657
* Unify opening of utf-8 files (FS#6203). This also adds ignoring the BOM in ↵Dominik Riebeling2008-08-02
| | | | | | several places it has been missing (as FS#6071). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18185 a1c6a512-1295-4272-9138-f99709370657
* fix FS#9200Jonathan Gordon2008-07-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18077 a1c6a512-1295-4272-9138-f99709370657
* fix redPeter D'Hoye2008-06-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17859 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Accept FS #9052 by Alexander Levin with a fix by me. Changes HAS_BUTTONBAR ↵Peter D'Hoye2008-05-29
| | | | | | into HAVE_BUTTONBAR to bring it in line with the other defines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17655 a1c6a512-1295-4272-9138-f99709370657
* total removal of gui_textarea. The only thing using the text_message struct ↵Jonathan Gordon2008-05-29
| | | | | | is the yesno screen so move its definition to yesno.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17653 a1c6a512-1295-4272-9138-f99709370657
* Another round of making local functions static and making sure that source ↵Bertrik Sikken2008-05-03
| | | | | | files are in sync with their header files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17337 a1c6a512-1295-4272-9138-f99709370657
* Made source files #include the header file that they implement to make sure ↵Bertrik Sikken2008-05-03
| | | | | | they are in sync. Made some local functions static. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17312 a1c6a512-1295-4272-9138-f99709370657
* Moved atoi declaration to stdlib.h. Deleted atoi.hBertrik Sikken2008-04-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17280 a1c6a512-1295-4272-9138-f99709370657
* Const police raid, making a lot of pointers to lang strings const and ↵Nils Wallménius2008-04-26
| | | | | | removing some ugly casting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17251 a1c6a512-1295-4272-9138-f99709370657
* Use file_exists and dir_exists functions where appropriate, fix one wrong ↵Nils Wallménius2008-04-16
| | | | | | file descriptor check and one possible dir descriptor leak git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17147 a1c6a512-1295-4272-9138-f99709370657
* Pass the buffer length to the list_get_name callback functions instead of ↵Nils Wallménius2008-04-09
| | | | | | using hardcoded MAX_PATH git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17049 a1c6a512-1295-4272-9138-f99709370657
* the menu and list now accepts a parent viewport to draw in (and the menu can ↵Jonathan Gordon2008-03-26
| | | | | | be told to not show status/button bars). This lays the groundwork to fix colour problems with plugin menus (see star.c for an example.) This hopefully fixes some button bar issues as well as theme problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16812 a1c6a512-1295-4272-9138-f99709370657
* bandaid fix for FS#8168 - statusbar would be enabled if poweroff happened ↵Jonathan Gordon2008-01-10
| | | | | | while in fm screen. a proper fix is to not force the statusbar on in the fm screen, but untill that happens this is fine. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16044 a1c6a512-1295-4272-9138-f99709370657