Commit graph

1078 commits

Author SHA1 Message Date
Linus Nielsen Feltzing
5f655c93f9 Patch #5639 by Ulrich Pegelow, inits the M5636 USBOTG chip on the X5 to reduce the battery consumption.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10208 a1c6a512-1295-4272-9138-f99709370657
2006-07-13 07:40:30 +00:00
Jens Arnold
977169ea7a H300: Rudimentary driver for the ISP1362 USB on-the-go controller. For now it just sends the chip to sleep, solving the poor battery runtime issue.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10128 a1c6a512-1295-4272-9138-f99709370657
2006-06-16 17:34:18 +00:00
Peter D'Hoye
df686b89e7 Tweaks to reduce an iriver recording glitch to a minimum. Removed yields from i2c code as a means to shorten the duration, rearranged order of changing to always cause dips and never peaks. Also some code policing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10122 a1c6a512-1295-4272-9138-f99709370657
2006-06-14 23:36:47 +00:00
Linus Nielsen Feltzing
53de165193 Added a comment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10118 a1c6a512-1295-4272-9138-f99709370657
2006-06-13 12:29:27 +00:00
Jens Arnold
0dd1f8ec11 Work-in-progress rework of charging status reading & display: * Changed several charging related HAVE_* macros into one multi-value CONFIG_CHARGING. * Always use proper macros for charging states. * Battery symbol charging animation now starts from current level on all targets with charging. Two-colour animation kept for non-b&w targets. Round down fill level while charging as before, but round to nearest pixel value for discharging on all targets. * Charging anim fixed on player. * Some code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10080 a1c6a512-1295-4272-9138-f99709370657
2006-06-06 22:23:52 +00:00
Peter D'Hoye
9ae0c957c8 Remove previous fix as it seems to cause lock-ups when used with a remote.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10037 a1c6a512-1295-4272-9138-f99709370657
2006-06-03 08:56:58 +00:00
Peter D'Hoye
eca4a49a08 Do not allow interrupts between the two calls that set the recording gain. Fixes volume glitches when changing recording gain.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10031 a1c6a512-1295-4272-9138-f99709370657
2006-06-02 19:32:36 +00:00
Hristo Kovachev
372ae28da9 Oops, move out the define from the #ifndef SIMULATOR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9956 a1c6a512-1295-4272-9138-f99709370657
2006-05-18 11:27:10 +00:00
Hristo Kovachev
8fb9f023ac Use more proper default contrast for the iriver lcd remotes, also reset
the contrast in the same way as it is for the main screen


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9955 a1c6a512-1295-4272-9138-f99709370657
2006-05-18 11:12:54 +00:00
Jens Arnold
44a759528d Iriver: Don't scroll remote LCD lines 'in the dark', i.e. with the remote unplugged.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9951 a1c6a512-1295-4272-9138-f99709370657
2006-05-16 22:27:31 +00:00
Jens Arnold
a238ab9df8 Iriver: Moved the handling of the UDA1380 split gain (analog preamp + decimator gain) into the UDA driver. * All: Settings structure sorted & cleaned up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9927 a1c6a512-1295-4272-9138-f99709370657
2006-05-14 23:34:24 +00:00
Peter D'Hoye
784b4c9a5b Correctly test on volume id flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9925 a1c6a512-1295-4272-9138-f99709370657
2006-05-13 21:47:27 +00:00
Jens Arnold
119d5b72ac Iriver: Don't power the UDA1380 WSPLL as we don't use it. This is required according to the datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9913 a1c6a512-1295-4272-9138-f99709370657
2006-05-11 19:19:35 +00:00
Jens Arnold
61b8604a9c Ondio: (Hopefully) fix the occasional freezes during playback: Use DMA channel 0 for MMC transfer. As it has higher priority than channel 3 (used for playback), the risk of serial receive overruns is minimised.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9885 a1c6a512-1295-4272-9138-f99709370657
2006-05-07 20:20:27 +00:00
Linus Nielsen Feltzing
33bd218010 Patch #5182 by Liberman Shachar - Vertical screen scroll bug fix (inverse bar crop in vertical scroll)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9881 a1c6a512-1295-4272-9138-f99709370657
2006-05-06 06:37:23 +00:00
Peter D'Hoye
69433c8667 Fix fillrect calculation error for 'Screen scrolls out of view'. Fixes bug 5267. Also some minor code policing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9871 a1c6a512-1295-4272-9138-f99709370657
2006-05-03 20:22:03 +00:00
Dave Chapman
f79d35a25e ipods - First implementation of pcf50605_init() function. This enables the power-out in the Dock connector, which may help getting some accessories working - if they don't need to talk to the ipod via the Apple Accessory Protocol. Thanks to julius in IRC for testing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9860 a1c6a512-1295-4272-9138-f99709370657
2006-05-02 08:08:10 +00:00
Jens Arnold
a8b0a6de2f ATA driver: * Don't lie to gcc about which parameters the assembler optimised loops touch. Fixes problems with higher optimisation levels. Some slight tweaks for SH1. * Prevent the assembler loops from being inlined as this is less efficient than having them in IRAM (only relevant at higher optimisation levels).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9828 a1c6a512-1295-4272-9138-f99709370657
2006-04-29 08:33:10 +00:00
Jens Arnold
a7c20ac760 Replaced remaining '#pragma interrupt' with __attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
2006-04-26 20:22:27 +00:00
Jens Arnold
67604c960b Ipods, X5: Proper backlight behaviour on buton unlock.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9788 a1c6a512-1295-4272-9138-f99709370657
2006-04-24 07:14:16 +00:00
Jens Arnold
2aa85a2b6a Iriver: Reworked remote detection & init: * Monitor the remote type & try to init the LCD for 20 seconds after plugin. Fixes wrong type detection & non-working LCD when plugging in slowly, and inits much faster if the remote is already plugged at boot (no delayed logo). * Don't try to init the LCD for a non-LCD remote in order to save CPU power. * More precise scroll timing, taking drawing time & other delays into account.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9783 a1c6a512-1295-4272-9138-f99709370657
2006-04-24 01:21:11 +00:00
Frank Dischner
54d757b0c5 Prevent scroll wheel on mini 1g from over-scrolling when scrolling very fast.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9740 a1c6a512-1295-4272-9138-f99709370657
2006-04-20 07:44:58 +00:00
Frank Dischner
5d9eccd85b Fix button driver for ipod mini 1G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9732 a1c6a512-1295-4272-9138-f99709370657
2006-04-19 18:06:56 +00:00
Jens Arnold
b75ad888f9 Ooops^2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9696 a1c6a512-1295-4272-9138-f99709370657
2006-04-17 00:09:02 +00:00
Jens Arnold
f2897e8180 H300: Optimised PCF50606 driver, significantly reduces CPU power drain from the button tick (with both main & remote buttons: 50%->13% at 11MHz, 12%->6% at 45MHz): * Delay is adapted to the current CPU clock, aiming at constant 400kHz i2c clock. * Reduced number of port accesses (accessing GPIO is very slow, especially with the atomic boolean instructions) by implementing an open-collector-like behaviour. * Time-critical functions implemented in assembler.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9693 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 23:16:32 +00:00
Jens Arnold
5380376dbc H300 (and H1x0): Improved button debouncing. Solves the possible 'fake doubleclick' effect by not pretending no button is pressed if the reading is unstable. Now it uses the latest stable reading instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9691 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 22:28:24 +00:00
Jens Arnold
923e3a4496 Coldfire: Use the maximum possible i2c clock for the audio codec. Both the UDA1380TT and the TLV320AIC23B can handle up to 400kHz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9656 a1c6a512-1295-4272-9138-f99709370657
2006-04-14 07:56:02 +00:00
Jens Arnold
7dea1f9234 Another slight tweak.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9639 a1c6a512-1295-4272-9138-f99709370657
2006-04-12 21:04:27 +00:00
Jens Arnold
8d5c94a7c7 H1x0/H300 remote LCD driver rework: * Completely fix remote LCD ticking for H300, by not deasserting CS after every single access. CS deactivation is now handled with a 100ms timeout by the tick task. If this really fixes remote ticking for all H300s with 'reduce ticking' disabled, we should remove that option for H300. * Reworked ticking reduction for H1x0. Bytes are now send in sequence, without stretching every single bit, but longer pauses between bytes instead. Both CLK and DATA are handled in a way to minimise their potential to cause ticking (CLK active as short as possible, DATA always high outside of byte transfers, DATA high->low as close as possible to CLK low->high). * Driver is ~10% faster with 'reduce ticking' disabled, and ~65% faster with it enabled. (not @ 11 MHz)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9631 a1c6a512-1295-4272-9138-f99709370657
2006-04-11 23:42:36 +00:00
Daniel Stenberg
d2848f3d72 moved the LCD framebuffer to IRAM for iAudio X5 - gives ~40% speed boost
I also extended the iram size properly since the 5250 coldfire has 128K


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9604 a1c6a512-1295-4272-9138-f99709370657
2006-04-11 10:37:37 +00:00
Jens Arnold
6b2f58b3ad H300: Slightly faster lcd update (noticeable with partial updates only).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9574 a1c6a512-1295-4272-9138-f99709370657
2006-04-09 11:34:53 +00:00
Peter D'Hoye
cbd21405fc Comparing short filenames for uniqueness used 1 char too much, causing it to create identical short filenames. Fixes bugreport #5030.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9563 a1c6a512-1295-4272-9138-f99709370657
2006-04-08 12:17:51 +00:00
Jens Arnold
4ac150e8d3 Get rid of the redundant APPLE_* macros. * Fix wrong comments in lcd-ipod.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9561 a1c6a512-1295-4272-9138-f99709370657
2006-04-08 09:08:38 +00:00
Jens Arnold
a5d2a28089 lcd_blit() (with mono->2bit expansion) implemented for greyscale ipods. Changed the flip mode maths for the mini LCD for coexistence with lcd_blit().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9540 a1c6a512-1295-4272-9138-f99709370657
2006-04-06 21:05:59 +00:00
Jens Arnold
5106e228cc Since we poll buttons every tick now, the extra if() checking the polling interval was obsolete. Pointed out by Mikael Magnusson. * Some tweaks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9536 a1c6a512-1295-4272-9138-f99709370657
2006-04-06 18:58:42 +00:00
Jens Arnold
cef83c782f Do extra filtering in H300 (and H100) main unit button reading to suppress wrong readings during voltage transitions. * Optimised multi-button ADC reads to use a balanced binary tree with an initial check for 'any button' to determine the pressed button. * The iriver button driver wouldn't have detected main unit (ADC-connected) buttons as long as remote buttons (ADC-connected) were pressed (btn = value; vs. btn |= value), * Do extra filtering in the recorder v1 OFF button read, to suppress spurious OFF events. * Some more tweaks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9530 a1c6a512-1295-4272-9138-f99709370657
2006-04-06 07:27:11 +00:00
Jens Arnold
fcab617331 Grayscale iPods: Bit-flipped the 2bit LCD driver to use the same format as apple. No more mirrored display when loading retailos, after a bootloader update.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9478 a1c6a512-1295-4272-9138-f99709370657
2006-04-04 00:55:16 +00:00
Jens Arnold
3a3304fa31 greyscale iPod LCD: Working display flip. * Correct register definitions for HD66753. * Correct 1/3 and 2/3 greylevels. * Some tweaks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9414 a1c6a512-1295-4272-9138-f99709370657
2006-04-01 23:48:03 +00:00
Jens Arnold
8c6e737bfb Greyscale iPod LCD driver: Fixed lcd_update_rect() to work properly for partial updates. Working display invert. Use register name macros. Some cleanup & optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9378 a1c6a512-1295-4272-9138-f99709370657
2006-03-31 07:32:38 +00:00
Jens Arnold
3c39c2b034 Move definitions to their proper place
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9368 a1c6a512-1295-4272-9138-f99709370657
2006-03-30 20:48:15 +00:00
Jens Arnold
7e0ea2153c iPod mini 2G: Define correct audio codec, and fix WM8731 driver to work with PP5020. Audio is working now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9367 a1c6a512-1295-4272-9138-f99709370657
2006-03-30 20:18:02 +00:00
Jens Arnold
dc8de7ea3d iPod mini 2G: Use iPod 4G button driver instead of special minin 1G code. Buttons working now, rockbox no longer hangs at boot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9364 a1c6a512-1295-4272-9138-f99709370657
2006-03-30 18:14:08 +00:00
Jens Arnold
d3feb78e40 Initial support for iPod mini 2G: Rockbox boots, LCD driver is working. No sound, no buttons, and hangs at the boot screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9363 a1c6a512-1295-4272-9138-f99709370657
2006-03-30 17:29:21 +00:00
Linus Nielsen Feltzing
e62152ddf9 Better sound quality on the iAudio X5 using the correct MCLK frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9354 a1c6a512-1295-4272-9138-f99709370657
2006-03-30 10:01:04 +00:00
Linus Nielsen Feltzing
d1a93d8a0c Simplification and correction of the TLV320 driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9326 a1c6a512-1295-4272-9138-f99709370657
2006-03-28 20:36:59 +00:00
Linus Nielsen Feltzing
66a2952230 Enable I2C bus 1 on the iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9325 a1c6a512-1295-4272-9138-f99709370657
2006-03-28 20:36:04 +00:00
Brandon Low
5c950f4380 Reduce the appearance of volume change clicks by using the wmcodec's zero-cross detect feature
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9290 a1c6a512-1295-4272-9138-f99709370657
2006-03-27 14:46:15 +00:00
Brandon Low
bdc52f4649 Code police
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9287 a1c6a512-1295-4272-9138-f99709370657
2006-03-27 14:14:06 +00:00
Daniel Stenberg
f4ac85ac06 ok, this is the correct PLAY/REC swap!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9270 a1c6a512-1295-4272-9138-f99709370657
2006-03-26 22:41:58 +00:00
Hristo Kovachev
a70c6b9b1e Patch #4913 by David Rothenberger with some changes by me: add only backlight on first keypress to the lcd remotes, too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9253 a1c6a512-1295-4272-9138-f99709370657
2006-03-25 19:16:45 +00:00