summaryrefslogtreecommitdiffstats
path: root/apps/radio/radio.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-24[3/4] Completely remove HWCODEC supportSolomon Peachy1-111/+0
'swcodec' is now always set (and recording_swcodec for recording-capable units) in feature.txt so the manual and language strings don't need to all be fixed up. Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
2020-07-24[1/4] Remove SH support and all archos targetsSolomon Peachy1-12/+1
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
2020-05-24Radio: Say current frequency or preset when pausingIgor B. Poretsky1-1/+1
Change-Id: Iae5b814da5c62536508ba8b9f30b1431c69dc2b1
2018-12-24Do not touch FM tuner when it is turned offSolomon Peachy1-5/+8
Credit to Igor Poretsky Change-Id: Ie9e61740f87f3b56d0b602cd431757262a6ed808
2017-11-14nwz: improve keymapAmaury Pouly1-1/+1
- enable various features in radio screen (like mode switch) - improve keyboard (short play to select, long play to finish, power to abort) - enable volume keys in radio screen if available Change-Id: I01e71291cfd783763ffd55d4fa60610b6900c726
2017-02-11Improve radio RDS driver and frameworkMichael Sevakis1-4/+0
* Remove unused bits like the radio event and simplify basic radio interface. It can be more self-contained with rds.h only required by radio and tuner code. * Add post-processing to text a-la Silicon Labs AN243. The chip's error correction can only do so much; additional checks are highly recommended. Simply testing for two identical messages in a row is extremely effective and I've never seen corrupted text since doing that, even with mediocre reception. Groups segments must arrive in order, not randomly; logic change only accepts them in order, starting at 0. Time readout was made a bit better but really we'd need to use verbose mode and ensure that no errors were seen during receiving of time and more checks would be need to have a stable PI. The text is the important bit anyway. * Time out of stale text. * Text is no longer updated until a complete group has been received, as is specified in the standard. Perhaps go back to scrolling text lines in the radio screen? * Add proper character conversion to UTF-8. Only the default G0 table for the moment. The other two could be added in. * Add variants "RDS_CFG_PROCESS" and "RDS_CFG_PUSH" to allow the option for processed RDS data to be pushed to the driver and still do proper post-processing (only text conversion for now for the latter). Change-Id: I4d83f8b2e89a209a5096d15ec266477318c66925
2016-01-25Replace SAMSUNG_YH920_PAD with YH92XSebastian Leonhardt1-1/+1
seems more logical to me, and is more consistent, since "SAMSUNG_YH92X_PAD" is already used in the tex files. Change-Id: Ie9a9d850ea86155a7dcf86c88a22a420a10a3837
2014-07-26Reduce definitions of actions for fm radio.Szymon Dziok1-24/+5
Change-Id: I89188ecc820058b79b5c8fcf3e9b5ed49ae8aff4
2014-07-26MPIO HD200: Fix action for fm radio.Szymon Dziok1-1/+1
Change-Id: I65a8e6f39d47f5d091e9676102b0ec08eb08690c
2014-07-26HDD1630/HDD6330: Add actions for fm radio.Szymon Dziok1-0/+1
Change-Id: I6acc21663fd0bc27509f8c37c71defb817ec7108
2014-06-18Radio and radio recording for Samsung YH-920.Szymon Dziok1-1/+2
There is no simple method to detect radio through the 3-wire interface, so it's not implemented for the YH-925 for now. YH-920 always has a radio. Change-Id: Iea484d752915fcd40dbbbd7dbbf13e81aaf548db
2014-01-14FMS: Load/update the skin at last, when fully initialzed, so that it can ↵Thomas Martitz1-2/+5
display the right content from the beginning. Change-Id: I15a708d34912c0749f2497baabf90d26deaaf5df
2013-09-09radio: fix FS#12747Jonathan Gordon1-5/+5
Change-Id: I57448a29d986cca0535c47c0ebfa2f4f3846a936 Reviewed-on: http://gerrit.rockbox.org/614 Reviewed-by: Dominik Riebeling <Dominik.Riebeling@gmail.com> Tested-by: Dominik Riebeling <Dominik.Riebeling@gmail.com>
2013-07-16[Fuze+][Keymaps] keymaps for radio and recorder updateJean-Louis Biasini1-0/+13
1) Now that recording is working a few keymaps update are required. 2) also implement the radio.c file so that fm dedicated keymaps works. 3) implement some missing fm keymaps 4) manual updated accordingly Change-Id: I40be3e245853ccb9ed7a5bc5a76fe4ed90772272 Reviewed-on: http://gerrit.rockbox.org/513 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-07-06Bugfix: (un)locking state message(s) did not disappearLorenzo Miori1-0/+5
after unlocking the device while being into FM radio screen. This patch restores expected behaviour by forcing screen refresh when receiving the proper event. Change-Id: Ibe0864ab78619ddf235912d06a2efe3203b5042a Reviewed-on: http://gerrit.rockbox.org/505 Reviewed-by: Lorenzo Miori <memorys60@gmail.com> Tested-by: Lorenzo Miori <memorys60@gmail.com> Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2013-06-10Enable key lock in radio screenAmaury Pouly1-1/+1
Change-Id: I75efbf1077359e4218ad33f4c1d885b24c0b7b01 Reviewed-on: http://gerrit.rockbox.org/421 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info> Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2012-05-28ypr0: This patch adds radio support to Samsung YP-R0Lorenzo Miori1-0/+10
Basically it uses the default SI4700 radio chip driver, the only thing that's different is the I2C access, written specifically to interact with my kernel module. Next things to add are: - RDS support! Change-Id: I0ed125641e00f93124d7a34f90dd508e7f1db5a4 Signed-off-by: Lorenzo Miori <memorys60@gmail.com>
2012-02-25Move radio power handling from apps/ to drivers.Amaury Pouly1-7/+0
Remove direct calls to tuner_power(...) in apps/ and let the driver manage tuner power with the RADIO_SLEEP setting. Change-Id: I37cd0472e60db5d666dae1b9fe4755dd65c03edd Reviewed-on: http://gerrit.rockbox.org/84 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2011-12-07Fix for "FS#12430 - FM presets tags aren't dynamic in status bar."Thomas Martitz1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31162 a1c6a512-1295-4272-9138-f99709370657
2011-11-17imx233/fuze+: set drive strength of tuner chip enable pin, enable backlight ↵Amaury Pouly1-1/+0
on panic git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31026 a1c6a512-1295-4272-9138-f99709370657
2011-10-15Changed the FOR_NB_SCREENS macro to always be a for loop that declares its ↵Björn Stenberg1-1/+0
own loop variable. This removes the need to declare this variable in the outer scope. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657
2011-09-01Shuffle some functions around so that interfacing with playback.c in ↵Michael Sevakis1-1/+1
particular isn't required. Though playback does finish the audio init, pcm doesn't care who does it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30403 a1c6a512-1295-4272-9138-f99709370657
2011-08-14Fix errors and warnings.Thomas Martitz1-1/+1
The buffer_offset paramter of audio_init_recording() is removed as it was unused in both implementations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30310 a1c6a512-1295-4272-9138-f99709370657
2011-07-21Fix FS#8656 - Error saving non-current playlist fileJonathan Gordon1-3/+3
Use the plugin buffer to save the playlist copy if there isnt enough buffer already allocated to the inram copy of the playlist git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30184 a1c6a512-1295-4272-9138-f99709370657
2011-07-21Pull yesno_pop out of the radio code as it is a nice simple resuasble yesno ↵Jonathan Gordon1-13/+0
api worth reusing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30183 a1c6a512-1295-4272-9138-f99709370657
2011-06-26Reuse a general voice function instead of reinventing the wheel.Nils Wallménius1-13/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30080 a1c6a512-1295-4272-9138-f99709370657
2011-06-01FS#11925 - Add a proper system to keep track of the current screen/activity ↵Jonathan Gordon1-0/+2
to make %cs far more useful git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29944 a1c6a512-1295-4272-9138-f99709370657
2011-05-24Fix 2 'set but not used' warnings.Nils Wallménius1-2/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29922 a1c6a512-1295-4272-9138-f99709370657
2011-01-29Move fm radio related menus out of radio.c into apps/menus/.Thomas Martitz1-147/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29162 a1c6a512-1295-4272-9138-f99709370657
2010-11-02MPIO HD200: adjust FM keymapMarcin Bukat1-0/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28446 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. ↵Marcin Bukat1-1/+0
FS#11189 by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
2010-10-17(Partially) Fix FS#11572 - no backdrop in the FM screen..\n the preset ↵Jonathan Gordon1-3/+4
question would clear it and not reset it, so reoder the code so it works git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28297 a1c6a512-1295-4272-9138-f99709370657
2010-09-19radio_screen() return value is unused -> voidRafaël Carré1-14/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28113 a1c6a512-1295-4272-9138-f99709370657
2010-09-14Another major skin backend update/hopefully bugfix:Jonathan Gordon1-3/+3
Skins are now more self contained in the skin manager which in the future might allow on demand skin loading (i.e smaller skin buffers) Skin backdrops are also managed more intelegently (fixes a bug where you can get a crazy backdrop loaded if a .sbs fails to load) the rockbox_default rescue theme is now called rockbox_failsafe to better express what it actually is. This commit hopefully/maybe fixes the heavily reported data aborts, so please check if you are getting them git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28073 a1c6a512-1295-4272-9138-f99709370657
2010-08-16Fix FS#11469 - make the fms update as it shouldJonathan Gordon1-35/+33
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27828 a1c6a512-1295-4272-9138-f99709370657
2010-07-29FS#11470 - new skin code, finally svn uses the new parser from the theme ↵Jonathan Gordon1-2/+2
editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
2010-07-26Fix FS#11497 - switching from a .cue to fm would show the cuesheet bars on ↵Jonathan Gordon1-0/+1
the frequency bar thingy git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27569 a1c6a512-1295-4272-9138-f99709370657
2010-07-06Clean up naming of radio preset functions and move global radio preset ↵Bertrik Sikken1-45/+22
methods into apps/radio/presets.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27309 a1c6a512-1295-4272-9138-f99709370657
2010-07-06make the fms updateJonathan Gordon1-1/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27304 a1c6a512-1295-4272-9138-f99709370657
2010-06-21Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz1-2/+2
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
2010-06-18radio keymap: enable fuze/clip buttonsRafaël Carré1-1/+3
fuze was accidentally deleted in r25964 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26941 a1c6a512-1295-4272-9138-f99709370657
2010-05-26Fix r26298 yellow: Somehow missed those warnings. Need playback.h.Michael Sevakis1-0/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26299 a1c6a512-1295-4272-9138-f99709370657
2010-05-26SWCODEC: Wait for audio init to complete before starting radio or recording; ↵Michael Sevakis1-0/+4
hardware init might not be finished yet if those are the start screens. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26298 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. ↵Michael Sevakis1-1/+3
Make 'pause' simply be 'mute', allowing tuning during user mute as well as nicer-sounding unmute. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26269 a1c6a512-1295-4272-9138-f99709370657
2010-05-17split the radio code into multiple files in the hope that makes it more ↵Jonathan Gordon1-0/+1042
likely for someone to want to work on! :D git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26109 a1c6a512-1295-4272-9138-f99709370657