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
Bertrik Sikken
a968ddbb39
Fix tuner_power warning on ondio FM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21012 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 13:25:27 +00:00
Rob Purchase
1a6bcfa2c1
D2: Enable FM radio (based on FS#10035 by Michael Burtin with some changes 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
2009-03-21 00:13:20 +00:00
Rob Purchase
343c3b795a
Implement udelay() for D2 and remove the old hacks from USB & FM drivers.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20417 a1c6a512-1295-4272-9138-f99709370657
2009-03-20 23:14:05 +00:00
Mark Arigo
802b57ccd7
FM radio for Philips HDD1630. Volume was very faint unless recording was enabled, so do that too.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19996 a1c6a512-1295-4272-9138-f99709370657
2009-02-13 03:49:17 +00:00
Michael Sevakis
da76a34694
Use bus reset detection for all ARC OTG devices. Remove conflict from LV24020LP driver with some GPIO-by-number macros for PP502x. Start monitoring for USB stack once all core threads and queues are created otherwise queues will likely be registered after USB acks. Putting PP502x system_reboot in IRAM (unmapped, uncached) memory seems to help it work more consistently. Hopefully I got all the PP USB connect handlers in the right spot in irq_handler. If device seems unresponsive to cable, check there first.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19819 a1c6a512-1295-4272-9138-f99709370657
2009-01-22 22:05:04 +00:00
Michael Sevakis
2e99b3d931
Gigabeat S: Allow recording from FM. Give FM the same volume range as playback. NOTE: This bumps the si4700 output volume to -0dB so other players with that may need a minor adjustment.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19619 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 01:38:44 +00:00
Michael Sevakis
1fea6f6b22
Make si4700 tuner driver more sane with bit and field defines and entirely hide strange i2c interface from code with write/set/clear/masked functionality. On Gigabeat S use by-the-book busmode selection and GPIO lines. Implement some primitive station detection, debug registers in screen, and misc. changes to tie things together.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19600 a1c6a512-1295-4272-9138-f99709370657
2008-12-27 19:18:50 +00:00
Bertrik Sikken
51322432a0
Update si4700 FM driver:
...
* implement 16-bit register cache and use #defines for registers
* add support for enabling the internal oscillator (needed for AMS sansas)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19559 a1c6a512-1295-4272-9138-f99709370657
2008-12-22 19:41:57 +00:00
Nils Wallménius
65f61d6cce
FS#9609 FM radio support for the Gigabeat S, seeking/scanning is not yet
...
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
2008-12-09 20:48:04 +00:00