Commit graph

184 commits

Author SHA1 Message Date
Daniel Ankers
5511611622 Fix blitting on Sansa so Mpegplayer works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12879 a1c6a512-1295-4272-9138-f99709370657
2007-03-21 13:25:30 +00:00
Barry Wardell
3bf7f29312 Oops, shouldn't have committed this just yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12866 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 22:19:30 +00:00
Barry Wardell
7cd559dde0 Oops, the mi4 magic was being looked for in the wrong place when decrypting. Also decrease verbosity of PP bootloader a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12865 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 22:18:35 +00:00
Daniel Ankers
b22e15b2bd Sansa LCD: Make the second framebuffer static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12849 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 11:19:20 +00:00
Daniel Ankers
15dfcd13ef Improved LCD driver for Sansa. Uses double-buffering to cure the flickering. Stops DMA during device initialization, which should stop the occasional hangs - based on FS#6859 by Antonius Hellmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12848 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 10:52:02 +00:00
Michael Sevakis
e1dd10ddfb SWCODEC: Get rid of extra swap buffer and get back 512K of RAM or 100K if the players RAM is <= 1MB. Make any needed changes to things to stabilize and facilitate this including removing flattening out initialization. Comment some things heavily. Fix a few logfs I didn't want to see the compiler complaining about.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12843 a1c6a512-1295-4272-9138-f99709370657
2007-03-19 22:04:17 +00:00
Barry Wardell
1146418494 Fix problem where power_off() on the H10 returns before the device is actually powered off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12801 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 13:52:16 +00:00
Barry Wardell
73106a2a69 Fix problem where power_off() on the Sansa returns before the device is actually powered off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12788 a1c6a512-1295-4272-9138-f99709370657
2007-03-15 22:17:09 +00:00
Barry Wardell
7f4f9aead7 Improved ADC driver for AS3514 (used in PP5024 - ie. Sansa e200) based off datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12745 a1c6a512-1295-4272-9138-f99709370657
2007-03-13 01:50:13 +00:00
Daniel Ankers
dfad406aa1 Sound for Sansa E200 - based on work by myself, Rene Peinthor, Barry Wardell and Christian Gmeiner from the AS3514 datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12727 a1c6a512-1295-4272-9138-f99709370657
2007-03-11 17:38:08 +00:00
Michael Sevakis
c2d2106fd7 Audio Init: Just can't stand that heirarchy. Add one level of abstraction. Might come in handy anyhow. Use sound.h instead of the conditional includes for audio hardware headers. If someone doesn't like that, yell at my evil twin. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12718 a1c6a512-1295-4272-9138-f99709370657
2007-03-11 06:21:43 +00:00
Michael Sevakis
c5cd27f5d1 Pop a stub in there for the e200 until playback is ready. Move it to the proper place at that time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12717 a1c6a512-1295-4272-9138-f99709370657
2007-03-11 05:48:58 +00:00
Michael Sevakis
5d63776a24 Reenable aynchronous audio init stage. Really just single stage with aynchronous enabling of outputs. Keeps audio_init last so prior init steps can use the audiobuffer in any desired way. Audio will be fully initialized by the time the UI is entered. Playback of voice or audio will be delayed properly until audio hardware is ready.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12714 a1c6a512-1295-4272-9138-f99709370657
2007-03-11 05:04:48 +00:00
Michael Sevakis
8867d00141 More catching up on old work. Refine audio interface setup on Coldfire. Stop the funky glitching on the iAudio stuff when starting recording esp. at 88.2kHz. (probably due to the bidi interface). iRivers don't seem to care what you do. TLV320 still seems to have a little trouble selecting it's filters correctly for 88.2kHz or it could be some odd phasing effect. Get rid of the horrible reset parameter in pcm_apply_settings as it can decide for itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12618 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 08:14:27 +00:00
Daniel Ankers
82f9056988 Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
2007-03-04 20:06:41 +00:00
Barry Wardell
38b64f7b4b Get rid of C99 style variable declaration. Also, add one more use of #define instead of inl/outl that I missed last time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12591 a1c6a512-1295-4272-9138-f99709370657
2007-03-04 16:06:54 +00:00
Barry Wardell
169ebdbda7 Some more replacing of inl/outl with register #define's (doesn't change end-result binary). Add lots more #define's based on the ipodlinux wiki and some extrapolation.
Also add PortalPlayer SoC version to the HW info debug screen.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12575 a1c6a512-1295-4272-9138-f99709370657
2007-03-03 23:37:17 +00:00
Barry Wardell
8b061252c4 Replace some inl/outl with register #define's instead. Also tidy up pp5020.h so that it's in increasing address order.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12574 a1c6a512-1295-4272-9138-f99709370657
2007-03-03 17:25:20 +00:00
Marcoen Hirschberg
58011f9504 disable LCD poweroff for now until problems with the remote control and headphone detection are fixed (and it doesn't seem to save any battery anyway)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12494 a1c6a512-1295-4272-9138-f99709370657
2007-02-26 10:15:02 +00:00
Jens Arnold
2906c36df3 Moved ipod LCD code to target tree.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12479 a1c6a512-1295-4272-9138-f99709370657
2007-02-25 13:11:02 +00:00
Barry Wardell
f05b9e3bd5 Get rid of some outl/inl in favour of #define.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12442 a1c6a512-1295-4272-9138-f99709370657
2007-02-21 22:25:14 +00:00
Jens Arnold
51223e5395 Introduced LCD_FBHEIGHT in addition to the already existing LCD_FBWIDTH to ease framebuffer handling a bit. Added equivalent definitions for the remote LCD.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12419 a1c6a512-1295-4272-9138-f99709370657
2007-02-20 19:31:34 +00:00
Barry Wardell
e9a183573b Battery reading support for Sansa. Still needs calibration of voltage->percent mappings and remaining time. Thanks to Rene Peinthor for doing most of the work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12417 a1c6a512-1295-4272-9138-f99709370657
2007-02-20 15:55:38 +00:00
Barry Wardell
e3a55f2bdc FS#6675: Add lcd_yuv_blit() for the Sansa. Thanks to Rene Peinthor. This makes mpegplayer run on the Sansa. Button detection in mpegplayer doesn't work because it is done in the audio thread and that thread locks up because we don't have audio support yet. So for now it's necessary to do a hardware power off to quit mpegplayer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12404 a1c6a512-1295-4272-9138-f99709370657
2007-02-19 21:22:32 +00:00
Jens Arnold
c652218d14 Fix remaining CONFIG_TUNER checks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12385 a1c6a512-1295-4272-9138-f99709370657
2007-02-18 08:46:12 +00:00
Jonathan Gordon
ec73eb0be1 really fix red builds this time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12380 a1c6a512-1295-4272-9138-f99709370657
2007-02-18 02:34:36 +00:00
Daniel Stenberg
20a5926d2e build with -Wundef to make sure we have spelled the defines right in #if lines
and have the proper includes included etc


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12360 a1c6a512-1295-4272-9138-f99709370657
2007-02-17 21:54:17 +00:00
Jens Arnold
471d881979 ARM targets: Making a few functions non-static allows us to get rid of -ffunction-sections, significantly decreasing binary size and making things run a bit faster because static functions are no longer long_call.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12349 a1c6a512-1295-4272-9138-f99709370657
2007-02-17 11:19:14 +00:00
Dave Chapman
139fb1af20 Move dr_controller_setup() to usb_init_device() and add a call to dr_controller_stop() if we detect USB disconnection. This seems to improve reliability when connecting to Mac OS X - Rockbox previously killed its USB stack since the introduction of the new USB detection code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12342 a1c6a512-1295-4272-9138-f99709370657
2007-02-17 01:32:39 +00:00
Barry Wardell
3a6d4791d7 No functional changes, just reorganising code:
1) Move ARC OTG USB (used in PP502x) driver code into it's own file, drivers/arcotg_udc.c. Hopefully in  the future we will be able to adapt more of the Linux driver and add it to this file.
2) Rename mx31.h to arcotg_udc.h to reflect the file the code came from. It's also a more accurate name for the USB controller.
3) Get rid of one more inl()/outl() in usb-pp.c and use the relevant #define instead.
4) Add dr_controller_stop(). Not used yet.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12340 a1c6a512-1295-4272-9138-f99709370657
2007-02-16 22:13:21 +00:00
Karl Kurbjun
b0810520be Gigabeat Cradle USB Support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12284 a1c6a512-1295-4272-9138-f99709370657
2007-02-12 07:05:15 +00:00
Marcoen Hirschberg
e645e2dcf2 Fix the delay loops. Without scaling the CPU is always at 300MHz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12229 a1c6a512-1295-4272-9138-f99709370657
2007-02-08 10:21:37 +00:00
Dave Chapman
4da04b77e2 Fix USB detection on ipods and other portalplayer targets - Rockbox now correctly distinguishes between a USB connection to a computer and a connection to a USB AC charger. Based on the experimental USB code in FS #6494 by Barry Wardell. Closes FS #4724.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12198 a1c6a512-1295-4272-9138-f99709370657
2007-02-04 21:46:01 +00:00
Daniel Ankers
67ec6177a7 Work around a bug in the Sansa flash driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12187 a1c6a512-1295-4272-9138-f99709370657
2007-02-04 03:20:36 +00:00
Barry Wardell
a7af649766 Backlight support for Sansa, including brightness. Thanks to Rene
Peinthor and FS#6608.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12186 a1c6a512-1295-4272-9138-f99709370657
2007-02-03 13:39:20 +00:00
Daniel Ankers
fa7dd74cf5 Increase disk thread stack on the Sansa in line with the changes in r12093. Fixes the recent Sansa crashes. Thanks to Rene Peinthor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12177 a1c6a512-1295-4272-9138-f99709370657
2007-02-01 20:22:19 +00:00
Barry Wardell
003e084a7a Power off on the Sansa more in line with how the OF does it (just change the relevant bit rather than the whole byte).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12166 a1c6a512-1295-4272-9138-f99709370657
2007-01-31 19:30:32 +00:00
Barry Wardell
83c831deae Add power off for the Sansa. Thanks to Antonius Hellmann for figuring out how using the Sansa emulator in FS #6524.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12165 a1c6a512-1295-4272-9138-f99709370657
2007-01-31 17:10:01 +00:00
Daniel Ankers
df8446a72b Oops - fix PortalPlayer builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12129 a1c6a512-1295-4272-9138-f99709370657
2007-01-27 20:39:09 +00:00
Daniel Ankers
ec0a362ea2 More PortalPlayer I2C unification work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12128 a1c6a512-1295-4272-9138-f99709370657
2007-01-27 20:09:57 +00:00
Daniel Ankers
e80470e958 Fix a bug in the Sansa flash driver. Other bugs remain, as it does not pass the stress test yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12127 a1c6a512-1295-4272-9138-f99709370657
2007-01-27 18:57:57 +00:00
Daniel Ankers
e9a2caee2b Unify I2C driver for all PortalPlayer targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12126 a1c6a512-1295-4272-9138-f99709370657
2007-01-27 17:17:52 +00:00
Barry Wardell
adc349891e Clean up PP5002 I2C code (no functional changes):
Move into target tree.
Use #defines instead of inb/outb.

