Commit graph

22899 commits

Author SHA1 Message Date
Dominik Riebeling
93eefbabe3 Suppress unused warnings for functions that haven't been implemented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23785 a1c6a512-1295-4272-9138-f99709370657
2009-11-29 19:20:38 +00:00
Nils Wallménius
13f08d70fd Enable strict aliasing optimizations for codecs on gcc versions >= 4.0, fix alising violations that this uncovered, gives small speedups for most codecs, FS#10801
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23784 a1c6a512-1295-4272-9138-f99709370657
2009-11-29 18:11:49 +00:00
Nils Wallménius
685ca2672e Use clz instruction to calculate integer logarithms, speeds up decoding of one flac 8 sample by 12%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23783 a1c6a512-1295-4272-9138-f99709370657
2009-11-29 15:21:00 +00:00
Nils Wallménius
07fe3562a1 #if 0 out unused stuff
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23782 a1c6a512-1295-4272-9138-f99709370657
2009-11-29 14:29:18 +00:00
Nils Wallménius
727984b4ff Use clz instruction to count leading zeroes on armv5+, gives about 2% speedup with one sample on the Gigabeat S
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23781 a1c6a512-1295-4272-9138-f99709370657
2009-11-29 10:57:21 +00:00
Nils Wallménius
3c1cffae70 These macros have been replaced by (UN)LIKELY macros and were not used anywhere.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23780 a1c6a512-1295-4272-9138-f99709370657
2009-11-29 09:44:15 +00:00
Dominik Riebeling
f0d0ba86ff Fix building universal binaries.
When building various libraries for Rockbox Utility make sure they use the same compiler as Qt. Pass Qt's CC instead of explicitly setting it. This fixes issues linking on OS X (with recent XCode building universal binaries requires the use of gcc-4-0 while the default one is 4.2).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23779 a1c6a512-1295-4272-9138-f99709370657
2009-11-28 22:39:05 +00:00
Dominik Riebeling
cca6f747f8 Handle TARGET_DIR in universal library building.
Building universal libraries needs to take TARGET_DIR into account as when set the individual libraries are placed into the build output folder and didn't got found anymore.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23778 a1c6a512-1295-4272-9138-f99709370657
2009-11-28 22:39:00 +00:00
Marianne Arnold
c3ca746de4 Manual: find a nicer solution for the problem that lead to r23772. Using \newline gives a linebreak inside of the cell - it's not necessary to start a new row and put 2 or 3 (in case of remote targets) in front of it. Simpler code, less error-prone and the lines with alternating colours in the PDF button tables look more suitable. Also rearrange the rest of the affected row's code to make it more readable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23777 a1c6a512-1295-4272-9138-f99709370657
2009-11-28 17:12:40 +00:00
Tomer Shalev
c2617dc4ed Diacritic display enhancements
- Use the fact that unicode code currently does not support chars above 0xffff
  (see utf8decode()), and change diacritic database's char code type to
  unsigned short from int. Also comment out database entries above unsupported
  range.

- Use const when possible.

- Iterate over buffer using the buffer's pointer, thus avoiding usage of some
  variables, and avoiding multiple access to the same array item.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23776 a1c6a512-1295-4272-9138-f99709370657
