summaryrefslogtreecommitdiff
path: root/firmware/drivers/tuner
AgeCommit message (Collapse)Author
2020-07-24[1/4] Remove SH support and all archos targetsSolomon Peachy
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
2020-07-09Update to allow the Apple Radio Remote to function on iPod Video 5G.LiveboxAndy
This was broken when the major update to iap was comitted. ia-lingo7.c created and various iap related files modified. On 4G, 6G and Nano 1/2Gen iPods the remote will function even though the radio won't. Tested on 4G Greyscale, 4G Color, 4G Photo, 4G Mini 1st Gen, 4G Mini 2Gen, Nano 1G, Nano 2G, Video 5G, Video 5.5G Change-Id: Ia74e3d07d9ab5edc6da8eafa96801ede722be331
2018-12-22FS#12610 - Clip+ Ticking Noise Fixed in RadioSolomon Peachy
Patch taken from Igor Poretsky's tree. Original clip-radio-tick.patch modified to acts only when screen is deemed, or when recording, in order to preserve indicators functionality. Change-Id: I62afb24a0dad7ad2ecc9272c24810b37f032408d
2017-02-12Forgot to remove unused RDS buffers from the ipod remote tuner.Michael Sevakis
Also, use rds_reset() now to clear data on station change since the rds driver internal buffers are used. Change-Id: I043b09d661eeec21617381015347f0bcead4f7d4
2017-02-11Fix warnings and errors from fc9695eMichael Sevakis
* fmradio.c needs an implementation of tuner_get_rds_info() for the sim (kill all the sims). * Some macro bitflags shouldn't be seen unless HAVE_RDS_CAP is defined. Change-Id: Idd00c94ca2fc43cf32f9223aa4530d5a02fb3454
2017-02-11Improve radio RDS driver and frameworkMichael Sevakis
* 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
2014-07-26Disable detection of fm radio for the YH920, it's pointless.Szymon Dziok
Change-Id: Ibabda73046dc523c2bd0b1dfd0644f8882fbb74c
2014-06-18Radio and radio recording for Samsung YH-920.Szymon Dziok
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
2013-11-21tea5767: properly power up the tuner during detectLorenzo Miori
Change-Id: I5ca5c3ae28db1427e2528cb1740a9199180b9b38 Reviewed-on: http://gerrit.rockbox.org/670 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-10-22tea5760uk: use correct i2c address on the CreativeAmaury Pouly
Actually 0x20 is the right address, the 0x22 applies to the meizu which probably use a Chinese clone with a non-spec compliant address. Change-Id: I65b9ab6477c07a2293226536db3e696d34d3bc2c
2013-10-21tea5760uk: properly power up the tuner during detectAmaury Pouly
The old was doing register read/writes without calling tuner_power(), this is broken for target with real tuner power management. Change-Id: I5e60234697a8b91de6189daf6a10e871d5119b65
2013-10-21tea5760uk: add support for TEA5761UKAmaury Pouly
They share most of registers (except test and some extra bits), since our driver is very basic, it is safe to relax the manufacurer & chip id check. Change-Id: If54e8b9e0d852cd9128d5e28ff59bd2c7a55d98d
2013-03-24Fix LV24020 tuner chip volume level definition (found by cppcheck)Bertrik Sikken
Change-Id: I328cfbd7c9fc6295db2e62f6174f8f4405e281a8
2013-01-15stfm1000: comment static unused functionAmaury Pouly
Change-Id: Ie918a07c72bf9086508731faf658d57a286d922a
2012-12-29Fix copyright headersAmaury Pouly
Change-Id: Ie65920b1192e9b737fcc2554d280fbcedfa39800
2012-12-09si4700: fix typoRyan Hitchman
Change-Id: I3ebeaf8188fc330921089a148cac1f3ea5740e23 Reviewed-on: http://gerrit.rockbox.org/370 Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
2012-05-19zenxfi3&stfm1000: implement fmradio i2c and debug screenAmaury Pouly
Change-Id: I83dbdee13185d9adcf590dc213da5a8c97adb2ba
2012-05-19Add stub STFM1000 tuner driverAmaury Pouly
Change-Id: I7f82f7b8971de75c92f84d12aaddccc50f3e47b1
2012-04-11si4700 tuner: fix power consumption issue caused by ill-defined power state ↵Bertrik Sikken
at startup Change-Id: I657bc7e3d330f436859cfef2a89b0813bc008c49
2012-04-09si470x tuner: remove obsolete handling of special value 2 for RADIO_SLEEPBertrik Sikken
Change-Id: I2291a9f402ff0da03fe58933a33d67c2ac4f0332
2012-04-02Call tuner_power(true) from the correct place for lv24020lp.Frank Gevaerts
This fixes radio not working on c200 and e200 (and possibly others), as reported in FS#12631. Change-Id: Idd66fa3b74916cc6f2de45ae7dd89b3bfd70f070
2012-02-25radio: include power.h in drivers for tuner_power()Amaury Pouly
Change-Id: I1ef8917b28b6d955e456c0b3737d41d356f34ec3
2012-02-25Move radio power handling from apps/ to drivers.Amaury Pouly
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>
2012-02-01fuze+: use the si4700 internal oscillator and set a pin on power down (seems ↵Amaury Pouly
important) Change-Id: If737438ddb726e51e0a725e27bc93950eb3657bd
2011-12-29RDS: Use a define that doesn't imply any particular hardware dependency.Michael Sevakis
Theoretically, anything with the capability could implement the decoding action in an ISR on any radio chip supporting RDS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31464 a1c6a512-1295-4272-9138-f99709370657
2011-12-29Gigabeat S: Update RDS processing to use asynchronous I2C rather than thread.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31462 a1c6a512-1295-4272-9138-f99709370657
2011-12-17FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip)Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31346 a1c6a512-1295-4272-9138-f99709370657
2011-12-11RDA5802 tuner: use channel spacing of 100 kHz when possible (instead of ↵Bertrik Sikken
always 50 kHz) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31213 a1c6a512-1295-4272-9138-f99709370657
2011-06-07rda5802: don't use the si4700-specific exceptions for putting the tuner to sleepBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29984 a1c6a512-1295-4272-9138-f99709370657
2011-06-04FS#12094 - RDA5802 tuner: clean up register 0x4 handling, drop implicitly ↵Bertrik Sikken
enabled soft-mute by Stephan Grossklass and me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29959 a1c6a512-1295-4272-9138-f99709370657
2011-06-02Fix FS#11813 - Frequency is not tuned the first time the radio is turned onBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29946 a1c6a512-1295-4272-9138-f99709370657
2011-05-02iap: pass length and data pointer to iap_handlepkt functions, this prepares ↵Bertrik Sikken
for iap large packet support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29815 a1c6a512-1295-4272-9138-f99709370657
2010-11-14si4700/rda5802 tuners: prevent hang when changing radio region. Probably ↵Bertrik Sikken
fixes bug FS#11754 . git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28582 a1c6a512-1295-4272-9138-f99709370657
2010-11-11Signal strength meter for FM radio - FS#8151 by Przemysław HołubowskiBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28559 a1c6a512-1295-4272-9138-f99709370657
2010-11-08Simplify unsigned int <-> unsigned char array conversion in ↵Bertrik Sikken
ipod_remote_tuner.c (make it endianness independent) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28537 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Enable tea5767 tuner detection for Philips GoGear HDD63x0 too (HDD6320 does ↵Bertrik Sikken
not have a tuner, HDD6330 does) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28496 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Implement tea5767 tuner detection - FS#11714 by meBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28493 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. ↵Marcin Bukat
FS#11189 by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
2010-10-15si4700 tuner: lower stereo switchover range, so it switches to stereo for ↵Bertrik Sikken
weaker signals. Should fix FS#11405. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28284 a1c6a512-1295-4272-9138-f99709370657
2010-09-26RDA5802 tuner: fix small bug in rda5802_init (writing too much data)Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28170 a1c6a512-1295-4272-9138-f99709370657
2010-09-20iap: make variable serbuf non-globalBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
2010-08-23ipod fm remote: some static/const fixes from FS #11266 by meBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27867 a1c6a512-1295-4272-9138-f99709370657
2010-07-26FM tuner region code cleanup - FS #11492 by me.Bertrik Sikken
This removes the tuner-specific region structs and makes each driver use the common one (which is now extended with a deemphasis field) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27579 a1c6a512-1295-4272-9138-f99709370657
2010-06-22Sanyo lv24020lp FM: Improve frequency measurement on PP thus improving ↵Michael Sevakis
initial frequency setting. Properly account for IF when tuning FM oscillator (this worked poorly before but appears to work as expected now -- aka. works for me). Not sure what this will do to iAudio7 or Cowon D2 but if they can implement a good duration measurement, they should do so or use the internal timer if possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27042 a1c6a512-1295-4272-9138-f99709370657
2010-06-22lv24020lp tuner: On PP targets (c200/e200), use the atomic GPIO bitwise ↵Michael Sevakis
macros for the interface since it shares GPIOH with the clickwheel interrupt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27038 a1c6a512-1295-4272-9138-f99709370657
2010-06-21Fix FS #10474 - FM tuner on Gigabeat S fails to tune last frequency on startBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27018 a1c6a512-1295-4272-9138-f99709370657
2010-06-19FS#11417 by Joe Balough: fix audio/tuner on philips hdd6330Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26952 a1c6a512-1295-4272-9138-f99709370657
2010-06-16The mystery FM chip in some Sansa Clip+ players has been identified as a ↵Bertrik Sikken
RDA5802, so rename files and functions. Also fix several bugs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26871 a1c6a512-1295-4272-9138-f99709370657
2010-06-16FM clip+ radio: enable stereo indicationBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26867 a1c6a512-1295-4272-9138-f99709370657
2010-06-15Support for mystery FM chip in some Sansa Clip+, FS #11403 by meBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26864 a1c6a512-1295-4272-9138-f99709370657