summaryrefslogtreecommitdiff
path: root/firmware/drivers/tuner (follow)
Commit message (Collapse)AuthorAge
* Forgot to remove unused RDS buffers from the ipod remote tuner.Michael Sevakis2017-02-12
| | | | | | | Also, use rds_reset() now to clear data on station change since the rds driver internal buffers are used. Change-Id: I043b09d661eeec21617381015347f0bcead4f7d4
* Fix warnings and errors from fc9695eMichael Sevakis2017-02-11
| | | | | | | | | | * 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
* Improve radio RDS driver and frameworkMichael Sevakis2017-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Disable detection of fm radio for the YH920, it's pointless.Szymon Dziok2014-07-26
| | | | Change-Id: Ibabda73046dc523c2bd0b1dfd0644f8882fbb74c
* Radio and radio recording for Samsung YH-920.Szymon Dziok2014-06-18
| | | | | | | 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
* tea5767: properly power up the tuner during detectLorenzo Miori2013-11-21
| | | | | | Change-Id: I5ca5c3ae28db1427e2528cb1740a9199180b9b38 Reviewed-on: http://gerrit.rockbox.org/670 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* tea5760uk: use correct i2c address on the CreativeAmaury Pouly2013-10-22
| | | | | | | 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
* tea5760uk: properly power up the tuner during detectAmaury Pouly2013-10-21
| | | | | | | The old was doing register read/writes without calling tuner_power(), this is broken for target with real tuner power management. Change-Id: I5e60234697a8b91de6189daf6a10e871d5119b65
* tea5760uk: add support for TEA5761UKAmaury Pouly2013-10-21
| | | | | | | 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
* Fix LV24020 tuner chip volume level definition (found by cppcheck)Bertrik Sikken2013-03-24
| | | | Change-Id: I328cfbd7c9fc6295db2e62f6174f8f4405e281a8
* stfm1000: comment static unused functionAmaury Pouly2013-01-15
| | | | Change-Id: Ie918a07c72bf9086508731faf658d57a286d922a
* Fix copyright headersAmaury Pouly2012-12-29
| | | | Change-Id: Ie65920b1192e9b737fcc2554d280fbcedfa39800
* si4700: fix typoRyan Hitchman2012-12-09
| | | | | | Change-Id: I3ebeaf8188fc330921089a148cac1f3ea5740e23 Reviewed-on: http://gerrit.rockbox.org/370 Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
* zenxfi3&stfm1000: implement fmradio i2c and debug screenAmaury Pouly2012-05-19
| | | | Change-Id: I83dbdee13185d9adcf590dc213da5a8c97adb2ba
* Add stub STFM1000 tuner driverAmaury Pouly2012-05-19
| | | | Change-Id: I7f82f7b8971de75c92f84d12aaddccc50f3e47b1
* si4700 tuner: fix power consumption issue caused by ill-defined power state ↵Bertrik Sikken2012-04-11
| | | | | | at startup Change-Id: I657bc7e3d330f436859cfef2a89b0813bc008c49
* si470x tuner: remove obsolete handling of special value 2 for RADIO_SLEEPBertrik Sikken2012-04-09
| | | | Change-Id: I2291a9f402ff0da03fe58933a33d67c2ac4f0332
* Call tuner_power(true) from the correct place for lv24020lp.Frank Gevaerts2012-04-02
| | | | | | | This fixes radio not working on c200 and e200 (and possibly others), as reported in FS#12631. Change-Id: Idd66fa3b74916cc6f2de45ae7dd89b3bfd70f070
* radio: include power.h in drivers for tuner_power()Amaury Pouly2012-02-25
| | | | Change-Id: I1ef8917b28b6d955e456c0b3737d41d356f34ec3
* Move radio power handling from apps/ to drivers.Amaury Pouly2012-02-25
| | | | | | | | | 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>
* fuze+: use the si4700 internal oscillator and set a pin on power down (seems ↵Amaury Pouly2012-02-01
| | | | | | important) Change-Id: If737438ddb726e51e0a725e27bc93950eb3657bd
* RDS: Use a define that doesn't imply any particular hardware dependency.Michael Sevakis2011-12-29
| | | | | | | | 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
* Gigabeat S: Update RDS processing to use asynchronous I2C rather than thread.Michael Sevakis2011-12-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31462 a1c6a512-1295-4272-9138-f99709370657
* FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip)Bertrik Sikken2011-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31346 a1c6a512-1295-4272-9138-f99709370657
* RDA5802 tuner: use channel spacing of 100 kHz when possible (instead of ↵Bertrik Sikken2011-12-11
| | | | | | always 50 kHz) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31213 a1c6a512-1295-4272-9138-f99709370657
* rda5802: don't use the si4700-specific exceptions for putting the tuner to sleepBertrik Sikken2011-06-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29984 a1c6a512-1295-4272-9138-f99709370657
* FS#12094 - RDA5802 tuner: clean up register 0x4 handling, drop implicitly ↵Bertrik Sikken2011-06-04
| | | | | | enabled soft-mute by Stephan Grossklass and me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29959 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#11813 - Frequency is not tuned the first time the radio is turned onBertrik Sikken2011-06-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29946 a1c6a512-1295-4272-9138-f99709370657
* iap: pass length and data pointer to iap_handlepkt functions, this prepares ↵Bertrik Sikken2011-05-02
| | | | | | for iap large packet support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29815 a1c6a512-1295-4272-9138-f99709370657
* si4700/rda5802 tuners: prevent hang when changing radio region. Probably ↵Bertrik Sikken2010-11-14
| | | | | | fixes bug FS#11754 . git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28582 a1c6a512-1295-4272-9138-f99709370657
* Signal strength meter for FM radio - FS#8151 by Przemysław HołubowskiBertrik Sikken2010-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28559 a1c6a512-1295-4272-9138-f99709370657
* Simplify unsigned int <-> unsigned char array conversion in ↵Bertrik Sikken2010-11-08
| | | | | | ipod_remote_tuner.c (make it endianness independent) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28537 a1c6a512-1295-4272-9138-f99709370657
* Enable tea5767 tuner detection for Philips GoGear HDD63x0 too (HDD6320 does ↵Bertrik Sikken2010-11-05
| | | | | | not have a tuner, HDD6330 does) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28496 a1c6a512-1295-4272-9138-f99709370657
* Implement tea5767 tuner detection - FS#11714 by meBertrik Sikken2010-11-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28493 a1c6a512-1295-4272-9138-f99709370657
* Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. ↵Marcin Bukat2010-10-31
| | | | | | FS#11189 by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
* si4700 tuner: lower stereo switchover range, so it switches to stereo for ↵Bertrik Sikken2010-10-15
| | | | | | weaker signals. Should fix FS#11405. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28284 a1c6a512-1295-4272-9138-f99709370657
* RDA5802 tuner: fix small bug in rda5802_init (writing too much data)Bertrik Sikken2010-09-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28170 a1c6a512-1295-4272-9138-f99709370657
* iap: make variable serbuf non-globalBertrik Sikken2010-09-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
* ipod fm remote: some static/const fixes from FS #11266 by meBertrik Sikken2010-08-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27867 a1c6a512-1295-4272-9138-f99709370657
* FM tuner region code cleanup - FS #11492 by me.Bertrik Sikken2010-07-26
| | | | | | | 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
* Sanyo lv24020lp FM: Improve frequency measurement on PP thus improving ↵Michael Sevakis2010-06-22
| | | | | | 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
* lv24020lp tuner: On PP targets (c200/e200), use the atomic GPIO bitwise ↵Michael Sevakis2010-06-22
| | | | | | 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
* Fix FS #10474 - FM tuner on Gigabeat S fails to tune last frequency on startBertrik Sikken2010-06-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27018 a1c6a512-1295-4272-9138-f99709370657
* FS#11417 by Joe Balough: fix audio/tuner on philips hdd6330Rafaël Carré2010-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26952 a1c6a512-1295-4272-9138-f99709370657
* The mystery FM chip in some Sansa Clip+ players has been identified as a ↵Bertrik Sikken2010-06-16
| | | | | | 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
* FM clip+ radio: enable stereo indicationBertrik Sikken2010-06-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26867 a1c6a512-1295-4272-9138-f99709370657
* Support for mystery FM chip in some Sansa Clip+, FS #11403 by meBertrik Sikken2010-06-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26864 a1c6a512-1295-4272-9138-f99709370657
* Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. ↵Michael Sevakis2010-05-24
| | | | | | 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
* 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