Bertrik Sikken
73732f406e
si4700 tuner: fix power consumption issue caused by ill-defined power state at startup
...
Change-Id: I657bc7e3d330f436859cfef2a89b0813bc008c49
2012-04-11 23:31:19 +02:00
Bertrik Sikken
3cb0d71759
si470x tuner: remove obsolete handling of special value 2 for RADIO_SLEEP
...
Change-Id: I2291a9f402ff0da03fe58933a33d67c2ac4f0332
2012-04-09 13:22:41 +02:00
Frank Gevaerts
416da2260c
Call tuner_power(true) from the correct place for lv24020lp.
...
This fixes radio not working on c200 and e200 (and possibly others),
as reported in FS#12631.
Change-Id: Idd66fa3b74916cc6f2de45ae7dd89b3bfd70f070
2012-04-02 22:14:07 +02:00
Amaury Pouly
7d599b4311
radio: include power.h in drivers for tuner_power()
...
Change-Id: I1ef8917b28b6d955e456c0b3737d41d356f34ec3
2012-02-25 16:07:17 +01:00
Amaury Pouly
906e90eb7b
Move radio power handling from apps/ to drivers.
...
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-25 15:59:08 +01:00
Amaury Pouly
ac4d648958
fuze+: use the si4700 internal oscillator and set a pin on power down (seems important)
...
Change-Id: If737438ddb726e51e0a725e27bc93950eb3657bd
2012-02-01 17:51:01 +01:00
Michael Sevakis
2403f38c1f
RDS: Use a define that doesn't imply any particular hardware dependency.
...
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-29 14:55:49 +00:00
Michael Sevakis
7b596416bf
Gigabeat S: Update RDS processing to use asynchronous I2C rather than thread.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31462 a1c6a512-1295-4272-9138-f99709370657
2011-12-29 12:02:49 +00:00
Bertrik Sikken
8c19dcd598
FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31346 a1c6a512-1295-4272-9138-f99709370657
2011-12-17 20:24:19 +00:00
Bertrik Sikken
5515a7a880
RDA5802 tuner: use channel spacing of 100 kHz when possible (instead of always 50 kHz)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31213 a1c6a512-1295-4272-9138-f99709370657
2011-12-11 17:38:49 +00:00
Bertrik Sikken
6672766dfe
rda5802: don't use the si4700-specific exceptions for putting the tuner to sleep
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29984 a1c6a512-1295-4272-9138-f99709370657
2011-06-07 21:07:49 +00:00
Bertrik Sikken
1c22bbb1c2
FS#12094 - RDA5802 tuner: clean up register 0x4 handling, drop implicitly 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-04 20:18:10 +00:00
Bertrik Sikken
4097f44c5e
Fix FS#11813 - Frequency is not tuned the first time the radio is turned on
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29946 a1c6a512-1295-4272-9138-f99709370657
2011-06-02 15:17:55 +00:00
Bertrik Sikken
069567c0bc
iap: pass length and data pointer to iap_handlepkt functions, this prepares for iap large packet support.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29815 a1c6a512-1295-4272-9138-f99709370657
2011-05-02 21:55:13 +00:00
Bertrik Sikken
0d5e470a45
si4700/rda5802 tuners: prevent hang when changing radio region. Probably fixes bug FS#11754 .
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28582 a1c6a512-1295-4272-9138-f99709370657
2010-11-14 09:25:08 +00:00
Bertrik Sikken
de870b3ee0
Signal strength meter for FM radio - FS#8151 by Przemysław Hołubowski
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28559 a1c6a512-1295-4272-9138-f99709370657
2010-11-11 21:13:29 +00:00
Bertrik Sikken
598f56ecb2
Simplify unsigned int <-> unsigned char array conversion in 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-08 23:23:00 +00:00
Bertrik Sikken
bf679fa4ac
Enable tea5767 tuner detection for Philips GoGear HDD63x0 too (HDD6320 does not have a tuner, HDD6330 does)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28496 a1c6a512-1295-4272-9138-f99709370657
2010-11-05 18:21:20 +00:00
Bertrik Sikken
981a639ade
Implement tea5767 tuner detection - FS#11714 by me
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28493 a1c6a512-1295-4272-9138-f99709370657
2010-11-05 17:04:18 +00:00
Marcin Bukat
56c4e9fa60
Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. FS#11189 by me.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
2010-10-31 21:09:34 +00:00
Bertrik Sikken
055071195c
si4700 tuner: lower stereo switchover range, so it switches to stereo for weaker signals. Should fix FS#11405.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28284 a1c6a512-1295-4272-9138-f99709370657
2010-10-15 18:13:31 +00:00
Bertrik Sikken
4aa42f3d43
RDA5802 tuner: fix small bug in rda5802_init (writing too much data)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28170 a1c6a512-1295-4272-9138-f99709370657
2010-09-26 11:39:27 +00:00
Bertrik Sikken
c0edce8f5c
iap: make variable serbuf non-global
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 19:37:17 +00:00
Bertrik Sikken
aea21cd18b
ipod fm remote: some static/const fixes from FS #11266 by me
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27867 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 20:49:33 +00:00
Bertrik Sikken
adc472bec5
FM tuner region code cleanup - FS #11492 by me.
...
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-07-26 20:15:16 +00:00
Michael Sevakis
08d09e678f
Sanyo lv24020lp FM: Improve frequency measurement on PP thus improving 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-22 07:27:34 +00:00
Michael Sevakis
831707d991
lv24020lp tuner: On PP targets (c200/e200), use the atomic GPIO bitwise 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-22 04:00:34 +00:00
Bertrik Sikken
02e04585bd
Fix FS #10474 - FM tuner on Gigabeat S fails to tune last frequency on start
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27018 a1c6a512-1295-4272-9138-f99709370657
2010-06-21 16:45:15 +00:00
Rafaël Carré
9e3f473492
FS#11417 by Joe Balough: fix audio/tuner on philips hdd6330
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26952 a1c6a512-1295-4272-9138-f99709370657
2010-06-19 03:51:57 +00:00
Bertrik Sikken
ff8e76e9e5
The mystery FM chip in some Sansa Clip+ players has been identified as a 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-16 20:29:08 +00:00
Bertrik Sikken
da4089d836
FM clip+ radio: enable stereo indication
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26867 a1c6a512-1295-4272-9138-f99709370657
2010-06-16 06:53:14 +00:00
Bertrik Sikken
fcea117d21
Support for mystery FM chip in some Sansa Clip+, FS #11403 by me
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26864 a1c6a512-1295-4272-9138-f99709370657
2010-06-15 20:57:48 +00:00
Michael Sevakis
e236b95746
Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. 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-24 20:12:10 +00:00
Thomas Martitz
50a6ca39ad
Move c/h files implementing/defining standard library stuff into a new libc 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
2010-05-06 21:04:40 +00:00
Thomas Martitz
c61e89c0ed
Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:04 +00:00
Bertrik Sikken
fefa1c7bbf
Clean up IAP / ipod remote tuner a bit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25672 a1c6a512-1295-4272-9138-f99709370657
2010-04-18 15:46:56 +00:00
Rafaël Carré
3c87824970
si4700 tuner: put the tuner to sleep at init
...
gets 1h30 of runtime on Clipv1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25030 a1c6a512-1295-4272-9138-f99709370657
2010-03-05 01:43:52 +00:00
Laurent Gautier
1233a73840
set the ipod volume on the ipod fm remote when the tuner is turned on. Also, prevents a looping execution of the set_mono command.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24225 a1c6a512-1295-4272-9138-f99709370657
2010-01-13 20:07:38 +00:00
Laurent Gautier
980c7089e8
Fix FS10902 and improve some init. Also add my name to the credit list for FS10494
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24216 a1c6a512-1295-4272-9138-f99709370657
2010-01-12 22:11:51 +00:00
Bertrik Sikken
799a0a5cd4
Simplify some boolean expressions that compare directly against 'true'
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24144 a1c6a512-1295-4272-9138-f99709370657
2010-01-02 16:03:30 +00:00
Maurus Cuelenaere
c0ee84d37e
Fix FM radio on VX777 (by Giovanni Zilli)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24099 a1c6a512-1295-4272-9138-f99709370657
2009-12-22 22:33:51 +00:00
Maurus Cuelenaere
d42cdfd91c
Onda VX747/VX777: fix FM radio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
2009-12-18 12:41:12 +00:00
Rafaël Carré
85fd100079
si4700: revert r22641
...
bits 13:0 must not be modified (except for bit 8 ?)
fixes FM on my Clipv1 (some Clips weren't affected)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23826 a1c6a512-1295-4272-9138-f99709370657
2009-12-03 06:14:30 +00:00
Laurent Gautier
0260852771
Add support for the ipod FM remote to the 4G, Color, 5G, nano 1G with RDS
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23805 a1c6a512-1295-4272-9138-f99709370657
2009-12-01 17:54:40 +00:00
Jeffrey Goode
9d842683eb
Comment out LOGF_ENABLE defines everywhere, replace evil comments
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23497 a1c6a512-1295-4272-9138-f99709370657
2009-11-03 16:25:03 +00:00
Bertrik Sikken
66499ecad0
Sansa c200v2: fix si4700 tuner initialisation to make it work for the c200v2
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22641 a1c6a512-1295-4272-9138-f99709370657
2009-09-06 14:52:38 +00:00
Vitja Makarov
b5e39c15a5
iaudio7: Implement udelay, mostly based on D2 port, except Z-clock initialization
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22620 a1c6a512-1295-4272-9138-f99709370657
2009-09-04 09:36:53 +00:00
Bertrik Sikken
4e965b4b6c
Meizu: implement i2c for the meizu fmradio and update the tea5760 tuner driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21703 a1c6a512-1295-4272-9138-f99709370657
2009-07-07 21:57:16 +00:00
Rafaël Carré
1a98e973fb
c200v2 : fix FM radio, the c200v2 uses the internal oscillator like others Sansa AMS
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21432 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 23:02:49 +00:00
Bertrik Sikken
4120946f28
Fix e200v2 radio problem (missing Si4702 initialisation)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21416 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 21:34:27 +00:00