2009-11-28 17:07:57 +00:00
Marianne Arnold
c074c76211 Make the classic_statusbar.sbs more classic. Icons, position of numbers, charging animation (only tested on a colour display so far), volume as before but gets a 'clipping' icon on targets that allow more than 0dB, add channels indicator in the rec screen. The only difference on swcodec should be the disk activity indicator on flash targets (for now). On hwcodec there are small differences in the recording screen - quality display is simply using the system font (no wasting another bitmap on a slightly less taller Q), frequency uses icons now (keeping the differences between the sbs files smaller and with the small 'k' it's easier to understand, but debateable). Since the animation makes use of the viewport colour (shades) parameters, a classic_statusbar.grey.sbs was needed - reusing the colour one didn't work correctly anyways. The difference between Recorders (RTC) and Ondios (disk activity) is achieved through the 112x64x1.sbs file itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23775 a1c6a512-1295-4272-9138-f99709370657
2009-11-28 16:37:33 +00:00
Alessio Lenzi
3e5d7b40a9 Updated italian translation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23774 a1c6a512-1295-4272-9138-f99709370657
2009-11-28 16:24:23 +00:00
Michael Chicoine
6e430365ab Manual - correct FM Radio volume key mapping problems on Fuze, Gigabeat S (remote), e200, and e200v2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23773 a1c6a512-1295-4272-9138-f99709370657
2009-11-27 17:19:01 +00:00
Michael Chicoine
35ae21017e Fix FS#10817 - Wrong layout of the keymap table for the 'While Recording Screen'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23772 a1c6a512-1295-4272-9138-f99709370657
2009-11-27 15:20:52 +00:00
Maurus Cuelenaere
972a7efcb4 Jz4740: init I²C GPIO pins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23771 a1c6a512-1295-4272-9138-f99709370657
2009-11-27 14:54:55 +00:00
Michael Chicoine
08be5ad24f Manual - Describe how to work with FMR files
FS#10815 by Alexander Levin with minor changes by me



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23769 a1c6a512-1295-4272-9138-f99709370657
2009-11-27 04:28:36 +00:00
Maurus Cuelenaere
d878018ec8 Onda VX747: don't define HAVE_MULTIVOLUME
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23768 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 22:34:42 +00:00
Maurus Cuelenaere
d7d3bc248f Move strip_volume() to filefuncs.c and set properties.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23767 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 22:34:08 +00:00
Frank Gevaerts
7ccff054ff Use MULTIDRIVE instead of MULTIVOLUME in sd.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23766 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 21:43:26 +00:00
Tomer Shalev
39bfe3153a Fix diacritic and save some bin size
- Fix bug which cause wrong placement of characters in some specific conditions
- Fix multiple similar entries in cache
- Protect against negative x values passed to drawing function


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23765 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 18:09:56 +00:00
Maurus Cuelenaere
507465be94 Define sd_drive_nr also when HAVE_HOTSWAP is defined (fix red).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23764 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 17:49:05 +00:00
Maurus Cuelenaere
d027ddb75d Forgot file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23763 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 17:41:19 +00:00
Maurus Cuelenaere
eab70ca28c - Split off strip_volume() to a separate file
- fix some yellows

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23762 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 17:39:30 +00:00
Maurus Cuelenaere
5afb4a97c2 Fix Onda VX767
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23761 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 17:22:32 +00:00
Maurus Cuelenaere
eed49f09ce Define HAVE_MULTI{VOLUME,DRIVE} (aka fix red) for Onda VX7x7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23760 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 17:17:43 +00:00
Maurus Cuelenaere
d052ced874 Merge branch 'hotswap'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23759 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 16:57:30 +00:00
Steve Bavin
b2dc7f004e Fix crash when crossfading at natural track transition - FS#10814
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23758 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 14:41:31 +00:00
Thomas Martitz
ee7cf6c63c Remove unused card_detect(), and make card_detect_target() static inline in each sd driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23757 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 00:51:09 +00:00
Thomas Martitz
82bbd1ed9f Revert unrelated commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23756 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 00:38:56 +00:00
Thomas Martitz
1ecb753668 Redo a hack that precluded entering a folder on an ejected hotswap drive. Use storage api and proper defines for the drive folder instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23755 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 00:37:27 +00:00
Thomas Martitz
10753f195b Mini2440: Cleanup SD driver a bit, undefine SD_DEBUG for faster transfers, implement hotswap and HAVE_HOTSWAP_STORAGE_AS_MAIN.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23754 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 23:23:21 +00:00
Thomas Martitz
f2f5b7c851 Add a simple sanity check before checking for changed binary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23753 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 23:18:53 +00:00
Thomas Martitz
cfda097394 Add HAVE_HOTSWAP_STORAGE_AS_MAIN to detect changed binary after re-inserting the storage on targets that run rockbox from hotswappable storage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23752 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 22:54:36 +00:00
Dave Hooper
6c62b1bf3d Take out that code from the dynamic playlist viewer that aborts track move-in-progress on playlist change .. based on assumption it doesn't do anything other than cause FS#10395
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23751 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 22:48:15 +00:00
Dominik Wenger
7df4d243ab make recording trigger threshold settings work again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23750 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 20:19:25 +00:00
Michael Sparmann
2f7a26230c Add missing parentheses to S5L8701 USEC_TIMER
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23749 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 20:16:16 +00:00
Michael Sparmann
9aeec057fd Enable wheel acceleration for iPod Nano 2G
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23748 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 19:15:28 +00:00
Michael Sparmann
f788e8feff Fix the S5L8701 µsec timer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23747 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 19:15:19 +00:00
Jack Halpin
84f04a57ee AMS Sansa: For consistency, replace references to SECTOR_SIZE with SD_BLOCK_SIZE which is defined in sd.h as 512 bytes.
We had 3 different references to the same value.  Rockbox always uses a blocksize of 512 bytes for SD and we were using SECTOR_SIZE, SD_BLOCK_SIZE, & card_info[drive].blocksize to use this value.  Now the only reference being used is SD_BLOCK_SIZE.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23746 a1c6a512-1295-4272-9138-f99709370657
2009-11-25 03:24:28 +00:00
Frank Gevaerts
384b9436d4 revert accidental commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23745 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 21:43:02 +00:00
Frank Gevaerts
75ce9606a1 Limit character width to 255 pixels
Use intermediate variable to fix yellow and red



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23744 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 21:34:24 +00:00
Frank Gevaerts
a68ad9e521 make lcd_bitmap_char more space efficient. This doesn't seem to impact text drawing performance
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23743 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 21:18:26 +00:00
Tomer Shalev
7682cb5ca8 FS#10720 - Support for displaying diacritic characters
This commit corrects the display of diacritic characters, which exist in many
languages. Hopefully, it will make Rockbox much more usable for users of these
languages.

Diacritic information (which used to decide whether a given character is
diacritic or not) is taken from the Unicode Standard, Version 5.2.

This feature does not affect drawing performance much, as the diacritic
database is cached (simple MRU mechanism).

There may be room for further performance, footprint, and
code-reuse wise improvements, that could be worked on in the future.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23742 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 20:41:42 +00:00
Torne Wuff
640d98de0f FS#9721 - No error check after writes in ata.c
Patch by Boris Gjenero (dreamlayers). Writes are retried on failure now so this should be safe.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23741 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 18:09:21 +00:00
Torne Wuff
b896e86842 FS#10798 - unify ata_read_sectors and ata_write_sectors
Writes will now be retried if they fail, and will be done using multisector transfers which should be faster.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23740 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 18:03:57 +00:00
Rafaël Carré
231e54d80f Sansa AMS : fix recording
Flyspray: FS#10371
Authors: Fred Bauer and myself

Only enabled on e200v2 and Fuze (crashes on clipv1)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23739 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 17:59:25 +00:00
Jack Halpin
cb9dff0a95 AMS Sansa: Include time spent yielding when figuring timeout in sd_wait_for_state().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23738 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 17:43:53 +00:00
Robert Kukla
1511d75f9d Tatung Elio: a few more buttons identified
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23737 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 15:42:54 +00:00
Rafaël Carré
ed13fd6dca Sansa AMS: VIC_INT_ENABLE register is not a mask
When read it returns all enabled interrupt sources
When written it enables interrupt sources for each bit set
So just like VIC_INT_EN_CLEAR, we don't have to read the previous value
before writing to it (VIC_INT_EN_CLEAR is write-only anyway)

Thanks to Fred Bauer for spotting

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23734 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 12:05:53 +00:00
Jack Halpin
4314ceb73b AMS Sansa: Remove MCI_RX_ACTIVE FIFO check following SD transfers.
We don't need to check the FIFO for MCI_RX_ACTIVE because we don't experience problems reading from the SD cards.
We need the MCI_TX_ACTIVE FIFO check during writes because some SD cards spend longer times in the PRG state
programming the data that has been written to them.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23733 a1c6a512-1295-4272-9138-f99709370657
2009-11-24 06:37:36 +00:00