Commit graph

8142 commits

Author SHA1 Message Date
Thomas Martitz
8e8839c8c2 Forgot to update lcd-remote.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28243 a1c6a512-1295-4272-9138-f99709370657
2010-10-11 01:23:40 +00:00
Thomas Martitz
3022a60cc2 Rename {draw,fill}_viewport once more (to draw_border_viewport and fill_viewport) and remove the viewport parameter as suggested by Dave Chapman.
The parameter wasn't used yet and it's not clear whether it should be a absolute or relative viewport.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28242 a1c6a512-1295-4272-9138-f99709370657
2010-10-11 01:19:55 +00:00
Thomas Martitz
5462ef728f Add _rect to {draw,fill}_viewport as suggested by Jonathan Gordon to reduce the chance to confuse it with update_viewport().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28240 a1c6a512-1295-4272-9138-f99709370657
2010-10-10 23:35:03 +00:00
Thomas Martitz
8a0152bd4a Two new lcd/multi screen api convinience functions: draw_viewport(), fill_viewport().
They work as the drawrect/fillrect pendants but work on a viewport basis; pass NULL to draw the current viewport (the one set with set_viewport()).
In conjunction with action_get_touchscreen_press_in_vp() it should be less of a pain to draw buttons and get presses on them.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28239 a1c6a512-1295-4272-9138-f99709370657
2010-10-10 23:15:05 +00:00
Michael Sparmann
c599da333e Commit FS#11663 by me - Patch: iPod Nano 2G Bootloader: Boot OF if MENU button is held
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28237 a1c6a512-1295-4272-9138-f99709370657
2010-10-10 20:52:46 +00:00
Thomas Martitz
c2b5739419 Fix targets with remote display, forgot to add the new functions to their header.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28215 a1c6a512-1295-4272-9138-f99709370657
2010-10-06 12:52:00 +00:00
Thomas Martitz
d9d0b4dd20 Pixel-accurate (vertical) list scrolling for touchscreen targets.
Looks much smoother now as you don't scroll by whole lines anymore.
Add some functions lcd driver to enable the line based scrolling engine to draw the lines with a pixel-based y-offset.
This should also allow for a sensible kinetic scrolling mechanism (still a todo).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28214 a1c6a512-1295-4272-9138-f99709370657
2010-10-06 12:46:42 +00:00
Frank Gevaerts
0a7baec5ef Fix outdated comment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28196 a1c6a512-1295-4272-9138-f99709370657
2010-10-02 16:03:31 +00:00
Andree Buschmann
86de79171b Submit FS#11646. Reduce voltage supply for iPod nano 2G LCD. Significantly reduces buzzing sound of LDS176 type displays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28190 a1c6a512-1295-4272-9138-f99709370657
2010-10-01 18:09:10 +00:00
Frank Gevaerts
74dbb3c27b If BUFFER_ALLOC_DEBUG is defined, make buffer_alloc() not actually allocate anything if size==0, so code that uses buffer_alloc(0) to find out what address it would get keeps working
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28174 a1c6a512-1295-4272-9138-f99709370657
2010-09-26 12:27:38 +00:00
Frank Gevaerts
8ff4f1aec9 Add optional (define BUFFER_ALLOC_DEBUG to enable it) code to check for code overflowing buffer_alloc()-allocated buffers.
Also add a panicf() if buffer_alloc() doesn't have enough space left to allocate a requested buffer


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28173 a1c6a512-1295-4272-9138-f99709370657
2010-09-26 12:05:42 +00:00
Bertrik Sikken
4aa42f3d43 RDA5802 tuner: fix small bug in rda5802_init (writing too much data)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28170 a1c6a512-1295-4272-9138-f99709370657
2010-09-26 11:39:27 +00:00
Andree Buschmann
3131fb9712 Roll back r28164 as this change introduced LCD issues on some nano 2G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28166 a1c6a512-1295-4272-9138-f99709370657
2010-09-25 23:37:12 +00:00
Andree Buschmann
0ef3616d10 Add current consumption and battery capacities to iPod nano 2G config file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28165 a1c6a512-1295-4272-9138-f99709370657
2010-09-25 22:46:36 +00:00
Andree Buschmann
86d5f44b4a Reduce LCD voltage supply to 2500 mV to avoid humming noise of nano 2G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28164 a1c6a512-1295-4272-9138-f99709370657
2010-09-25 21:46:04 +00:00
Andree Buschmann
af59ce6ec3 Remove code that was unintentionally submitted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28163 a1c6a512-1295-4272-9138-f99709370657
2010-09-25 21:43:54 +00:00
Andree Buschmann
1aa690acb6 Add some more information to iPod nano 2G debug screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28162 a1c6a512-1295-4272-9138-f99709370657
2010-09-25 21:42:35 +00:00
Andree Buschmann
274c84fae9 Disable clickwheel power supply when hold button is active for iPod nano 2G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28161 a1c6a512-1295-4272-9138-f99709370657
2010-09-25 21:41:10 +00:00
Andree Buschmann
6a9cabc434 Implement lineout en-/disable for WM8975 and activate it for iPod nano 2G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28159 a1c6a512-1295-4272-9138-f99709370657
2010-09-24 22:42:06 +00:00
Thomas Martitz
b2872c616c Enlarge the button post interval against audio drop outs, Too many lcd updates
per seconds apparently don't very well.
Not sure if it's the hardware or our threading that doesn't play well enough
here (UI isn't less response despite of the audio drop outs).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28144 a1c6a512-1295-4272-9138-f99709370657
2010-09-22 23:28:26 +00:00
Thomas Martitz
54a81076bc Touchscreen: button driver improvements
* Until BUTTON_REPEAT was started, coordinate changes were not exposed. Change
that (post on every coordinate change) so that wiping over the screen does actually
something between the first touch and BUTTON_REPEAT
* Once BUTTON_REPEAT is active, further repeats are posted in an acceleration
fashion (slow at the begginning), which smoothes list scrolling. But this has
the contrary effect on touchscreen, as it makes swiping appear very laggy. So,
remove that acceleration for touchscreen and make it equally fast at all times
so the scrollbar is better usable.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28143 a1c6a512-1295-4272-9138-f99709370657
2010-09-22 23:01:51 +00:00
Bertrik Sikken
c0edce8f5c iap: make variable serbuf non-global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 19:37:17 +00:00
Thomas Martitz
141673945e Fix typo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28126 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 17:42:46 +00:00
Thomas Martitz
ad500e1063 Redirect (L)DEBUGFs to adb logcat in DEBUG enabled builds.
Exclude compilation of firmware/debug.c for hosted platforms.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28125 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 17:38:47 +00:00
Rafaël Carré
66f8fb52a9 */app.lds: remove STUBOFFSET
This is related to gdb, and gdb can only work on SH and ifp
This was mistakenly kept when app.lds was forked for each SoC
Side-effect: fix DEBUG builds when the rockbox binary is expected to
be loaded at the start of DRAM and there is no runtime relocation

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28124 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 17:09:55 +00:00
Rafaël Carré
7240478457 file_exists(): fix DEBUGF()
- %s was missing the argument (function name)
- add %p to print the function argument
- also don't call strlen() to test string nullity (and strlen() can't return a negative result)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28123 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 16:39:22 +00:00
Amaury Pouly
7baa522364 usb: remove unused variable and correctly stall on unhandled control requests
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28121 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 14:18:14 +00:00
Rafaël Carré
5a98ad2d7f format() (and its alias vuprintf) return values are uncheck -> void
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28119 a1c6a512-1295-4272-9138-f99709370657
2010-09-20 08:55:45 +00:00
Frank Gevaerts
d343bbe846 Allow e200 to compile without HAVE_RECORDING
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28104 a1c6a512-1295-4272-9138-f99709370657
2010-09-17 20:42:45 +00:00
Frank Gevaerts
bd43690170 Simplify unnecessary baroque preprocessor condition a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28101 a1c6a512-1295-4272-9138-f99709370657
2010-09-17 20:13:13 +00:00
Frank Gevaerts
b0351c7588 Only define USB_ENABLE_STORAGE if USB_HAS_BULK and USE_ROCKBOX_USB are both set
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28100 a1c6a512-1295-4272-9138-f99709370657
2010-09-17 20:00:04 +00:00
Frank Gevaerts
f6912d3bbb Make the call to buttonlight_on() properly depend on HAVE_BUTTON_LIGHT
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28096 a1c6a512-1295-4272-9138-f99709370657
2010-09-17 19:05:27 +00:00
Rafaël Carré
520baf0b6a usb_drv_reset() is only used in usb-drv-arc.c
remove from usb_drv.h and mark static

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28092 a1c6a512-1295-4272-9138-f99709370657
2010-09-16 05:46:24 +00:00
Rafaël Carré
128593538b button driver: make repeat timings be centiseconds and not ticks
This doesn't change the value with the current HZ=100,
but makes it easy to change HZ in custome builds and still have buttons be usable

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28086 a1c6a512-1295-4272-9138-f99709370657
2010-09-15 07:43:55 +00:00
Rafaël Carré
5028eaa025 AMS USBv2: use OF settings for undocumented register
still failing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28061 a1c6a512-1295-4272-9138-f99709370657
2010-09-12 15:32:46 +00:00
Thomas Martitz
409c157089 Fix beast, forgot the asm label when renaming.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28058 a1c6a512-1295-4272-9138-f99709370657
2010-09-09 17:00:50 +00:00
Thomas Martitz
637bb2e608 Also rename cpucache_invalidate() function for mips. There's more in the target tree of mips which I have overlooked yesterday.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28057 a1c6a512-1295-4272-9138-f99709370657
2010-09-09 16:41:03 +00:00
Thomas Martitz
0d4585b28f Extend lc_open() to also being able to load overlay plugins.
For this it needs to look at the plugin header. Since lc_open() doesn't know
it's a plugin, the header needs to be changed slightly to include the new lc_header (which needs to be the first element in plugin_header so it can be casted savely).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28054 a1c6a512-1295-4272-9138-f99709370657
2010-09-09 16:17:21 +00:00
Thomas Martitz
cec7c99613 Forgot to rename cpucache_flush/_invalidate for PP502x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28053 a1c6a512-1295-4272-9138-f99709370657
2010-09-09 14:35:47 +00:00
Thomas Martitz
ded525e466 Revert r27972 to fix FS#11610 (but in a way android builds still work).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28050 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 21:26:36 +00:00
Thomas Martitz
f09499f70f Change sd-as3525*.c to the new cache coherency function names.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28046 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 17:16:52 +00:00
Thomas Martitz
dd5dd8cfd9 Rename cache coherency functions.
The old cache coherency function names where wrong and misleading.
The new names are (purposely different from vendor manuals)
*  commit_* (write-back only)
*  discard_* (removing lines from cache only)
*  commit_discard_* (write-back and removing lines from cache)

