Commit graph

27928 commits

Author SHA1 Message Date
Michael Sevakis
3c81bf0c13 Fix move_handle in buffering. Calculating wraps by buffer_len - 1 is incorrect. Switch handle movement to memmove calls exclusively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29288 a1c6a512-1295-4272-9138-f99709370657
2011-02-12 12:18:09 +00:00
Dave Chapman
b27de9fddc Remove unused variable "need_full_path" - it was removed in r28592
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29287 a1c6a512-1295-4272-9138-f99709370657
2011-02-12 00:37:22 +00:00
Dave Chapman
9e638c7bc8 FS#11924 - Use separate targets for RaaA devices. This changes tools/configure to present the (currently four) possible RaaA targets as separate menu items instead of a single "Application" item with a follow-up question.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29286 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 19:51:29 +00:00
Michael Hohmuth
751e922783 Use generic keyboard actions rather than the device-dependent
\ButtonLeft / \ButtonRight

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29285 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 18:45:04 +00:00
Michael Hohmuth
97ba12e336 Describe autoresume in the manual.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29284 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 17:17:39 +00:00
Andree Buschmann
3f377e568e Use menu layout for sleep timer that is consistent to other timers. Closes FS#11923.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29283 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 16:15:11 +00:00
Andree Buschmann
5ead6a6056 Submit FS#11926, calibrate charge curve for e200v1. Thanks to Martin Ritter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29282 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 15:58:39 +00:00
Frank Gevaerts
4421cfedf0 Make sure there is a logo for LCD_WIDTH>480 && LCDWIDTH<600 (useful for 600x1024 LCDs)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29281 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 11:28:21 +00:00
Michael Hohmuth
a5303765ec autoresume: Match full directory path names only in autoresumable()
Removed genre-tag matching (considered too fragile for real-world use).

Removed substring matching for file names.  To avoid unintended
matches, the search pattern now must match the file's full dir name
(or a parent directory thereof), anchored in the root directory.

Search strings now must be delimited with ":" rather than ",".  The
default list of directories is "/podcast:/podcasts" (case-insensitive).

Made implementation somewhat more efficient (don't use strtok -> no
need to copy the string to private storage (stack) before tokenizing
it).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29280 a1c6a512-1295-4272-9138-f99709370657
2011-02-11 00:20:03 +00:00
Michael Sevakis
bdec638b9b Always do proper mp3entry copying instead of using bufread directly. Add bufreadid3() helper.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29279 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 22:03:39 +00:00
Alexander Levin
82a8ad643a Fix a couple of typos in the comment in english.lang. Whether the comment is correct is another question which is not the subject of this commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29278 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 20:55:39 +00:00
Andree Buschmann
57ca48458f Fix test plugin build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29277 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 20:20:12 +00:00
Michael Sparmann
40e76916cd iPod Nano2g/Classic clickwheel: Configure GPIO pins as Hi-Z while hold switch is engaged
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29276 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 19:13:30 +00:00
Michael Sevakis
edfff8a5ef audio_peek_track should copy the struct mp3entry instead of pointing directly into the buffer. Despite the dire warning, caller does in fact yield/sleep and its usage is too nonlocalized to control that reliably.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29275 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 10:26:07 +00:00
Michael Sparmann
6f9d2ad130 Fix more red. Two had been hiding.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29274 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 10:22:44 +00:00
Michael Sparmann
42c0c9a619 Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29273 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 10:16:27 +00:00
Michael Sparmann
cd8e8419f7 iPod Nano 2G: Fix current leak through clickwheel GPIOs when clickwheel is powered down
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29272 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 10:10:27 +00:00
Michael Hohmuth
e93713ba3c autoresume: Simplify configuration option for resume on automatic
track change

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29271 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 09:37:58 +00:00
Michael Sevakis
88d91faba5 buffering: Don't execute move-handle-ony case if handle is of metadata type (atomic) and must be kept fully buffered. Manage handle corruption guard and handle buffering with one set of logic which allows reading of the maximum amount of data without overflow. 'FIXME' regarding handle corruption guard is really part of expected operation when thread that does the handle closing hasn't yet performed the delegated task before rebuffering starts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29270 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 05:56:21 +00:00
Michael Sparmann
2007d67bce Fix red (remove accidentally committed debugging code)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29269 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 00:35:46 +00:00
Michael Sparmann
fdf092ebd3 iPod Classic: Do boosting the right way round ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29268 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 00:30:42 +00:00
Michael Sparmann
2db7f00255 iPod Classic: Fix current leak through clickwheel GPIOs when clickwheel is powered down
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29267 a1c6a512-1295-4272-9138-f99709370657
2011-02-10 00:14:21 +00:00
Alex Parker
40531597f3 Manual: We now support embedded JPEG album art in ID3v2 tags.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29266 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 22:12:37 +00:00
Michael Sparmann
44870b7415 iPod Classic: Enable boosting by switching the CPU between 1x and 2x AHB clock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29265 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 21:45:57 +00:00
Michael Sparmann
acf54bed55 iPod Classic: This time really fix the hold switch. Read it out through the power manager, and cache the result for 100 milliseconds because the power manager doesn't like being spammed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29264 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 21:39:40 +00:00
Thomas Martitz
bf1ca7041e Hopefully all green now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29263 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 20:51:11 +00:00
Thomas Martitz
c64e5e675a Fix remaining reds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29262 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 20:38:36 +00:00
Thomas Martitz
86cab2e27a Disable buffering codecs (and code generally) on RaaA.
It's not useful to do it since you need to write back the code to disk to be able to load it from memory, it also requires writing to an executable directory.
Keep it for the simulator for the sake of simulating.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29261 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 20:27:23 +00:00
Thomas Martitz
82eec87dd6 Fix red. Not all targets have album art support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29260 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 20:22:55 +00:00
Thomas Martitz
f577a6a22c Embedded album art support in MP3/ID3v2 tags.
- Support is limited to non-desync jpeg in id3v2 tags. Other formats (hopefully) follow in the future.
- Embedded album art takes precedence over files in album art files.
- No additional buffers are used, the jpeg is read directly from the audio file.

