Alexander Levin
fb2d6a7a3a
Respect the 'scroll delay' setting more accurately between scrolling rounds
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29123 a1c6a512-1295-4272-9138-f99709370657
2011-01-23 21:49:49 +00:00
Michael Sevakis
480c663e5b
i.MX31: Now that it matters because there's a debug screeen that allows changing things while running, some DVFS/DPTC stuff has to be done more carefully. Trim out some stuff and group functions better as well.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29122 a1c6a512-1295-4272-9138-f99709370657
2011-01-23 20:21:35 +00:00
Jens Arnold
330676491f
Simplify x0/x1 calculation for iPod Color some more, and fix display on type 0 LCD (iPod Photo).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29120 a1c6a512-1295-4272-9138-f99709370657
2011-01-23 16:24:52 +00:00
Andree Buschmann
322a51d437
Remove code that was unintentionally kept in a resynchronized patch in FS#3001. This closes FS#11873.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29119 a1c6a512-1295-4272-9138-f99709370657
2011-01-23 12:24:56 +00:00
Michael Sevakis
6546cd1282
Gigabeat S: Keep LCD options in sync even when display is turned off.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29118 a1c6a512-1295-4272-9138-f99709370657
2011-01-22 22:48:43 +00:00
Michael Sevakis
90aafeae67
Fix yellow. Left an unused temp variable.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29117 a1c6a512-1295-4272-9138-f99709370657
2011-01-22 21:11:29 +00:00
Michael Sevakis
0a98e8af9d
i.MX31: Allow interrupts in thread context, not just ISR context, during the lengthy DVFS voltage ramp-up delay. Also, explicitly enable them just before mc13783_init since that does anyway because of the PMIC write inside it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29116 a1c6a512-1295-4272-9138-f99709370657
2011-01-22 21:04:25 +00:00
Michael Sevakis
6d2e7769e2
Better boost calculation for multifrequency CPUs. Frequencies between minimum and maximum count as fractional boost.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29115 a1c6a512-1295-4272-9138-f99709370657
2011-01-22 18:30:24 +00:00
Michael Sevakis
98246b82b9
i.MX31: Add a debug menu to play around with DVFS/DPTC settings for fun, testing or benchmarking purposes. Can set the CPU frequency working point, whether DPTC voltage scaling is enabled and change the software-programmable load tracking weights.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29113 a1c6a512-1295-4272-9138-f99709370657
2011-01-22 16:58:17 +00:00
Michael Sevakis
060609a202
i.MX31: Busy wait for a couple microseconds at most then sleep until next tick when polling drive status. This prevents pointless jumps to overdrive speed from perceived high load when waiting for lengthy ops to complete such as spinup and sleep.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29108 a1c6a512-1295-4272-9138-f99709370657
2011-01-22 09:23:31 +00:00
Andree Buschmann
30b29f1866
Fix or at least significantly improve FS#11830. With introduction of ATA DMA for PP502x a special treatment of the IDE0_CFG register for the iPod nano (see FS#7510) was lost.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29106 a1c6a512-1295-4272-9138-f99709370657
2011-01-21 23:32:57 +00:00
Alexander Levin
52c6789450
Add a delay between text scroll rounds when scrolling forward similarly to how it's done when scrolling bidirectionally (FS#11892)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29104 a1c6a512-1295-4272-9138-f99709370657
2011-01-21 17:16:45 +00:00
Maurus Cuelenaere
a6debb65fa
Fix red: defined(x || y) is not valid C preprocessor
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29103 a1c6a512-1295-4272-9138-f99709370657
2011-01-21 12:46:00 +00:00
Maurus Cuelenaere
476e464901
Fix Onda VX747+ LCD not working on boot
...
Same fix as in r29083.
Flyspray: FS#11896
Author: Purling Nayuki
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29102 a1c6a512-1295-4272-9138-f99709370657
2011-01-21 12:38:03 +00:00
Michael Sevakis
485aecd923
WM8978: sound.c weirdness strikes again. Prescaler values have to be in centibels.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29100 a1c6a512-1295-4272-9138-f99709370657
2011-01-21 08:31:40 +00:00
Michael Sevakis
863c03f2ae
Gigabeat S: Renovate bootloader a bit to show splash, implement verbose, shutdown on low battery, handle hold-switch-on and wait only so long for USB if a USB charger is inserted at boot instead of being connected to a host. 'Bootloader USB mode' display is just part of normal printf stream now. Move interrupt stacks into .bss area so they aren't loaded (for firmware too).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29099 a1c6a512-1295-4272-9138-f99709370657
2011-01-21 07:05:51 +00:00
Thomas Martitz
5230362515
Fix FS#11881. Patch by Thomas Jarosch
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29098 a1c6a512-1295-4272-9138-f99709370657
2011-01-20 22:27:28 +00:00
Michael Sevakis
2da0f9bcfd
Fuze v2: Do button reading more efficiently by mapping button codes directly to the GPIO pin states where possible (all but 'home' and hold). This makes plugins incompatible; up the min version and sort things.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29097 a1c6a512-1295-4272-9138-f99709370657
2011-01-20 17:11:23 +00:00
Michael Sevakis
5f52f6ee01
Fuze V2: Fix hold switch behavior. Add a GPIOx_PIN_MASK macro to AS3525.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29096 a1c6a512-1295-4272-9138-f99709370657
2011-01-20 14:26:58 +00:00
Michael Sevakis
1b779e0461
PP502x USB: It seems r29087 introduced additional parasitic current consumption after USB disconnect. So, reinitialize the controller just like at startup when disabling USB, which also happens to fix FS#10719.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29094 a1c6a512-1295-4272-9138-f99709370657
2011-01-20 06:41:05 +00:00
Nils Wallménius
3b8f93af0a
Enable AB repeat for the Gigabeat S, this will break lang string/voice clip order for this target so update your voice file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29092 a1c6a512-1295-4272-9138-f99709370657
2011-01-19 14:34:31 +00:00
Michael Sevakis
c04f1a23c7
AS3525: Implement a true audio pause and full-resolution audio tick. Take care of a few atomic hotspots.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29088 a1c6a512-1295-4272-9138-f99709370657
2011-01-19 09:15:23 +00:00
Michael Sevakis
77075be279
Reset USB devices before turning them off or else presumably the PHY is still enabled after disconnect. After one actual connect, Windows would claim the device malfunctioned when inserting the cable for Screendump. If no connection was made before Screendump, then this wouldn't happen.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29087 a1c6a512-1295-4272-9138-f99709370657
2011-01-19 03:30:47 +00:00
Michael Sevakis
a3591827ad
Fix colors from r29084. Had some things in the wrong preprocessor blocks.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29085 a1c6a512-1295-4272-9138-f99709370657
2011-01-18 14:35:56 +00:00
Michael Sevakis
453550a687
Try to get some control over #ifdef hell in usb.c by refactoring and inline function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657
2011-01-18 14:10:06 +00:00
Maurus Cuelenaere
980225c3e2
Fix Onda VX777 LCD not working on boot
...
This fixes an issue with some Onda VX777's where the LCD doesn't seem to be
correctly inited by the OF SPL.
Based on FS#11888 by Purling Nayuki.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29083 a1c6a512-1295-4272-9138-f99709370657
2011-01-18 12:10:09 +00:00
Mustapha Senhaji
ccad6d0daf
Few whitespace fixes by Michael Hohmuth FS#11885
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29082 a1c6a512-1295-4272-9138-f99709370657
2011-01-18 00:37:17 +00:00
Michael Sevakis
0ecb0fe6b1
One change in r29068 wasn't right. Clarify comments on why it's the way it is. :)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29070 a1c6a512-1295-4272-9138-f99709370657
2011-01-17 13:12:22 +00:00
Michael Sevakis
05f6f3419a
Add a higher level USB detection that prevents fraudulent bus resets from causing USB mode to be entered. Enable for SA9200 only at this time. Also, for SA9200, use the bus power GPIO rather than the 'connector inserted' GPIO to detect the cable.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29068 a1c6a512-1295-4272-9138-f99709370657
2011-01-17 12:24:41 +00:00
Michael Sevakis
bcc0f88372
Convert PortalPlayer iRivers to use USB-mode enabled bootloader. The H10 5/6GB already has a pre-boot USB mode (so it's a little redundant there) but building them the same way is simpler.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29067 a1c6a512-1295-4272-9138-f99709370657
2011-01-17 06:50:27 +00:00
Michael Sevakis
cc0800a200
Fix r29062 warning.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29063 a1c6a512-1295-4272-9138-f99709370657
2011-01-16 01:48:15 +00:00
Michael Sevakis
76083359e0
e200v1 seems to be ok using USB-enabled bootloader. Also, include the bootloader USB .lds into the boot.lds instead of pasting into every one to keep things sane for now-- commented upon inside.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29062 a1c6a512-1295-4272-9138-f99709370657
2011-01-16 01:40:15 +00:00
Michael Sevakis
bb54c8f315
Fix problem with AMS PCM driver that caused mpegplayer lockup. It pre-decremented the size remaining where it is supposed to be post-decremented by the last transfer size in the callback. Pending callbacks also must be cleared when stopping or pausing a channel if they happened before the lock flag was set.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29059 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 12:13:56 +00:00
Michael Sevakis
f74806e8bc
Oops...have to mind the boot.lds variation in /firmware/target/arm/philips by bootloader USB mode or not.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29057 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 09:38:23 +00:00
Michael Sevakis
0647c9e1e7
Get the last warning for vibe 500 bootloader.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29056 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 09:11:38 +00:00
Michael Sevakis
71651cacb6
Fix r29053 red and a leftover use of 'usb' variable as a bool rather than int in main-pp.c.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29054 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 08:52:59 +00:00
Michael Sevakis
3a1127785b
Bootloader USB mode for PP502x. Enable only on GoGear SA9200 for the time being. Add HAVE_BOOTLOADER_USB_MODE to config if BOOTLOADER is defined to enable it. Clean up some kernel stuff a little to support it. Mess up a bunch of other stuff (hopefully not too badly).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29053 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 08:19:30 +00:00
Nils Wallménius
54424fa616
Fix warning when linking booltoaders with the new toolchain by marking .bss section NOLOAD, thanks for gevaerts for testing on his x5.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29037 a1c6a512-1295-4272-9138-f99709370657
2011-01-12 21:24:44 +00:00
Andree Buschmann
13435127b7
Fix FS#11820. Implement LCD shutdown for iPod Photo/Color and iPod nano 1G. The code was taken from FS#10034 and slightly changed to avoid white flashing when shutting off the display.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29033 a1c6a512-1295-4272-9138-f99709370657
2011-01-12 07:36:02 +00:00
Michael Sevakis
267ac4b79b
SA9200: Adjust touchpad sensitivities so that actual contact with the player is needed to cause button presses and hopefully those settings will work nicely. Add a parameter read function to the MEP driver for debugging and RE purposes; enable compilation of it if you want to use it. Make a note in power-sa9200.c about button inits.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29032 a1c6a512-1295-4272-9138-f99709370657
2011-01-11 23:48:29 +00:00
Michael Sevakis
6a73367ee6
SA9200: Implement the backlight hold handling.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29030 a1c6a512-1295-4272-9138-f99709370657
2011-01-11 04:51:24 +00:00
Michael Sevakis
ce703c85d9
SA9200: Give LCD about an 8% speedup. Sync optional LCD settings to defaults in lcd_init_device.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29029 a1c6a512-1295-4272-9138-f99709370657
2011-01-11 04:33:57 +00:00
Michael Sevakis
0dd74ca722
SA9200: Add YUV blitting, do full-screen updates more efficiently and properly clip partial updates. Plugin struct becomes incompatible for this target but leave version alone since it's still dev-only.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29028 a1c6a512-1295-4272-9138-f99709370657
2011-01-11 01:21:31 +00:00
Andree Buschmann
2e686eca63
Revert unneeded change from r29026.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29027 a1c6a512-1295-4272-9138-f99709370657
2011-01-10 21:04:10 +00:00
Andree Buschmann
9c5ce4d42e
iPod Video LCD: Avoid white flash when entering sleep mode or shutting off.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29026 a1c6a512-1295-4272-9138-f99709370657
2011-01-10 20:56:19 +00:00
Marcin Bukat
91d8fe0848
HD300 - adjust default battery capacity (based on battery benches)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29021 a1c6a512-1295-4272-9138-f99709370657
2011-01-10 14:19:05 +00:00
Michael Sparmann
dd6990d698
Fix iPod Classic LCD problems
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29009 a1c6a512-1295-4272-9138-f99709370657
2011-01-08 21:01:06 +00:00
Michael Sevakis
1b275d8ddb
Some static data is only used by .init functions. Add .initdata to declare such data (otherwise section conflicts arise). For i.MX31, use INITDATA_ATTR in the appropriate places.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29008 a1c6a512-1295-4272-9138-f99709370657
2011-01-08 20:42:51 +00:00
Michael Sparmann
44f924f8b4
Adjust iPod Classic CPU clock speed constants to at least roughly correct values
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29005 a1c6a512-1295-4272-9138-f99709370657
2011-01-08 01:05:27 +00:00
Michael Sparmann
e1eb3abee4
Oops, that didn't belong in there.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29003 a1c6a512-1295-4272-9138-f99709370657
2011-01-07 23:35:29 +00:00