It's suspected the old names have led to wrong uses. The old names still exist
(as aliases) so every call via the old names need to be double checked and changed
to the new name.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28045 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 17:05:49 +00:00
Rafaël Carré
ca0e95ad08 USB AMSv2: use tables for usb_drv_port_speed() and usb_drv_mps_by_type()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28044 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 06:13:07 +00:00
Rafaël Carré
f1adafc05a USB AMSv2: split handle_ep_int()
IN & OUT interrupts have not much in common so move each to its own
function

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28043 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 05:43:05 +00:00
Rafaël Carré
5aa5de5dc8 USB AMSv2: smaller struct usb_endpoint
- reorder members (largest members first)
- int status -> int8_t status (we only use 0 or -1)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28042 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 05:16:40 +00:00
Rafaël Carré
8e0ff81d6f USB AMSv2: only read endpoint interrupt status register once
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28041 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 05:04:48 +00:00
Rafaël Carré
1752dfda1b usb-drv-as3525v2.c: cosmetics (remove trailing spaces)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28040 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 04:37:41 +00:00
Rafaël Carré
29276bed19 USB AMSv2: Reduce the size of (in/out)_ep_list
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28039 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 04:27:01 +00:00
Rafaël Carré
24cd51a2fe USB AMSv2: simplify FOR_EACH* macros
- use a single table to store endpoints numbers (1 table by direction)
- drop __ prefix since the table isn't meant to be hidden (it is used in
  reset_endpoints()
- the tables won't change at runtime: mark const

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28038 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 04:20:37 +00:00
Rafaël Carré
e526681c63 USB AMSv2: use status == -1 to signal errors
set status to failure before signaling usb_drv_send_nonblocking() in
reset_endpoints()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28037 a1c6a512-1295-4272-9138-f99709370657
2010-09-08 03:31:18 +00:00