Flyspray: FS#11216
Author: Yoshihisa Uchida and I

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29259 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 20:13:13 +00:00
Michael Sevakis
0d902c8c54 Buffering should align itself and not rely on buffering_reset parameters when storage alignment matters so that wrapped reads maintain alignment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29258 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 09:30:09 +00:00
Michael Sevakis
19ea72ff63 buffering: Fix a case that could allow widx to fully wrap to ridx and overflow the ringbuffer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29257 a1c6a512-1295-4272-9138-f99709370657
2011-02-09 08:44:37 +00:00
Thomas Jarosch
06023f3110 debian directory needed to build maemo packages
The build rules in the debain directoy are currently
maemo specific and won't build on debian.

Later on we could add automatic distribution detection
and switch the build rules based on that if someone
wants to build a generic RaaA package for debian.

Maemo binary packages get build like this (in scratchbox):

dpkg-buildpackage -rfakeroot -sa

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29256 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 22:09:36 +00:00
Dave Chapman
eaeff26349 Fix a duplicate target_id
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29255 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 22:07:47 +00:00
Marianne Arnold
0efaee4c2d Correct typo in the Philipps SA9200 config file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29254 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 21:42:19 +00:00
Thomas Jarosch
7d4f3a7861 Add cabbie theme for 800x480
Theme was quickly ported by kugel from 480x800 theme.

Still has viewport bugs: Brings up the context menu
every time one touches the rew/ff buttons.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29253 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 21:13:57 +00:00
Michael Hohmuth
5afd0668e5 Fix red: Do not compile autoresume() function for the database tool.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29252 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 20:50:25 +00:00
Michael Hohmuth
7141ff4513 Add option to resume next track on automatic track change
Move autoresume setting into its own menu.  Add option to customize
which tracks should be resumed on automatic track change.  Tracks can
be selected based on their their file location or genre tag
(comma-separated list of filename / genre substrings).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29251 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 20:31:35 +00:00
Michael Hohmuth
4844142e16 Do not update resume information and do not log statistics when a
track is interrupted within the first 15 seconds.

Regard a rewind to 0:00 as a track restart (updating resume position /
playback statistics before the rewind and starting the 15 s delay).

This allows skipping forward across an unplayed track without changing
its resume offset.  Also, it is possible to skip backward to the
previous track after rewinding to the current track to 0:00 (pressing
Left twice) without losing the current track's resume position.

Initially contributed by Dave Slusher

Caveats:

* Works only for SWCODEC
* Skipping forward without altering the resume position does not work
  when skip to outro has been turned on.
* The 15-second window in which the resume offset will not be updated
  should start at the initial resume position, not at 0:00.  This
  would allow skipping over partially played tracks without altering
  the resume position.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29250 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 20:31:27 +00:00
Michael Hohmuth
f0ce188681 Make enable-autoresume option more consistent with other settings.
Rename "Enable automatic resume" to "Automatic resume", and make it a
simple Yes/No option.  Offer the user to initialize the database in
case it is not yet ready when enabling autoresume.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29249 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 20:31:22 +00:00
Thomas Jarosch
5f037ac015 Initial maemo platform support
Adds Nokia N900, N810 and N800 support.

Features:
- Introduce maemo specific platform defines
- Play audio in silent mode
- Stop playback on incoming calls
- Battery level readout
- Bluetooth headset support
- Save CPU by disabling screen updates if the display
  is off or the app doesn't have input focus
- N900: GStreamer audio backend

Kudos to kugel for the code review.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29248 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 20:05:25 +00:00
Karl Kurbjun
4d12904439 M:Robe 500: Use bit modifiers more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29247 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 05:53:30 +00:00
Karl Kurbjun
a014191e5e Fix battery charging.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29246 a1c6a512-1295-4272-9138-f99709370657
2011-02-08 05:51:18 +00:00
Magnus Holmgren
a91881d755 Update Swedish translation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29245 a1c6a512-1295-4272-9138-f99709370657
2011-02-07 20:35:10 +00:00
Nils Wallménius
c9038bf9ae Remove incorrectly deprecated LANG_REC_SIZE phrase to not be confusing. Having only the *: none target is the same as deleting the phrase so this does not change the string order further. Put a note in the header in english.lang with some more info on deprecation of strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29244 a1c6a512-1295-4272-9138-f99709370657
2011-02-07 20:26:10 +00:00
Michael Sparmann
597e01bd08 Fix some evil whitespace
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29243 a1c6a512-1295-4272-9138-f99709370657
2011-02-07 18:54:33 +00:00
Michael Sparmann
91f9b0b8ca iPod Classic: Fix hold switch glitches
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29242 a1c6a512-1295-4272-9138-f99709370657
2011-02-07 18:53:17 +00:00
Michael Sparmann
87da25c87c S5L8702: Power down I2C while it's unused
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29241 a1c6a512-1295-4272-9138-f99709370657
2011-02-07 18:43:05 +00:00
Karl Kurbjun
37e2c9c313 DM320: Fix app.lds to reduce binary image size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29240 a1c6a512-1295-4272-9138-f99709370657
2011-02-07 04:55:31 +00:00
Jens Arnold
8c38983b22 Fix standalone demac tool build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29239 a1c6a512-1295-4272-9138-f99709370657
2011-02-06 23:18:30 +00:00