Commit graph

29104 commits

Author SHA1 Message Date
Nils Wallménius
3afdedaef2 libtremor: rename file that now contains more ffmpeg code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30581 a1c6a512-1295-4272-9138-f99709370657
2011-09-22 11:54:17 +00:00
Nils Wallménius
412cdd6cf7 libtremor: port over ffmpeg's windowing code
Use the windowing approach from ffmpeg in tremor, does the mdct doubling, windowing and overlap add in one go.
Also uses less memory so all the processing buffers fit in iram on targets with small iram for the common blocksizes (256/2048) now.

Speeds up decoding of vorbis files by 3MHz for 256/2048 and 20MHz for 512/4096 files on h300.
Speeds up decoding of vorbis files by 3MHz for 256/2048 and 4.5MHz for 512/4096 on the beast.
Speeds up decoding of vorbis files by 0.3MHz for 256/2048 and 1MHz for 512/4096 on c200v1.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30580 a1c6a512-1295-4272-9138-f99709370657
2011-09-22 11:47:51 +00:00
Bertrik Sikken
b1298c2c44 Sansa AMS/AMSv2: analog front-end register CVDD/DCDC3 doesn't exist in AMSv2, so don't modify it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30579 a1c6a512-1295-4272-9138-f99709370657
2011-09-21 21:48:19 +00:00
Nils Wallménius
151424a6fd codeclib/libtremor: Clean up duplication of inline funcs, constify the ones in codeclib and copy over the slightly faster MULT31_SHIFT15 from tremor for cf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30578 a1c6a512-1295-4272-9138-f99709370657
2011-09-21 15:38:54 +00:00
Jonathan Gordon
ccaf55a8ae fix FIX_PTR macro so it actually fixes every pointer (was skipping x == current case)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30577 a1c6a512-1295-4272-9138-f99709370657
2011-09-21 13:32:37 +00:00
Amaury Pouly
df448bf7a1 Add support for i.MX28 to imx_hid_recovery, thanks to Wolfram Sang.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30576 a1c6a512-1295-4272-9138-f99709370657
2011-09-20 21:25:46 +00:00
Szymon Dziok
fd9859ead2 HDD6330: improve the behavior of the lcd during shutdown.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30575 a1c6a512-1295-4272-9138-f99709370657
2011-09-20 10:32:58 +00:00
Thomas Martitz
4c5f5ef347 Revert r30480 "Buflib/swcodec: Improve playback stopping behavior on allocation."
The buflib metadata gets corrupted at the new loation between core_shrink()
and actually applying, the new buffer boundaries (most probably due to yield()).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30574 a1c6a512-1295-4272-9138-f99709370657
2011-09-19 20:52:00 +00:00
Nils Wallménius
d3904712e1 libtremor: pass the floor1 lookup table pointer as a param to the render_line function to make this a little nicer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30573 a1c6a512-1295-4272-9138-f99709370657
2011-09-19 16:37:37 +00:00
Bertrik Sikken
9c5f040f8e Add the plugin_start prototype to plugin.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30572 a1c6a512-1295-4272-9138-f99709370657
2011-09-18 16:16:50 +00:00
Bertrik Sikken
1d1e8e4eb7 Sansa AMSv2: initialise PMU (power management unit), inspired by how the OF does it
Differences in PMU settings:
- explicitly disable the PLL inside the PMU (we don't use it)
- don't increase the PVDD1/AVDD17 voltages because the impact on runtime is still unclear

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30571 a1c6a512-1295-4272-9138-f99709370657
2011-09-18 15:33:19 +00:00
Frank Gevaerts
382c6974e0 NUM_CARDS can definitely be smaller than NUM_DRIVES, so don't pretend that this is an error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30570 a1c6a512-1295-4272-9138-f99709370657
2011-09-18 13:13:35 +00:00
Frank Gevaerts
85ad768b6e Don't use NUM_VOLUMES as array size in sd card drivers. NUM_DRIVES is also wrong (the total number of drives in the system is not really related to the number of sd devices), but at least it's less wrong than NUM_VOLUMES and it matches the (wrong) assumptions the rest of the drivers make
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30569 a1c6a512-1295-4272-9138-f99709370657
2011-09-18 12:51:54 +00:00
Frank Gevaerts
28d5f2aa57 Add "%LN" tag to retrieve the list item number of the current item. This allows e.g. putting item numbers in skinned lists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30568 a1c6a512-1295-4272-9138-f99709370657
2011-09-18 12:35:32 +00:00
Torne Wuff
e12a832758 Also remove the fat_partition_types array.
If we aren't going to check for the partition type, we don't need the array of
known FAT partition types.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30567 a1c6a512-1295-4272-9138-f99709370657
2011-09-17 22:49:30 +00:00
Torne Wuff
36d04ac76e Allow any partition type, not just known FAT types.
Instead of only mounting partitions with a FAT partition type, try any
partition that isn't type 0 (unallocated) or 5 (extended). This makes it easier
to reformat SDXC cards which have the exFAT partition type, and also brings us
in line with pretty much every other OS at this point. Anything with a
valid-looking FAT superblock will get mounted.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30566 a1c6a512-1295-4272-9138-f99709370657
2011-09-17 22:45:59 +00:00
Andree Buschmann
e14bda521d Fix some 'set but not used' warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30565 a1c6a512-1295-4272-9138-f99709370657
2011-09-17 20:53:28 +00:00
Bertrik Sikken
d91e67acc9 plugins: make local functions static for a subset of plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30564 a1c6a512-1295-4272-9138-f99709370657
2011-09-17 17:20:27 +00:00
Jonathan Gordon
e03faf835d Add an option to shuffle the playlist in the playlist viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30563 a1c6a512-1295-4272-9138-f99709370657
2011-09-17 09:29:19 +00:00
Amaury Pouly
66dce4b730 sbtools: implement more complicated integer expression in db files, implement data sections, section attributes, file options, rework command line attributes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30562 a1c6a512-1295-4272-9138-f99709370657
2011-09-16 22:27:16 +00:00
Bertrik Sikken
d20f803af0 sansa clipzip: fix rectangle setup of type 1 lcd
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30560 a1c6a512-1295-4272-9138-f99709370657
2011-09-16 14:21:08 +00:00
Nils Wallménius
769996654b libtremor: save a kB or two limiting an array size to the maximum number of channels we support and using a shorter type for another. No speed diff.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30559 a1c6a512-1295-4272-9138-f99709370657
2011-09-16 14:00:06 +00:00
Nils Wallménius
bcfb2b53eb libtremor: small tweak to cf channel coupling asm, speeding up vorbis decoding by ~0.1MHz. Drop unused macro params and add some comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30558 a1c6a512-1295-4272-9138-f99709370657
2011-09-16 12:51:22 +00:00
Amaury Pouly
9d7df9ae4d sbtools: move the db parse to its own file and improve error messages
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30557 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 16:10:31 +00:00
Amaury Pouly
64b4672359 sbtools: implement virtual to physical address translation for elf files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30556 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 14:36:58 +00:00
Jonathan Gordon
782708e494 fix warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30555 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 13:55:20 +00:00
Jonathan Gordon
81343bae5d skin_engine: make sure to free all buflib allocations so we dont leak handles/memory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30554 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 13:48:17 +00:00
Jonathan Gordon
0cfd7a3888 Fix FS#12278 - saving a full .cfg file would crash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30553 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 09:58:28 +00:00
Nils Wallménius
3f08357f2b codeclib: more cf asm for the mdct, saves ~0.7MHz decoding vorbis on h300.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30552 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 08:31:39 +00:00
Jonathan Gordon
454272cabf skin-touchscreen: make %T(..., setting_set, ...) apply sound settings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30551 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 06:51:47 +00:00
Magnus Holmgren
e995d01570 Fix FS#12266, by skipping empty frames when reading ID3v2 tags. Also add some length checks to be safe.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30550 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 17:30:45 +00:00
Michael Sevakis
c222f38c03 Remove obsolete USB_DETECT_BY_DRV define throughout.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30549 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 16:42:43 +00:00
Michael Sevakis
0576e71725 Scrub r30546 bootloader build errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30548 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 16:00:26 +00:00
Michael Sevakis
82259b7af5 Move AMSv1 (AMSv2 had been done already) to using setup packet request to detect a host.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30547 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 15:26:57 +00:00
Michael Sevakis
207131c53b Convert ARC USB driver code to always use setup packet detection and remove the bus-reset-based detection method for it. This prevents false USB detection from chargers or other accesories that aren't actually a host but can trigger the bus reset condition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30546 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 14:05:07 +00:00
Jonathan Gordon
08d285b414 Remove some old code which tries to clear/set the backdrop when starting plugins which is broken and potentially can cause backdrop corruption if the backdrop buffers move during the plugin lifetime
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30545 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 12:47:26 +00:00
Amaury Pouly
da44fd6f99 sbtools: fix code to work with file larger than header indicated size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30544 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 12:19:30 +00:00
Amaury Pouly
781d59ec62 sbtools: relax file size condition (easier to work with)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30543 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 12:14:24 +00:00
Amaury Pouly
b25d6e0c96 imx233/fuze+: implement usb enable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30542 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 11:50:06 +00:00
Nils Wallménius
4f27931a58 codeclib: further tweaks to the cf fft asm for a small speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30541 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 09:34:01 +00:00
Andree Buschmann
c3cffb766e Roll back r30509 after discussion on irc. Activating AAC-HE SBR will not work on Sansa Clip v1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30540 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 06:00:10 +00:00
Amaury Pouly
af9c3c9db5 imx233/fuze+: remove useless file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30539 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:28 +00:00
Amaury Pouly
268d83ff98 imx233/fuze+: add buggy and unfinished keymap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30538 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:24 +00:00
Amaury Pouly
b1a97d2c0f imx233/fuze+: add charger related defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30537 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:19 +00:00
Amaury Pouly
80101edcf7 imx233/fuze+: correctly reset i2c block
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30536 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:16 +00:00
Amaury Pouly
e55394521b imx233/fuze+: implement various audio stubs and update source
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30535 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:12 +00:00
Amaury Pouly
696b9d146b imx233/fuze+: implement lradc function and adc on top of it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30534 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:09 +00:00
Amaury Pouly
45537a4e87 imx233/fuze+: implement power management stubs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30533 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:06 +00:00
Amaury Pouly
06c03b51b2 imx233/fuze+: fix default init code (define lcd kind as 9325 and do 7783 init !)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30532 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:39:22 +00:00
Amaury Pouly
11883f4785 imx233/fuze+: correctly lcdif block
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30531 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:39:18 +00:00