summaryrefslogtreecommitdiff
path: root/firmware
AgeCommit message (Collapse)Author
2008-12-13correct battery readout for m200v4. Percentage is still uncalibrated.Dominik Wenger
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19420 a1c6a512-1295-4272-9138-f99709370657
2008-12-13Add a disconnect handler for usb storage. It doesn't do anything yet, but it ↵Frank Gevaerts
will apparently be needed to reset the audio buffer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19418 a1c6a512-1295-4272-9138-f99709370657
2008-12-13Keyclick fixup take two. It is only 88 samples (2msec) long so keep a small ↵Michael Sevakis
static buffer around for beeps less than or equal to keyclick duration. This way it operates no matter the buffer state and still won't interfere with alternate PCM operations like recording or plugin playback. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19415 a1c6a512-1295-4272-9138-f99709370657
2008-12-13PCM buffer beeping needs the audio buffer reset in order to work after ↵Michael Sevakis
operations that trash the buffer or keyclick won't be audible until playback is restarted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19413 a1c6a512-1295-4272-9138-f99709370657
2008-12-13Fix FS#8660-Recording hardlocks with keyclick enabled and FS#9388-keyclicks ↵Michael Sevakis
too late. Introduce audio_buffer_state to check whether PCM buffer is useable or disabled (trashed). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19411 a1c6a512-1295-4272-9138-f99709370657
2008-12-12CLOCKING register should be set on hardware init.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19410 a1c6a512-1295-4272-9138-f99709370657
2008-12-12FS#9625, keep HPCM codec setting (headphone common mode) enabled for E200V2 too.Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19407 a1c6a512-1295-4272-9138-f99709370657
2008-12-12m200v4: rename Keys, so they match better other targets with similar ↵Dominik Wenger
key-layout. Enable plugins, add keymaps for plugins. More keymap improvements needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19405 a1c6a512-1295-4272-9138-f99709370657
2008-12-12Argh. Being stupid. Missed one. Nap time.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19403 a1c6a512-1295-4272-9138-f99709370657
2008-12-12Get rid of some pcm_apply_settings cruft at the low level I somehow missed. ↵Michael Sevakis
Move the ones in pcm.c around to better spots. Remove a variable from pcm-pnx0101.c that should no longer be there. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19402 a1c6a512-1295-4272-9138-f99709370657
2008-12-12Fix-m the ruddiness.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19401 a1c6a512-1295-4272-9138-f99709370657
2008-12-12Bring consistency to pcm implementation and samplerate handling. Less ↵Michael Sevakis
low-level duplication. A small test_sampr fix so it works on coldfire again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19400 a1c6a512-1295-4272-9138-f99709370657
2008-12-12Reclaim a bit of binsize on hdd based archoses by making the bit test ↵Jens Arnold
unsigned. On SH1, gcc optimizes this by using a right shift, and a signed '1' made it use an arithmetic right-shift-by-n, which is a libgcc function on SH1. This was the only place in the core using it. No effect on other architectures. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19399 a1c6a512-1295-4272-9138-f99709370657
2008-12-12Fix the sound level on the Philips HDD1630Mark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19396 a1c6a512-1295-4272-9138-f99709370657
2008-12-12FS#9591 by Anton Veretenenko for the Philips GoGear HDD1620/1630 (with a few ↵Mark Arigo
changes by me). Fixes boot problem, pixel format, sound, and a few other things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19395 a1c6a512-1295-4272-9138-f99709370657
2008-12-11Sansa e200v2 and Fuze : disable not implemented recordingRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19391 a1c6a512-1295-4272-9138-f99709370657
2008-12-11Sansa e200v2 and Fuze : disable tuner until i2c communication is tested (or ↵Rafaël Carré
written) Correct a comment (si4702 is compatible with si4700.c) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19390 a1c6a512-1295-4272-9138-f99709370657
2008-12-11Fix a PortalPlayer PCM bug that made keyclick malfunction. Should fix ↵Michael Sevakis
FS#8836. Move FIQ banked register init out of crt0-pp.S and into pcm-pp.c to keep setups local to PCM driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19388 a1c6a512-1295-4272-9138-f99709370657
2008-12-10Fix a wrong comment in thread.c and mention an alternative approach to ↵Michael Sevakis
inits. Fix a couple headers' Id fields while at it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19386 a1c6a512-1295-4272-9138-f99709370657
2008-12-10Fix minor copy & paste error in comment. No functional change.Nils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19383 a1c6a512-1295-4272-9138-f99709370657
2008-12-10Sansa Clip: enable tagcache, quickscreen and pitchscreenRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19382 a1c6a512-1295-4272-9138-f99709370657
2008-12-10Fix red and a couple other things I somehow missed.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19378 a1c6a512-1295-4272-9138-f99709370657
2008-12-10Use cookies for thread identification instead of pointers directly which ↵Michael Sevakis
gives a buffer against wrongly identifying a thread when the slot is recycled (which has been nagging me for awhile). A slot gets 255 uses before it repeats. Everything gets incompatible so a full update is required. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19377 a1c6a512-1295-4272-9138-f99709370657
2008-12-09resize-on-load for bitmap files on 2bpp and color targetsAndrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19374 a1c6a512-1295-4272-9138-f99709370657
2008-12-09FS#9609 FM radio support for the Gigabeat S, seeking/scanning is not yet Nils Wallménius
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-09make fmradio-i2c code from clip more generic, so it works for m200v4 and ↵Dominik Wenger
hopefully all other as3525 targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19370 a1c6a512-1295-4272-9138-f99709370657
2008-12-09Color LCDs shouldn't have to have contrast set to 0 before shutdown. If ↵Michael Sevakis
contrast is implemented, then it can cause it to flash a bit before poweroff. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19369 a1c6a512-1295-4272-9138-f99709370657
2008-12-08Meg-FX: Enable a real tick in the bootloader. Do cleanups before switching ↵Michael Sevakis
to firmware and cache handling. Put proper main return address in lr. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19368 a1c6a512-1295-4272-9138-f99709370657
2008-12-08Have drivers merged for WM8711/21/31 since they are so similar but respect ↵Michael Sevakis
all register differences between codecs. Change minis to #define the actual codec type. If anything breaks check if OSCPD and CLKOUTPD need to be clear for the target- H10 is fine. A nice naming convention suggestion for WM codec multidrivers would be welcome rather than naming for a specific chip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19367 a1c6a512-1295-4272-9138-f99709370657
2008-12-08Sansa Clip: implement the fmradio_i2c interface using generic_i2cBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19366 a1c6a512-1295-4272-9138-f99709370657
2008-12-08* combine i2c_ack and i2c_outbBertrik Sikken
* do not switch sda back and forth between input and output when reading a byte git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19365 a1c6a512-1295-4272-9138-f99709370657
2008-12-08Sansa Clip: revert 19353Rafaël Carré
If we don't set pin B6 to 1, display can go off at random times git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19364 a1c6a512-1295-4272-9138-f99709370657
2008-12-07Generic I2C: fix various problems with this (now) unused driverRafaël Carré
Explicit if SDA is input or output in static functions Do not use logf() but return codes Check for overflow when adding an interface Indent on 4 spaces Rewrite i2c_read_data() and i2c_write_data() using goto for error cases Make subaddress optional (not sent if == -1) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19360 a1c6a512-1295-4272-9138-f99709370657
2008-12-07Meg F/X: Radically changing divider settings messed up the fake sleep in the ↵Michael Sevakis
bootloader. They aren't reset even after powering off. Make sure they are always specified. Move that code to target tree as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19358 a1c6a512-1295-4272-9138-f99709370657
2008-12-07Meg F/X can beep and click using a hardware timer so let us try it out. To ↵Michael Sevakis
match things up better, fix PCM beeping to give correct frequency (and get a pointer wrap bug too). Do some minor adjustments to compensate for corrections. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19355 a1c6a512-1295-4272-9138-f99709370657
2008-12-06Add small delays before lcd_write_data() and lcd_write_command(). This seems ↵Frank Gevaerts
to be needed on some clips (i.e. mine) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19354 a1c6a512-1295-4272-9138-f99709370657
2008-12-06Sansa Clip: No need to use GPIO pin B6 in LCDRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19353 a1c6a512-1295-4272-9138-f99709370657
2008-12-05Sansa Clip: No need to use GPIO pin B5 in LCD - it's likely used in FMRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19352 a1c6a512-1295-4272-9138-f99709370657
2008-12-05Sansa AMS: use vectored interruptsRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19351 a1c6a512-1295-4272-9138-f99709370657
2008-12-05Sansa AMS: correct VIC registers usageRafaël Carré
* Do not use |= on write only registers * Do use it in when setting kernel tick timer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19350 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Sansa AMS "High Mem" : fix main binary linking broken by r19342Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19346 a1c6a512-1295-4272-9138-f99709370657
2008-12-04pcm-as3525.c : don't use |= on a write-only register (VIC_INT_EN_CLEAR).Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19345 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Sansa AMS: Disable DMA clocks when not in useRafaël Carré
Add dma_retain() and dma_release() to reference count the users git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19344 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Sansa AMS: disable I2SOUT clocks when playback is stoppedRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19343 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Sansa AMS: PCM driver (FS#9592)Rafaël Carré
Note that on low memory targets (Clip/m200v4 tested) you will encounter random crashes. Applying FS#9332 seems to help a lot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19342 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Keep codec HPCM (headphone common mode) enabled for Sansa Clip and Sansa ↵Bertrik Sikken
m200v4 so the headphone output produces stereo instead of an L-R signal. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19340 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Cleaned up codepage handling, by Yoshihisa Uchida. (FS#9349)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19339 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Sansa AMS: Don't allocate stack in irq_handlerRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19338 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Sansa AMS SD driver: don't check non fatal flags of MCI_STATUSRafaël Carré
Correct the logic when enabling interrupt line (multivolume) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19337 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Oops, logic error! Interrupts enabled != in interrupt modeMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19336 a1c6a512-1295-4272-9138-f99709370657