Michael Sevakis
bfd69f2aa1
Fix the real issue with AMS bootloader USB mode. A call to usb_enable was missing in usb.c when using the USB stack and USB_DETECT_BY_CORE was not enabled. Try to do it in a clean-ish way.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31245 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 09:19:50 +00:00
Rafaël Carré
7af94b4427
usb-drv-as3525v2: cosmetics
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31244 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 06:34:03 +00:00
Rafaël Carré
e062c7a6c3
usb-drv-as3525v2: simplify usb_reset isr
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31243 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 06:30:36 +00:00
Rafaël Carré
26b31f1a17
usb-s3c6400: make isr more clear
...
DIEPINT_timeout and DOEPINT_setup are the same bit
Use separate cases so the code is more clear
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31242 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 06:30:16 +00:00
Rafaël Carré
3b00460701
usb-s3c6400: fix more index / endpoint number confusion
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31237 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 00:30:16 +00:00
Rafaël Carré
dfff88562e
Sansa Clip: simplify matrix key scan
...
Merge clipv1/clipv2 code since they use the same 3x3 matrix
clipzip keyscan buttons now work in bootloader
clipplus untouched (no matrix)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31235 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 23:12:21 +00:00
Amaury Pouly
744adcba81
imx233: add comment about block reset
...
fuze+: reset the controller for all lcd types, should fix the "CRT effet"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31234 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 22:48:01 +00:00
Rafaël Carré
1096cc08c0
usb-s3c6400: fix endpoint array traversal in interrupt handler
...
fix r31219
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31233 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 22:13:15 +00:00
Rafaël Carré
a60463e636
usb-drv-as3525v2.c: simplify
...
don't interrupt on unhandled events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31232 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 20:38:57 +00:00
Rafaël Carré
9e8590ad23
usb-drv-as3525v2.c: simplify a lot
...
code, especially init sequence, is much more similar to usb-s3c6400x.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31231 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 19:53:19 +00:00
Rafaël Carré
8afdad69c7
fix red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31230 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 08:16:46 +00:00
Rafaël Carré
e4bee2b109
usb-s3c6400 : simplify
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31229 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 08:12:19 +00:00
Rafaël Carré
1afe28072a
usb-drv-as3525v2: use correct input endpoint list size
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31228 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 07:11:54 +00:00
Rafaël Carré
ff0ba04ff6
fix previous commit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31227 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 06:32:48 +00:00
Rafaël Carré
3183010dfa
AMSv2: enable USB
...
This will help debugging, and can be disabled for releases if needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31226 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 06:30:44 +00:00
Rafaël Carré
5c81130b48
usb-drv-as3525v2: don't include ep0 twice in the IN ep list
...
simplify
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31225 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 06:29:56 +00:00
Rafaël Carré
89fa72f13f
usb-s3c6400: merge DIEP* and DOEP* in a macro with an extra parameter
...
minor cosmetics / simplification
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31224 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 06:17:57 +00:00
Rafaël Carré
fdcfc8a77c
s5l870x: use usb-s3c6400 defines
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31223 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 05:25:57 +00:00
Rafaël Carré
c1d789acdb
usb-s3c6400x.c: use defines instead of hardcoded bitfields
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31222 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 05:13:22 +00:00
Rafaël Carré
9c31062f05
usb-drv-as3525v2.c: cosmetics
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31221 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 05:13:10 +00:00
Rafaël Carré
bc943a06ba
Move usb-s3c6400 register comments to usb-s3c6400.h
...
Use common defines in usb-s3c6400.c and usb-drv-as3525v2.c
No functional changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31220 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 04:21:06 +00:00
Michael Sevakis
184459fa54
Deal with a complication when transferring recording method from PP5024: since the FIFO POP is always read until empty, keep track of sample parity instead of always saving the first one in the FIFO upon entering the ISR or else the first of a duplicate that is also the last in the FIFO would get duplicated. Also, give top priority to audio interrupts in all cases.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31218 a1c6a512-1295-4272-9138-f99709370657
2011-12-12 20:12:22 +00:00
Bertrik Sikken
5515a7a880
RDA5802 tuner: use channel spacing of 100 kHz when possible (instead of always 50 kHz)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31213 a1c6a512-1295-4272-9138-f99709370657
2011-12-11 17:38:49 +00:00
Michael Sevakis
09722dd28d
thread.c includes gcc_extensions.h and thread-XXX.c files are includes inside thread.c therefore do not require their own.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31206 a1c6a512-1295-4272-9138-f99709370657
2011-12-10 20:47:59 +00:00
Bertrik Sikken
75f2e4551c
AMS(v2): fix system_reboot by re-enabling the internal ROM clock just before rebooting
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31196 a1c6a512-1295-4272-9138-f99709370657
2011-12-10 11:28:00 +00:00
Rafaël Carré
07cfc30e50
lcd_blit_yuv(): don't use weak attribute when building for windows
...
current gcc/binutils don't support weak attribute correctly
see http://sourceware.org/bugzilla/show_bug.cgi?id=9687
fix FS#12427
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31193 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 20:56:40 +00:00
Boris Gjenero
11b661e45c
Add labels for calculating RAM usage on tms320dm320 targets. Thanks to Rafaël Carré for pointing this out.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31192 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 20:45:14 +00:00
Thomas Jarosch
33d3f05d77
Nokia N900: Increase the number of samples for the software mixer
...
This lowers the CPU usage back to normal by around 15%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31191 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 20:04:41 +00:00
Thomas Jarosch
9d9d867bce
Nokia N900: Implement pcm_play_lock() / pcm_play_unlock()
...
Shamelessly stolen from pcm-android.c
Thanks to Michael Sevakis for pointing out
that pcm_play_lock() is actually needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31190 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 19:45:58 +00:00
Boris Gjenero
8906b3e659
Convert remaining __attribute__((noreturn)) to NORETURN_ATTR.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31189 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 16:13:03 +00:00
Boris Gjenero
59e71ee80c
Introduce USED_ATTR wrapper for __attribute__((used)).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 15:33:59 +00:00
Boris Gjenero
08d42520ab
Add STORAGE_INIT_ATTR to some target-specific ATA functions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31186 a1c6a512-1295-4272-9138-f99709370657
2011-12-09 02:07:24 +00:00
Michael Sevakis
d2c1ece304
Move the PCMREC_E/W_* defines back to pcm_record.h because they're part of the recording engine interface. Leave the low-level DMA error defines in pcm.h.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31184 a1c6a512-1295-4272-9138-f99709370657
2011-12-08 21:45:53 +00:00
Boris Gjenero
e4dbcc414b
FS#12418 - Merge prototypes from ata-target.h files into new file ata-driver.h. After this change:
...
- ata.h is for users of ata.c
- ata-driver.h is for functions implemented by target-specific code and used by ata.c
- ata-target.h is for target-specific defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31182 a1c6a512-1295-4272-9138-f99709370657
2011-12-08 21:23:53 +00:00
Michael Sevakis
d09818d745
Fix sim errors in r31180.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31181 a1c6a512-1295-4272-9138-f99709370657
2011-12-08 20:05:48 +00:00
Michael Sevakis
e42a3194de
AS3525v1/v2:
...
Fix problems with volume of recorded material by converting 14-bit samples to
16-bit. Remove duplicate samples from recorded data and support proper
samplerate since ADC runs 1/2 the codec clock. Support monitoring mono on both
output channels by feeding data manually to I2SOUT under the right conditions.
DMA is no longer used for recording since frames must be processed as described
above but it does allow full-duplex audio.
Miscellaneous change includes a proper constant (HW_SAMPR_DEFAULT) to reset the
hardware samplerate when recording is closed. PP5024 and AS3525 have different
default recording rates (22kHz and 44kHz respectively) but both have half-speed
ADC.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31180 a1c6a512-1295-4272-9138-f99709370657
2011-12-08 19:20:00 +00:00
Boris Gjenero
694502a965
Fix FS#12423 : Rockbox access to /.rockbox/fonts after usb_enable(true). This fixes entry into USB mode on the Archos Recorder V2 and possibly also other targets using a USB to IDE bridge chip. Fred Bauer found this removes the need for a workaround in glyph_cache_save(). I'm including his patch which removes the workaround.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31155 a1c6a512-1295-4272-9138-f99709370657
2011-12-06 00:58:01 +00:00
Michael Sevakis
906905aa43
Use a macro for aligning PCM chunks instead of explictly coding it each time.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31152 a1c6a512-1295-4272-9138-f99709370657
2011-12-05 13:58:35 +00:00
Jonathan Gordon
6461f74ae4
Try $RBROOT before $HOME when looking for the sdl apps rockbox root dir
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31151 a1c6a512-1295-4272-9138-f99709370657
2011-12-05 12:07:23 +00:00
Tomasz Moń
bac6a70184
Sansa Connect: Revise codec initialization/shutdown.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31149 a1c6a512-1295-4272-9138-f99709370657
2011-12-05 09:53:23 +00:00
Rafaël Carré
4811b516a3
Don't define str(n,i)cmp(i): we don't use those
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31148 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 21:07:12 +00:00
Rafaël Carré
09f6556e22
Compile fix for mingw-w64
...
Don't build str(n)casecmp as functions if they are already defined by preprocessor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31147 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 21:07:06 +00:00
Michael Sevakis
a43df152c2
Collect the 16-bit signed range sample clipping routines scattered about, which can be optimized on armv6 and create firmware/export/dsp-util.h (for lack of better place right now).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31142 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 18:19:39 +00:00
Frank Gevaerts
700e360b61
Reduce stack allocation for remote screendump. The screendump filename is generated and known, so we don't need MAX_PATH.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31140 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 17:17:45 +00:00
Tomasz Moń
2ee9facc11
Power management is to be kept in target tree due to being target specific.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31136 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 09:48:10 +00:00
Tomasz Moń
de712eebbd
Sansa Connect: Add TPS65021 (Power Management) driver.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31135 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 08:24:08 +00:00
Szymon Dziok
c31f7d0121
HDD6330: introduce a new button (BUTTON_TAP), based on the hardware support for gestures. From now on some things are accessible by tapping on the vertical scroll strip. Reorganize, fix and remap some of the keymaps, add missing keymap for the recording.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31132 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 23:13:17 +00:00
Rafaël Carré
6b5dff4c7b
lcd-16bit: move lcd_bitmap and lcd_bitmap_transparent to common code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31131 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 22:39:08 +00:00
Rafaël Carré
26851eaaa9
lcd-16bit: move common code to lcd-16bit-common.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31130 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 22:19:17 +00:00
Rafaël Carré
1414e83743
lcd_blit_yuv: move to lcd-16bit-common.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31129 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 21:48:34 +00:00
Rafaël Carré
2c523acf3f
Clip Zip: fix yuv playback
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31128 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 21:39:39 +00:00
Rafaël Carré
d7802133fd
lcd_blit_yuv: move from sdl driver to lcd16bit-common
...
Declare as weak, so it can be overridden by targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31127 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 21:39:33 +00:00
Amaury Pouly
dd865bcd1e
imx233: add control for more clocks, add debug clock debug screen
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31121 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 15:34:40 +00:00
Tomasz Moń
66c53d528f
Sansa Connect: Fix yellow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31120 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 15:21:12 +00:00
Tomasz Moń
5e805f2041
Sansa Connect: Fix GIO initialization and screen wakeup.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31119 a1c6a512-1295-4272-9138-f99709370657
2011-12-03 15:03:44 +00:00
Tomasz Moń
39f4408b63
Sansa Connect: Make simulator compile. UI-sansaconnect.bmp by Martin Sägmüller (based on press image).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31102 a1c6a512-1295-4272-9138-f99709370657
2011-12-01 13:41:59 +00:00
Thomas Martitz
f0bab2ff9a
Address some weaknesses and bugs of buflib_compact() and make the code prettier. Thanks to Boris Gjenero for his great investigation.
...
Flyspray: FS#12409
Author: myself
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31101 a1c6a512-1295-4272-9138-f99709370657
2011-12-01 07:02:18 +00:00
Amaury Pouly
a299212af3
imx233: add power debug screen
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31100 a1c6a512-1295-4272-9138-f99709370657
2011-11-30 18:47:31 +00:00
Amaury Pouly
374a08ab31
fuze+: update keymap and touchpad driver based on FS#12405 with minor modifications. Thanks to Jean-Louis Biasini.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31098 a1c6a512-1295-4272-9138-f99709370657
2011-11-30 18:39:22 +00:00
Boris Gjenero
d51e598335
FS#12412 : Delete old buffer allocation code which has been replaced by core_alloc, and move buffer setup code to core_alloc.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31088 a1c6a512-1295-4272-9138-f99709370657
2011-11-29 00:42:27 +00:00
Tomasz Moń
297c29cba6
dm320: call storage idle notifys on in sdmmc thread
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31086 a1c6a512-1295-4272-9138-f99709370657
2011-11-28 21:12:54 +00:00
Boris Gjenero
e5a7388fc7
If Rockbox never turns off ATA power, don't compile code for turning it back on. Note that ATA power may still need to be turned on when starting, so that code in ata_init() always remains.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31079 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 17:40:57 +00:00
Fred Bauer
2154cbf706
remove stray debugging line
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31078 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 16:27:20 +00:00
Frank Gevaerts
6e664f49b1
Guard font functions against invalid font ids. These arguably should never be passed, but this prevents freezes. Fixes FS#12400
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31075 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 15:36:03 +00:00
Frank Gevaerts
dfd5d0684a
Actually make glyph_cache_save static instead of just claiming it should be
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31074 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 15:28:16 +00:00
Frank Gevaerts
e5a3c26c1d
glyph_cache_save should be static
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31073 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 15:24:53 +00:00
Michael Sevakis
47452dcd5c
PortalPlayer: Loading of stack munge value into r4 was moved in r30741 to after the idle stack init loop, breaking the usage readout.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31068 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 07:01:47 +00:00
Boris Gjenero
a99d9eca0b
Add STORAGE_INIT_ATTR to static ata.c functions that are only called via ata_init().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31067 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 04:56:47 +00:00
Boris Gjenero
bd360b422a
In buflib_buffer_shift(), properly update handle->alloc values, which are char * and not union buflib data *
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31066 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 01:40:47 +00:00
Bertrik Sikken
99ea0c5051
Sansa AMSv2 USB: Simplify union around struct usb_ctrlrequest and remove duplicate alignment attribute
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31065 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 00:22:12 +00:00
Rafaël Carré
a89c705ecb
AMSv2: remove stray ; from USB_DEVBSS_ATTR
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31064 a1c6a512-1295-4272-9138-f99709370657
2011-11-27 00:07:06 +00:00
Bertrik Sikken
ebde2ea308
Sansa AMSv2: potential USB fix from FS#11664 by funman:
...
* make sure that the buffer for struct usb_ctrlrequest can fit a full 64-byte packet
* align struct usb_ctrlrequest to a cacheline (32-byte alignment)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31063 a1c6a512-1295-4272-9138-f99709370657
2011-11-26 23:55:49 +00:00
Fred Bauer
e62cccb81e
fix up font_cache/LRU boundry errors from r30763
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31050 a1c6a512-1295-4272-9138-f99709370657
2011-11-25 16:15:16 +00:00
Tomasz Moń
62f5027650
Fix battery meter on Sansa Connect.
...
Use the battery capacity percents reported by AVR. Internally fake linear voltage scale is used (1 mV = 1%).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31049 a1c6a512-1295-4272-9138-f99709370657
2011-11-24 18:55:11 +00:00
Boris Gjenero
9c07d068da
FS#12378 : Removal of Archos HWCODEC unused code and data. Several large hardware-specific functions are kept for reference or future use.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31043 a1c6a512-1295-4272-9138-f99709370657
2011-11-22 19:59:31 +00:00
Boris Gjenero
e62dfa5225
FS#12397 : On targets which load .data directly into its final location and lack code for moving it, remove linker script trick which ignores section alignment and word-aligns the section instead.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31041 a1c6a512-1295-4272-9138-f99709370657
2011-11-22 17:34:01 +00:00
Rafaël Carré
814ffffdbe
Add INIT_ATTR to storage_init() when possible
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31036 a1c6a512-1295-4272-9138-f99709370657
2011-11-20 18:44:40 +00:00
Rafaël Carré
8a7482dd89
Fix typo in comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31034 a1c6a512-1295-4272-9138-f99709370657
2011-11-20 17:57:24 +00:00
Fred Bauer
95a828bcdb
Fix parameter order in font_load_in_memory(). FS#12395.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31033 a1c6a512-1295-4272-9138-f99709370657
2011-11-20 17:49:47 +00:00
Fred Bauer
ea7a89606c
FS#12293 Global default glyph setting in System > Limits > Glyphs To Cache. Defaults to 250. This saves a lot of RAM while still allowing non-English users to have adequate glyph coverage.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31031 a1c6a512-1295-4272-9138-f99709370657
2011-11-19 23:34:26 +00:00
Bertrik Sikken
d78e05c572
Sansa clip zip: increase communication speed with the OLED controller
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31030 a1c6a512-1295-4272-9138-f99709370657
2011-11-19 17:55:21 +00:00
Bertrik Sikken
bf51af7f7a
Sansa clip zip: workaround for wisechip display - always copy an entire horizontal strip in lcd_update_rect
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31029 a1c6a512-1295-4272-9138-f99709370657
2011-11-19 17:55:17 +00:00
Fred Bauer
a71e87f132
Update some missed pointers when moving the dircache allocation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31028 a1c6a512-1295-4272-9138-f99709370657
2011-11-19 14:57:56 +00:00
Jonathan Gordon
1252d0d540
Get rid of a really annoying #ifdef line to check if backdrop support should be enabled
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31027 a1c6a512-1295-4272-9138-f99709370657
2011-11-19 13:46:25 +00:00
Amaury Pouly
852b68c74a
imx233/fuze+: set drive strength of tuner chip enable pin, enable backlight on panic
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31026 a1c6a512-1295-4272-9138-f99709370657
2011-11-17 23:10:22 +00:00
Thomas Martitz
abf1e6d790
Fix yellow.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31013 a1c6a512-1295-4272-9138-f99709370657
2011-11-17 20:03:34 +00:00
Thomas Martitz
71d73fd470
Remove sim_tasks from the sdl application build.
...
This unfortunately removes the screendump feature, but usually there are better desktop apps for that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31011 a1c6a512-1295-4272-9138-f99709370657
2011-11-17 19:52:59 +00:00
Amaury Pouly
7e211ff9d1
fuze+: adjust touchpad sensitivity based on product id like OF, add debug screen to hw info
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31010 a1c6a512-1295-4272-9138-f99709370657
2011-11-17 19:13:09 +00:00
Thomas Martitz
1645c148e3
Simulate usb plugging on the sim better using sim_tasks.
...
Now all threads need to ack the connection like on real target, dircache is unloaded and playback stops accordingly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31009 a1c6a512-1295-4272-9138-f99709370657
2011-11-17 18:40:00 +00:00
Thomas Martitz
2a8eacdbfc
Buflib: Make shrinking and buflib_available() smarter.
...
* shrinking now considers freespace just before the alloc-to-be-shrinked,
that means less (or sometimes none at all) is taken from the audio buffer.
* core_available() now searches for the best free space, instead of simply the end,
i.e. it will not return 0 if the audio buffer is allocated and there's free space
before it. It also runs a compaction to ensure maximum contiguous memory.
audio_buffer_available() is also enhanced. It now considers the 256K reserve buffer,
and returns free buflib space instead if the audio buffer is short.
This all fixes the root problem of FS#12344 (Sansa Clip+: PANIC occurred when
dircache is enabled), that alloced from the audio buffer, even if it was very
short and buflib had many more available as free space before it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31006 a1c6a512-1295-4272-9138-f99709370657
2011-11-17 17:55:02 +00:00
Andrew Ryabinin
b6252abb25
fix target id for HiFiMAN HM-801
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31001 a1c6a512-1295-4272-9138-f99709370657
2011-11-16 16:07:06 +00:00
Tomasz Moń
e8a8a1be43
Sandisk Sansa Connect port (FS #12363 )
...
Included are drivers for buttons, backlight, lcd, audio and storage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
2011-11-16 14:08:01 +00:00
Jonathan Gordon
ea2a3ee7a8
Fix the gpl notice in the previous commits new files, and fix the yelow gevearts naughtily ignored
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30996 a1c6a512-1295-4272-9138-f99709370657
2011-11-16 10:37:48 +00:00
Jonathan Gordon
be716c0be8
Finally commit FS#5111 - piezo clicker for ipods!
...
Origional implementation by Robert Keevil with contributions from Frederik Vestre, Stoyan Stratev, Craig Elliott, Michael Sparmann, Thomas Schott, Rosso Maltese, and syncs from a bunch of other people!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30995 a1c6a512-1295-4272-9138-f99709370657
2011-11-16 10:25:43 +00:00
Michael Giacomelli
3ba0e05ab5
Commit FS#12352 by Stanislav Chizhik. Add support for the PCF50635. Enables detection of USB power sources.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30992 a1c6a512-1295-4272-9138-f99709370657
2011-11-15 20:37:47 +00:00
Amaury Pouly
e7e4b131d0
imx233: fix prototype and battery conversion setup code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30989 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:47:59 +00:00
Amaury Pouly
9e4299f6f0
imx233: implement battery reading using power register (automatically updated & scaled by lradc delay)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30988 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:45:25 +00:00
Amaury Pouly
4359b40cf1
imx233: debug raw and mV battery output
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30987 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:45:18 +00:00
Amaury Pouly
ea8570b48c
imx233: remove virtual 5V channel (value doesn't make sense), fix battery conversion (need to trigger delay)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30986 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:42:43 +00:00
Amaury Pouly
f791a81e87
imx233: add include for future use of adc to read battery
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30985 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:10:25 +00:00
Amaury Pouly
0cd832a6d4
imx233: fix comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30984 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:07:52 +00:00
Amaury Pouly
d8666336a7
imx233: add adc debug screen
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30983 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:07:48 +00:00
Amaury Pouly
e167c1d8d7
imx233: add automatic battery conversion using delay channel, make 5V a virtual channel since it has a builtin divider
...
fuze+: use 5V virtual channel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30982 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:05:14 +00:00
Amaury Pouly
a9d56ac5de
imx233: use generic code for both channels and delays arbiter code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30981 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 21:05:10 +00:00
Amaury Pouly
9a4213c8f3
imx233: cosmetic changes in adc
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30980 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 19:48:45 +00:00
Amaury Pouly
1852dd89ed
imx233/fuze+: add a small delay before powering off to allow the user to release the power button
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30979 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 19:46:13 +00:00
Amaury Pouly
7fec08927b
fuze+: fix backlight to have a real zero
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30978 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 19:46:09 +00:00
Amaury Pouly
2a45f7772b
fuze+: fix backlight calculations
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30977 a1c6a512-1295-4272-9138-f99709370657
2011-11-14 19:14:34 +00:00
Andree Buschmann
169b3048e3
Use the timeout api for the gui boost implementation. This ensures that the CPU will be unboosted after the defined timeout, the former implementation could stay boosted in several situations.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30975 a1c6a512-1295-4272-9138-f99709370657
2011-11-13 18:00:28 +00:00
Bertrik Sikken
61f61c9773
Sansa clip zip: correct USB vendor/product id
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30970 a1c6a512-1295-4272-9138-f99709370657
2011-11-13 15:10:56 +00:00
Bertrik Sikken
fdc906743f
Sansa clip zip: update lcd_update_rect to even-align horizontal coordinates for the wisechip display type
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30969 a1c6a512-1295-4272-9138-f99709370657
2011-11-12 20:14:44 +00:00
Andree Buschmann
f1ee740f2b
Finally submit GUI boost (FS#8668). With this change the CPU is boosted (with a 1 second timeout) on scrollwheel activity in the list, main menu, tree and std context. For now GUI boost is only enabled on scrollwheel targets. The code can easily be enhanced to work with other targets as well.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30967 a1c6a512-1295-4272-9138-f99709370657
2011-11-11 19:40:32 +00:00
Thomas Martitz
312b2a2de7
Document the internal alpha channel format better, and fixes for 32bit alpha bitmaps.
...
For images, rows need to be even (this is not true for anti-aliased font files).
Fix stride and size calculation. This makes images that have odd pixel rows display properly and fixes buffer overflows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30966 a1c6a512-1295-4272-9138-f99709370657
2011-11-11 19:05:11 +00:00
Amaury Pouly
7aac4188d2
fuze+: fix typo (mdelay vs udelay) in register read (shouldn't change anything) and be sure lcdif is ready
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30958 a1c6a512-1295-4272-9138-f99709370657
2011-11-10 17:29:57 +00:00
Michael Sparmann
6229d623b0
Rework FS#12310 fix (r30906) for better readability. No functional change.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30953 a1c6a512-1295-4272-9138-f99709370657
2011-11-10 10:37:02 +00:00
Boris Gjenero
415f579bf3
Fix assembler .size directives. Currently used binutils don't complain, but 2.21.1 treats these as errors.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30945 a1c6a512-1295-4272-9138-f99709370657
2011-11-09 19:20:33 +00:00
Boris Gjenero
32eb8275f4
Remove last_sleep when it's not needed because IDE power is never turned off.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30943 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 23:29:25 +00:00
Thomas Martitz
1280f322ec
Fix build errors and warnings in the lcd drivers.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30940 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 22:04:43 +00:00
Thomas Martitz
f443e7bbf7
Support for transparency in 32bit bitmaps on color targets.
...
This uses the alpha blending capabilities introduced with anti-aliased fonts
to draw bitmaps with transparency information. The bmp loader is extended to read
this information (pass FORMAT_TRANSPARENT in format). The alpha information will
be used when drawing the bitmap.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30937 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 21:36:49 +00:00
Thomas Martitz
13209604c1
Add new lcd_bmp and lcd_bmp_part APIs.
...
This new APIs wrap around lcd_[mono|transparent]_bitmap/_part calls and
handle all kinds bitmaps. The intended use is to draw bitmaps that
come from read_bmp_fd/_file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30936 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 21:34:46 +00:00
Jonathan Gordon
f19f3efb07
Redo r30826 (and hopefully not reintroduce font issues) which cleans up the font API. FONT_UI is deprecated, use screens[screen].getuifont() instead (and .setuifont() to set it after a font has been loaded)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30932 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 10:09:33 +00:00
Jonathan Gordon
452a3ce274
Put icons on buflib:
...
Removes the max icon size limitation and doesnt waste RAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30931 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 09:36:35 +00:00
Michael Giacomelli
64c73c4751
Disable the clock the built in AS3525(v2) bootrom. This is only useful for reverse engineering purposes, so disable during normal operation in case it uses power.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30930 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 02:07:26 +00:00
Amaury Pouly
bbbc2e8877
fuze+: fix typo in lcd init sequence for second lcd type
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30926 a1c6a512-1295-4272-9138-f99709370657
2011-11-07 09:18:24 +00:00
Torne Wuff
569285794b
Bulk convert all DOS line endings to UNIX.
...
For the git migration we want a nice clean repository with UNIX line
endings. git does not use svn:eol-style, we just need the file contents to be
sane.
Sorry everybody. I know this messes up blame.
Scumbag *NIX developer says migrating to git will make line ending issues go
away; commits giant change to svn which changes line endings anyway. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30924 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 22:44:25 +00:00
Jens Arnold
ae601954aa
Make usage of TALK_PARTIAL_LOAD actually Ondio specific. MMC is not always slow.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30917 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 14:25:33 +00:00
Amaury Pouly
0407d92c65
imx233: don't include debug-imx233.c in bootloader
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30914 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 13:30:09 +00:00
Michael Sparmann
661311256a
Commit FS#12209 by Vencislav Atanasov: iPod 6g/classic usb product id
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30911 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 12:06:20 +00:00
Michael Sparmann
2ce48832d8
iPod Classic: Set LCD controller configuration register during initialization and don't rely on the bootloader doing that (closes FS#12233)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30908 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 11:35:21 +00:00
Michael Sparmann
33d6bd61b5
usb-s3c6400x.c: Fix memory corruption bug (closes FS#12310)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30906 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 00:56:26 +00:00
Michael Sparmann
052231748f
usb-s3c6400x.c: Remove an unused variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30905 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 00:04:52 +00:00
Marcin Bukat
f4b74b269a
MPIO HD300: vastly improve sound quality. This unfortunately means reverting r28797 which introduced poping noise
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30904 a1c6a512-1295-4272-9138-f99709370657
2011-11-05 14:01:22 +00:00
Bertrik Sikken
9310fc0b4c
Sansa clip zip: do not enable display if it's already enabled
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30903 a1c6a512-1295-4272-9138-f99709370657
2011-11-05 12:30:19 +00:00
Bertrik Sikken
2181ef3288
Sansa clip zip: swap RGB<>BGR for WiseChip display
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30898 a1c6a512-1295-4272-9138-f99709370657
2011-11-04 08:04:25 +00:00
Bertrik Sikken
e71750b7a3
Make local functions and variables static where possible
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30897 a1c6a512-1295-4272-9138-f99709370657
2011-11-03 23:32:49 +00:00
Andrew Ryabinin
2164aab902
Added HiFiMAN HM-801 target. FS#12355. This also renames tda1543.{ch} used by HM-60x to dummy_codec.{ch} as it works for PCM1704 used by HM-801.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30891 a1c6a512-1295-4272-9138-f99709370657
2011-11-03 11:53:02 +00:00
Bertrik Sikken
50211e2054
Sansa clip zip: show AMSv2 variant in debug menu
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30890 a1c6a512-1295-4272-9138-f99709370657
2011-11-02 22:40:35 +00:00
Amaury Pouly
856fb705c2
fuze+: use macro and add a few static
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30889 a1c6a512-1295-4272-9138-f99709370657
2011-11-02 17:48:04 +00:00
Bertrik Sikken
58543296c9
Sansa clip zip: attempt to fix the pixel format swappedness for good
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30873 a1c6a512-1295-4272-9138-f99709370657
2011-10-31 20:17:04 +00:00
Bertrik Sikken
d11e5201dc
Sansa clip zip: implement lcd_write_data function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30872 a1c6a512-1295-4272-9138-f99709370657
2011-10-30 20:35:03 +00:00
Bertrik Sikken
eb7cf73dcb
Sansa clip zip: use a state machine for scanning buttons to avoid busy-waits
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30871 a1c6a512-1295-4272-9138-f99709370657
2011-10-30 20:15:08 +00:00
Michael Sevakis
4ad62b7656
Gigabeat S: Maintain power thread at realtime priority at all times so it may always service the watchdog on time regardless of playback priority.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30867 a1c6a512-1295-4272-9138-f99709370657
2011-10-30 14:32:42 +00:00
Bertrik Sikken
2774457604
Sansa clip zip: make the simulator work by adding the background bitmap
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30861 a1c6a512-1295-4272-9138-f99709370657
2011-10-30 09:06:21 +00:00
Bertrik Sikken
94fc46b730
Sansa clip zip: fix colours of icons, logos, album art
...
* configure display for RGB (instead of BGR) colour coding
* fix logo bitmap to correct size of 96x30
* fix pixel format to RGB565 swapped
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30859 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 22:36:47 +00:00
Bertrik Sikken
0edf98c9d7
Sansa clip zip: update target configuration with correct battery capacity, album art
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30856 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 20:08:13 +00:00
Bertrik Sikken
9fc1270807
Sansa clip zip: add missing prototype to backlight-target.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30855 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 20:05:40 +00:00
Bertrik Sikken
e90f961593
Sansa clip zip: update mkamsboot and fix various drivers to make it boot to the main firmware
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30853 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 17:08:05 +00:00
Thomas Martitz
93c6c79e8d
Better fix for FS#12337. Use 0 to make the line height calculated from the font height, as before r30773.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30850 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 15:16:02 +00:00
Andree Buschmann
b8223d908b
Fix FS#12351: The poweroff timer was not reset on scroll wheel activity for e200 and simulator. Thanks to Nick Peskett.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30847 a1c6a512-1295-4272-9138-f99709370657
2011-10-28 17:23:40 +00:00
Thomas Martitz
9886126858
Fix FS#12325 - screen corruption on early usb.
...
When booting with USB inserted, the dircache build can get interrupted by the usb connection, in which case the dircache buffer is freed.
Due to a bug the re-creation of dircache used the old freed buffer and overwrite new allocs (causing screen corruption).
Set allocated_size to 0 to make it not take the code path that assumes an existing buffer,
and bring that and freeing together in the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30845 a1c6a512-1295-4272-9138-f99709370657
2011-10-28 16:38:52 +00:00