Commit graph

799 commits

Author SHA1 Message Date
Michael Sevakis
9e8fe0e4c6 General: changed local adc to voltage conversions in several places to use battery_voltage. Added battery_read_info function for unfiltered battery information. x5: removed adc_read as a distinct function. Removed adc tick task. adc_init is empty inline. Adjusted battery scale, voltage to level array and read 10 bits from the ADC for battery since 255 levels is not enough for true centivolt resolution.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11396 a1c6a512-1295-4272-9138-f99709370657
2006-10-30 11:33:38 +00:00
Jonathan Gordon
7787cd25f4 woops, removed a bit too much
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11394 a1c6a512-1295-4272-9138-f99709370657
2006-10-30 09:30:21 +00:00
Jonathan Gordon
d497bad69a remove some uneeded #ifdefs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11393 a1c6a512-1295-4272-9138-f99709370657
2006-10-30 09:29:01 +00:00
Jonathan Gordon
139f9f28e9 move the iriver h1x0/h3x0 targets to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657
2006-10-30 08:56:06 +00:00
Jonathan Gordon
cad563b00f move the iriver h1x0/h3x0 button driver to target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11380 a1c6a512-1295-4272-9138-f99709370657
2006-10-29 10:26:41 +00:00
Daniel Stenberg
77c915ad61 Renamed the ipod_i2c functions to the more appropriate pp_i2c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11361 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 11:24:23 +00:00
Michael Sevakis
2ede2a79e6 Put a couple x5-specific function declarations in adc-target.h where they should be.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11358 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 08:12:18 +00:00
Michael Sevakis
1d4a9c6366 Stop reading buttons if one is not down. Don't read remote keys if not plugged. Good for another few points of boost and 4fps full-screen unboosted. The button scan enabling seems stable and I've been using it without any difficulties but if the interrupts hiccup it could leave them unresponsive. Clearing the GPI0 interrupts before enabling them seems to prevent any difficulties. If there's problems there I'll just leave the remote reading bypass only and 50% of the benefits will still be realized.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11357 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 05:31:28 +00:00
Daniel Ankers
a992cd11e5 Correct LCD pixel format on Sansa E200
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11354 a1c6a512-1295-4272-9138-f99709370657
2006-10-26 20:01:04 +00:00
Michael Sevakis
784dd78745 Moved pcf50606 stuff to target directory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11348 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 23:24:07 +00:00
Miika Pekkarinen
58ebf47a2b FS#6216 Update so MP3 files are only opened once. With corrections and
patch cleanup.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11343 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 16:57:53 +00:00
Jonathan Gordon
710ccb7b48 ifdef all the tagcache code, allows rombox to be compiled again, Thanks Austin Appel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11338 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 10:17:57 +00:00
Marcoen Hirschberg
37f7f0b23b reduce the number of gigabeat warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11316 a1c6a512-1295-4272-9138-f99709370657
2006-10-23 13:11:57 +00:00
Marcoen Hirschberg
1d7ebdfe26 generalise the wolfson codec code a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11277 a1c6a512-1295-4272-9138-f99709370657
2006-10-20 17:12:42 +00:00
Linus Nielsen Feltzing
4950b55837 Patch #6052 - More responsive skip on Archos
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11273 a1c6a512-1295-4272-9138-f99709370657
2006-10-19 11:43:13 +00:00
Linus Nielsen Feltzing
da153da0be Patch #5166 by Robert Keevil - Last.fm logging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11269 a1c6a512-1295-4272-9138-f99709370657
2006-10-19 09:42:58 +00:00
Barry Wardell
44cbd337e9 Add keymap for A-B repeat on H10 and enable support for it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11238 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 18:11:56 +00:00
Jonathan Gordon
e147bf3d9f re-enable the picthscreen in the v1 and v2 recorders
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11229 a1c6a512-1295-4272-9138-f99709370657
2006-10-15 23:40:37 +00:00
Michael Sevakis
e0710b2af1 More color adjustments. Better translation to and from native colors with even distribution of levels. Macros for extracting native depth components and packing them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11227 a1c6a512-1295-4272-9138-f99709370657
2006-10-15 17:51:00 +00:00
Miika Pekkarinen
7058752789 Removed ugly boosting solutions from playback code and let scheduler
handle unboosting instead.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11226 a1c6a512-1295-4272-9138-f99709370657
2006-10-15 11:57:52 +00:00
Michael Sevakis
6aa12c11f7 Added a small interface to screens to translate colors into remote gray levels on the x5. Splash screens paint properly with light gray. Should be adapted to a more general approach in the future. A few trailing whitespace trimmings got into a couple files but that is fine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11218 a1c6a512-1295-4272-9138-f99709370657
2006-10-14 01:32:58 +00:00
Linus Nielsen Feltzing
00d218257b Logf output on the serial port for h100 targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11207 a1c6a512-1295-4272-9138-f99709370657
2006-10-12 20:22:16 +00:00
Steve Bavin
73e2f7bd6b Minor simplification #2; replace unneeded variable filebufused with a macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11201 a1c6a512-1295-4272-9138-f99709370657
2006-10-12 16:51:22 +00:00
Michael Sevakis
76a6aaa278 Added dithering for 24 bit backdrops on 16 bit displays. FORMAT_DITHER should be specified to dither a bitmap when loading. Feel free to flame me if I got the RGB565SWAPPED thing wrong.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11180 a1c6a512-1295-4272-9138-f99709370657
2006-10-11 01:26:09 +00:00
Barry Wardell
28ce6e1091 Fix simulator build errors for iPod 3g, 4g, mini and mini2g.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11134 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 14:46:42 +00:00
Dominik Riebeling
e66b2ec450 Implement region setting for the fm tuner. The region setting affects deemphasis, band limits and step size. Fixes FS#5929, FS#5928.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11133 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 12:40:13 +00:00
Barry Wardell
df9a081cda Fix iPod bootloader build errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11131 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 11:27:47 +00:00
Barry Wardell
d4945dc0d0 Move all iPod targets into the target tree. FS#5890
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 10:58:51 +00:00
Steve Bavin
519c486fc0 ...and tidy up
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11127 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 10:23:18 +00:00
Steve Bavin
1a11d43ed2 Oops; second bad commit. Three strikes and I'm out I guess.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11126 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 10:19:13 +00:00
Steve Bavin
d49c810ec9 Add CPU boost tracker to see where boosts are coming from
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11125 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 10:07:03 +00:00
Barry Wardell
c6ebfcce2c Enable ATA poweroff option on H10 for a nice increase in battery life.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11107 a1c6a512-1295-4272-9138-f99709370657
2006-10-02 16:19:36 +00:00
Barry Wardell
03aa9c9fea Apply Mike Sevakis' recent sleep/contrast fixes for the X5 LCD driver to the H10 20GB LCD driver. With this fix, sleeping the LCD on the H10 20GB now works as it should so enable it as an option to save extra battery.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11085 a1c6a512-1295-4272-9138-f99709370657
2006-09-28 12:06:56 +00:00
Michael Sevakis
6dcb315c2e This should get rid of H300 sim error.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11073 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 21:17:18 +00:00
Michael Sevakis
5a9bd4adc4 Yup. H300 errors fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11072 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 20:59:27 +00:00
Michael Sevakis
e636492791 Fixed remote contrast settings. Maybe'll get some build errors here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11071 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 20:46:17 +00:00
Dave Chapman
491458e418 Add wheel_status() function to the ipod "4g" button driver (i.e. all ipods excluding the 3G and 1st gen mini) to read the absolute position the wheel is being touched (0..95 - clockwise from top, or -1 for untouched), plus the wheel_send_events(bool) function to disable/enable sending normal scrolling events - based on patch #4721 from Mikael Magnusson.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11068 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 19:25:52 +00:00
Dave Chapman
c8dbe047ff Patch #6067 from Robert Keevil - enable headphone detection for the remaining ipods (mini 1g/2g and ipod 3g)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11060 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 11:15:33 +00:00
Linus Nielsen Feltzing
537c7546f9 Patch #4899 by Robert Keevil - Automatic pause on iPod when removing the headphones
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11057 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 10:03:56 +00:00
Barry Wardell
2404913f45 Enable LCD invert setting in the menu for all targets that support it. This adds the menu option to H10 20GB and X5 builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11048 a1c6a512-1295-4272-9138-f99709370657
2006-09-25 17:03:18 +00:00
Rani Hod
a875ed5d57 Accepted FS#6023 - ADX codec (some kind of ADPCM).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11046 a1c6a512-1295-4272-9138-f99709370657
2006-09-25 16:13:05 +00:00
Barry Wardell
5a79b4e015 Add ADC to I/O ports debug menu on H10. Fix battery level reading empty when starting up on H10. Calibrated battery for H10 20GB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11036 a1c6a512-1295-4272-9138-f99709370657
2006-09-23 17:47:54 +00:00
Barry Wardell
e63e62b2a1 Detect charger connected on H10. No need to sleep(HZ) when powering off.
More sensible USB support for H10: plugging in puts it into USB charging mode and leaves Rockbox usable, holding 'O' while pluggin in the USB cable will reboot the H10 (continuing to hold 'O' starts it up in UMS mode), holding any other button brings up the USB screen as previously.
Implement system_reboot() for all PP5020 devices.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11015 a1c6a512-1295-4272-9138-f99709370657
2006-09-20 23:21:59 +00:00
Miika Pekkarinen
eae4bd337e Include "config.h" to make sure priority stuff is properly included.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10974 a1c6a512-1295-4272-9138-f99709370657
2006-09-17 15:10:22 +00:00
Miika Pekkarinen
a85044bf9e New scheduler, with priorities for swcodec platforms. Frequent task
switching should be more efficient and tasks are stored in linked
lists to eliminate unnecessary task switching to improve performance.
Audio should no longer skip on swcodec targets caused by too CPU
hungry UI thread or background threads.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
2006-09-16 16:18:11 +00:00
Michael Sevakis
3d2e10bcbd Added remote backlight on hold option to players with remote hold switch. Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 02:00:40 +00:00
Barry Wardell
24ca76ffec H10 fixes: Split LCD driver up into two drivers, one for each LCD type. Improvements to 20GB LCD driver - support for enable/disable, contrast adjustment, make the update code clearer and ~4% faster, support for flipping, support for invert. Fix CPU frequency for both models. Fix default battery capacity for 5/6GB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10910 a1c6a512-1295-4272-9138-f99709370657
2006-09-09 19:02:18 +00:00
Barry Wardell
9b1dd444b0 Fix display bugs with H10 LCDs (both 20GB and 5/6GB models). The 20GB LCD is actually a 128x160 LCD rotated 90 degrees, so we need to take account of this. The 5/6GB LCD is not rotated by 90 degrees but was treated as if it was (FS #5925, patch thanks to Thilo-Alexander Ginkel)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10886 a1c6a512-1295-4272-9138-f99709370657
2006-09-04 23:10:27 +00:00
Barry Wardell
8c834bd57c Disable cpu frequency adjusting for H10 for now as it is causing freezes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10878 a1c6a512-1295-4272-9138-f99709370657
2006-09-03 21:38:16 +00:00
Miika Pekkarinen
8aa6180e92 Fixed the errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10854 a1c6a512-1295-4272-9138-f99709370657
2006-09-02 08:14:52 +00:00