Also restore comments in PP5020 I2C code.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12124 a1c6a512-1295-4272-9138-f99709370657
2007-01-27 15:20:30 +00:00
Barry Wardell
5e765b2ea2 Clean up PP5020 I2C code (no functional changes):
Move into target tree.
Use #defines instead of inb/outb.
Whitespace cleanup.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12123 a1c6a512-1295-4272-9138-f99709370657
2007-01-27 14:22:24 +00:00
Jens Arnold
5d51784faa Assembler optimised ATA transfer loops for ARM targets. Only used for PP5020/5021/5022 targets atm. PP5002 seems to have problems with it not directly related to the asm code itself, and the gigabeat doesn't profit from it, probably because the CPU isn't the bottleneck even without optimisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12099 a1c6a512-1295-4272-9138-f99709370657
2007-01-24 00:12:08 +00:00
Steve Gotthardt
f97d24ff66 Retimed the i2c delay loops since we can be boosted or not
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12084 a1c6a512-1295-4272-9138-f99709370657
2007-01-20 22:16:01 +00:00
Barry Wardell
041e5dceca On the H10 when we power the disk on again after spindown and poweroff we need to give it a little while to turn back on before we should try to access it. This should fix problems with disk accesses when coming from a disk poweroff state (related discussion in FS#6421).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12081 a1c6a512-1295-4272-9138-f99709370657
2007-01-20 01:21:47 +00:00
Jens Arnold
4012aaeb1d iPod G3: Touching the wheel now resets the poweroff timer the same way as on the other iPods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12071 a1c6a512-1295-4272-9138-f99709370657
2007-01-19 07:33:23 +00:00
Jens Arnold
11b06f0423 iPods: Touching the wheel now resets the poweroff timer, so the iPod no longer shuts down unexpectedly while operating the wheel only, e.g. in the text viewer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12068 a1c6a512-1295-4272-9138-f99709370657
2007-01-18 22:10:29 +00:00
Marcoen Hirschberg
487e6a1d22 remove duplicate code and fix comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12066 a1c6a512-1295-4272-9138-f99709370657
2007-01-18 15:05:06 +00:00