Commit graph

5922 commits

Author SHA1 Message Date
Maurus Cuelenaere
868a4bdbc3 Fix RAM disk when no audio buffer is available
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19814 a1c6a512-1295-4272-9138-f99709370657
2009-01-21 20:52:35 +00:00
Bertrik Sikken
ae351903a6 Commit stable parts of FS#9611 - Sansa Clip radio code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19813 a1c6a512-1295-4272-9138-f99709370657
2009-01-21 20:51:43 +00:00
Maurus Cuelenaere
f1c6c3a754 USB storage driver:
* Move RAM disk buffer allocation #ifdef below
 * Don't use the audio buffer for bootloaders


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19812 a1c6a512-1295-4272-9138-f99709370657
2009-01-21 20:22:40 +00:00
Michael Sevakis
580d91f097 Unify kernel list management for ticks, registered queues and timeout objects by using NULL-terminated lists of pointers. Redo timeout API a bit to simplify it and integrate it. Should give some small binsize reduction accross the board but more if timeout objects are being included.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19808 a1c6a512-1295-4272-9138-f99709370657
2009-01-21 02:44:20 +00:00
Mark Arigo
a7ec73cddd Philips HDD1630 lcd work: register defines and enable contrast, flip, and inverse.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19807 a1c6a512-1295-4272-9138-f99709370657
2009-01-21 02:23:29 +00:00
Christian Gmeiner
ad6b6d764b cleanup audiohw_set_frequency by adding it to audiohw.h and removing it from all driver .h files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19806 a1c6a512-1295-4272-9138-f99709370657
2009-01-20 22:55:10 +00:00
Michael Sevakis
73f2d001fd PortalPlayer: Implement irq_handler() directly in C code rather than dispatching to irq() from crt0-pp.S. Remove unneeded STUB macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19801 a1c6a512-1295-4272-9138-f99709370657
2009-01-20 16:11:59 +00:00
Michael Sevakis
5d1eb8ee31 This should take care of resetting when unplugging on e200 as reported in FS#9812. Be sure VBUS is valid before posting insert message as a spurious reset can occur. It seems to fix it for me (tested by insulating D+/D- pins).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19800 a1c6a512-1295-4272-9138-f99709370657
2009-01-19 19:23:59 +00:00
Michael Sevakis
47509fafa4 Fix up ZVM builds. It appeared to share common definitions with PP502x targets so use those. Remove one stale comment left behind in last commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19798 a1c6a512-1295-4272-9138-f99709370657
2009-01-19 14:06:47 +00:00
Michael Sevakis
616c98b38f USB detection changes. c200/e200: Consider USB to be powered when charger is plugged but detect USB connection by bus reset. When received, disconnect and restart the driver fully enabled. imx31: Fix hack used to make initial connect succeeded-- set PHY type before initial reset. General: Move some target code out of usb-drv-arc.c and implement it in respective usb sources and CPU headers so things stay clean.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19797 a1c6a512-1295-4272-9138-f99709370657
2009-01-19 13:41:25 +00:00
Michael Giacomelli
26c06d165b Commit battery discharge curve for c200v1 by BertrikSikken. The old one wasn't very realistic.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19795 a1c6a512-1295-4272-9138-f99709370657
2009-01-18 19:48:34 +00:00
Michael Giacomelli
42567ccd74 Commit battery discharge curve for the Ipod Photo. We still need one for the 4G and Mini.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19794 a1c6a512-1295-4272-9138-f99709370657
2009-01-18 19:36:39 +00:00
Michael Giacomelli
3db7893911 Commit second part of FS#9663 by Thomas Martitz. Enable button light on fuze and e200v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19792 a1c6a512-1295-4272-9138-f99709370657
2009-01-18 18:49:36 +00:00
Michael Giacomelli
7278163087 Commit part 1 of FS#9663 by Thomas Martitz. Enables backlight fading on the Fuze and e200v2. Also removed a bit of dead code that was copied by accident into the fuze and e200v2 config files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19791 a1c6a512-1295-4272-9138-f99709370657
2009-01-18 18:43:58 +00:00
Andree Buschmann
1c44a9f431 Submit FS#9749 by Boris Gjenero. Do not reset IDE0 on startup for iPod Video and iPod 4G. Could also be done for H10 and iPod Color, if tested with positive result.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19789 a1c6a512-1295-4272-9138-f99709370657
2009-01-18 12:35:03 +00:00
Michael Giacomelli
090535fcbd SD driver cleanup by Thomas Martitz. Removes various magic numbers in favor of defines, increases a timeout in hopes of improving support for various SD cards, adds descriptive panic messages, and adds volatile were needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19774 a1c6a512-1295-4272-9138-f99709370657
2009-01-16 01:14:58 +00:00
Michael Sevakis
d7d75b7fd4 Do penance. Fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19769 a1c6a512-1295-4272-9138-f99709370657
2009-01-14 07:23:41 +00:00
Michael Sevakis
e2a25592f8 Gigabeat S has no need for a USB tick. Put in a simple framework that allows USB monitoring by event. Also add a couple missed usb_enable calls when the connection is not for 'slave mode'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19768 a1c6a512-1295-4272-9138-f99709370657
2009-01-14 07:01:49 +00:00
Björn Stenberg
f1c9376cf7 Fixed broken boost on AMS.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19766 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 22:04:01 +00:00
Michael Sevakis
09484db740 Fix more red. Missed one other place it needed #ifdef HAVE_USB_POWER.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19764 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 17:04:31 +00:00
Michael Sevakis
6645e9b109 Fix red. Forgot to add a #ifdef HAVE_USB_POWER in one spot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19763 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 16:45:36 +00:00
Michael Sevakis
6da8b4eb49 USB retweaking: Take out the USB_REQUEST/RELEASE_DISK scheme and simply ask the USB core whether or not any drivers require exclusive access at the moment of connect. Doing anthing else just produces nasty effects on Windows because it expects some communication just for enabling the PHY and not allowing it to mount volumes if a thread doesn't ack causes annoying error message boxes. Make behavior of each USB type identical from the system perspective. Some miscellaneous changes (simplify, ata->storage naming, define only used USB_* enums values were possible).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19762 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 16:27:35 +00:00
Björn Stenberg
30414d56c9 Reverting parts of r19760 that was mistakenly committed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19761 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 14:56:20 +00:00
Björn Stenberg
7bc29086ec Minor Clip button changes: UP|REPEAT no longer goes to wps. Volume adjustment activated in list + tree.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19760 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 14:51:44 +00:00
Andrew Mahone
738a5643ad support pixel aspect ratio compensation in recalc_dimension, with PAR defined as 1:1 by default, and set to 4:5 for archos bitmap targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19759 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 14:41:29 +00:00
Andrew Mahone
2fbf09752d remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api,
and remove wrapper for it from plugin.h


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 13:48:26 +00:00
Mark Arigo
c0d9084d6a Make the power button actually power off the Philips HDD1630
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19757 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 01:35:51 +00:00
Frank Gevaerts
bbd33a0a7d improve handling of unimplemented commands
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19755 a1c6a512-1295-4272-9138-f99709370657
2009-01-12 21:22:26 +00:00
Maurus Cuelenaere
09ba2bbf39 Onda VX7x7: commit working USB driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19754 a1c6a512-1295-4272-9138-f99709370657
2009-01-12 18:13:53 +00:00
Michael Sevakis
77649a7a2c Fix FS#9782 - lcd_bitmap_transparent_part clipping but keep smaller clipping code. The bitmap coordinates were not being adjusted when clipping left and top. Also fix for Gigabeat S.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19752 a1c6a512-1295-4272-9138-f99709370657
2009-01-12 02:15:04 +00:00
Antoine Cellerier
fd02bb2d28 Remove tabs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19749 a1c6a512-1295-4272-9138-f99709370657
2009-01-11 18:13:58 +00:00
Michael Sevakis
7d7969114d c200v1/e200v1: Add battery charging. This should be usable on v2 players but those should be evaluated for current, endpoint voltage and whether or not accurate battery readings may always be obtained (which determines algorithm setup and behavior).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19748 a1c6a512-1295-4272-9138-f99709370657
2009-01-11 10:07:22 +00:00
Mark Arigo
3482a55b83 Dual boot for the Philips HDD1630.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19741 a1c6a512-1295-4272-9138-f99709370657
2009-01-10 03:21:07 +00:00
Michael Sevakis
21869a1dc3 Gigabeat S: Make sure USB battery maintenece is engaged if fully charged from Main (charger off), USB is configured and Main is unplugged.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19740 a1c6a512-1295-4272-9138-f99709370657
2009-01-10 02:37:44 +00:00
Dave Chapman
e04e16395f Replace some nasty hard-coded offsets with labels
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19730 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 23:16:51 +00:00
Michael Sevakis
cb7e88d3b6 Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19717 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 10:38:40 +00:00
Michael Sevakis
4ed78f5c72 Clean up panicf and introduce system_exception_wait to do further target tasks and wait for a button when an unrecoverable error has occurred (panic, UIE, etc.). Returning from that function should reboot or don't return from it. Move UIE and __div0 for ARM to its own file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19716 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 10:15:32 +00:00
Rafaël Carré
c7e83bd017 Sansa AMS : use SD controller status to notify end of data transfer
Retry blocks transfer if a problem happened
Remove unneeded blocking API from DMA code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19714 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 08:27:42 +00:00
Michael Sevakis
dba556f33f AS3514: Simplify as there isn't a need to track the current source and sync mixer levels. Gang them when adjusting volume. Any inputs not currently in use will be muted or off anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19713 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 04:21:24 +00:00
Björn Stenberg
a36cdf5b37 Removed the sim_ prefix from the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19704 a1c6a512-1295-4272-9138-f99709370657
2009-01-07 09:53:46 +00:00
Michael Sevakis
40c7551013 Unless I'm severely mistaken, we can drop a thread slot now since mpegplayer creates one less thread.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19686 a1c6a512-1295-4272-9138-f99709370657
2009-01-05 10:57:12 +00:00
Jonathan Gordon
8b9fdb540c redo how the statusbar updates are done. send the EVENT_GUI_ACTIONUPDATE event every time get_action() is called. The event wont be as realiable (timewise) as before, but seems to work better
This also fixes FS#9761.
Also set the lcd font back to the ui font from the debug screens which use sysfont


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19681 a1c6a512-1295-4272-9138-f99709370657
2009-01-05 09:59:11 +00:00
Michael Sevakis
fde75551a7 Update copyright headers for 2009 since they're new files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19677 a1c6a512-1295-4272-9138-f99709370657
2009-01-05 00:06:45 +00:00
Michael Sevakis
e2876ee4e2 Gigabeat S: Get timer API working. metronome will work now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19676 a1c6a512-1295-4272-9138-f99709370657
2009-01-05 00:00:29 +00:00
Bertrik Sikken
4c00b666a7 Group source files common to all current as3525 targets under '#if CONFIG_CPU == AS3525'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19668 a1c6a512-1295-4272-9138-f99709370657
2009-01-04 15:48:33 +00:00
Michael Sevakis
d14f79dc7b Gigabeat S: Ensure a few more clocks are stopped for things we aren't using at the moment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19654 a1c6a512-1295-4272-9138-f99709370657
2009-01-03 07:29:26 +00:00
Bertrik Sikken
32c2f455d1 static/const/#include/tab police on various files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19643 a1c6a512-1295-4272-9138-f99709370657
2009-01-02 21:43:52 +00:00
Jens Arnold
87f88d25ba Speed up Player build a bit by not building a useless sysfont.o.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19642 a1c6a512-1295-4272-9138-f99709370657
2009-01-02 12:47:11 +00:00
Nils Wallménius
74e245b6b9 Small binsize optimization and likely a tiny speedup too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19641 a1c6a512-1295-4272-9138-f99709370657
2009-01-02 11:21:58 +00:00
Michael Giacomelli
b115ae3f9e Add very rough battery life estimateion for iPod minis. Also, update Sansav1 estimation while I'm at it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19637 a1c6a512-1295-4272-9138-f99709370657
2009-01-02 03:16:12 +00:00
Maurus Cuelenaere
aec45210ea Fix (USB) serial logf()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19634 a1c6a512-1295-4272-9138-f99709370657
2009-01-01 19:54:30 +00:00
Björn Stenberg
9e3844db07 Updated Fuze button code. FS#9645 by Thomas Martitz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19629 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 21:02:56 +00:00
Maurus Cuelenaere
5bf0cf5910 Ingenic Jz4740:
* Fix compiling
 * More USB work


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19628 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 18:15:24 +00:00
Frank Gevaerts
a2e80d573c correct wrong logf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19627 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 17:36:57 +00:00
Maurus Cuelenaere
b6eaf1db1b Fix off-by-one
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19626 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 17:14:24 +00:00
Maurus Cuelenaere
4c793febc8 Commit FS#9733 (multiline logf) by Yoshihisa Uchida
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19625 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 17:01:00 +00:00
Jonathan Gordon
e385ee18ce Decouple the statusbar drawing from the rest of the screen drawing. it is not drawn roughly 4x per second automatically.
viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.)
All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false).

This commit also includes some menu/list viewport cleanups from kugel in FS#9603


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 05:59:26 +00:00
Maurus Cuelenaere
54919ae917 Ingenic Jz4740:
* Clean up header file a bit
  * Add information about the IPU
  * Add original license
  * Add Ingenic Media Extension Instruction Set header file


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19621 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 01:57:07 +00:00
Michael Sevakis
e25505daa4 Hehe. Broke it already in last-second sanitation. Put some bits back.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19620 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 01:54:26 +00:00
Michael Sevakis
2e99b3d931 Gigabeat S: Allow recording from FM. Give FM the same volume range as playback. NOTE: This bumps the si4700 output volume to -0dB so other players with that may need a minor adjustment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19619 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 01:38:44 +00:00
Maurus Cuelenaere
9ac7af749b Ingenic players:
* Further implement USB driver
 * Add preliminary clock setup
 * Fix USB VID/PID


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19618 a1c6a512-1295-4272-9138-f99709370657
2008-12-31 01:11:04 +00:00
Björn Stenberg
5d3a035cb3 Implemented system_reboot().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19617 a1c6a512-1295-4272-9138-f99709370657
2008-12-30 23:53:35 +00:00
Björn Stenberg
f59724414b Fixed m200v4 red build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19616 a1c6a512-1295-4272-9138-f99709370657
2008-12-30 21:56:23 +00:00
Björn Stenberg
93afe5297b Cleaner usb detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19615 a1c6a512-1295-4272-9138-f99709370657
2008-12-30 21:17:43 +00:00
Björn Stenberg
f2d2b8c3c7 Added usb_detect() for Clip, Fuze, E200v2 and C200v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19614 a1c6a512-1295-4272-9138-f99709370657
2008-12-29 23:32:11 +00:00
Björn Stenberg
9ad94b9c35 Use the same poweroff count for clip as for other AMS targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19609 a1c6a512-1295-4272-9138-f99709370657
2008-12-28 21:58:13 +00:00
Nils Wallménius
9711b1e2e3 Gigabeat S, use saner input volume on the line in used for fm to have fm volume at similar volume as playback. Add a few comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19602 a1c6a512-1295-4272-9138-f99709370657
2008-12-27 22:56:29 +00:00
Steve Gotthardt
8852154b4d Fix for FS#9444. Scales balance between current and mute. Mutes channel at 100% balance when volume is muted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19601 a1c6a512-1295-4272-9138-f99709370657
2008-12-27 20:56:54 +00:00
Michael Sevakis
1fea6f6b22 Make si4700 tuner driver more sane with bit and field defines and entirely hide strange i2c interface from code with write/set/clear/masked functionality. On Gigabeat S use by-the-book busmode selection and GPIO lines. Implement some primitive station detection, debug registers in screen, and misc. changes to tie things together.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19600 a1c6a512-1295-4272-9138-f99709370657
2008-12-27 19:18:50 +00:00
Vitja Makarov
78d625f840 i7: set low-battery values and enable shutdown on low-battery
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19597 a1c6a512-1295-4272-9138-f99709370657
2008-12-26 19:31:48 +00:00
Michael Sevakis
eaea11230a imx31: Fix a couple small problems with the i2c driver that went unnoticed until FM. Reset addr_count always and stop resetting module before STOP is actually generated. Simplify a tiny bit and remove inactive preprocessor block.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19596 a1c6a512-1295-4272-9138-f99709370657
2008-12-26 16:06:40 +00:00
Andrew Mahone
f7fa7e5ad5 Latest work on the bmp on-load scaler:
Macros for calculating size needed for bitmap load and scaling, so that
these can be compile-time constant when their inputs are.

Reduce size of bayer dither by chopping all but first row of dither
matrix, and replacing 2D lookup with 1D lookup and small calculation.

Move some functions not related to actual bmp file loading out of bmp.c.

A smaller brightness() for mono targets, and a higher-quality one for
greyscale targets, both replacing the division by 10 with a shift.

Port of the linear and area scalers to greyscale targets, this costs
some binsize but produces better output even when dithered to 2bpp.

Move duplicated row output code from inside vertical scalers to a
separate row output function.

Move some multiplies out of the line scaler, for a small speedup and
code size reduction, as well as a small improvement in accuracy for the
upscaling case.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19592 a1c6a512-1295-4272-9138-f99709370657
2008-12-26 07:03:22 +00:00
Michael Giacomelli
1f52f406cb Fix more
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19588 a1c6a512-1295-4272-9138-f99709370657
2008-12-25 03:35:38 +00:00
Michael Giacomelli
e25f1f9f2a Hopefully fix read.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19586 a1c6a512-1295-4272-9138-f99709370657
2008-12-25 03:23:22 +00:00
Michael Giacomelli
70e9c7aed3 Commit FS#8624 by Linus Nielsen, Ryan Press, Craig Elliott, and Kenderes Tamas. Adds preliminary support for numerous accessories that use the ipod serial port on the dock connector. See IpodAccessories for a list of tested devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19585 a1c6a512-1295-4272-9138-f99709370657
2008-12-25 01:46:16 +00:00
Michael Sevakis
f921f74873 Gigabeat S: Fix a divide by zero in runtime estimation caused by using actual charger current. Use default constant for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19584 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 23:54:57 +00:00
Michael Sevakis
4f2bc16f5c Gigabeat S: Simplify and use a thermistor lookup table (ADC value => deg C) . Saves some binsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19583 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 23:36:33 +00:00
Michael Sevakis
377b42b63b H10 can distinguish USB and MAIN charger input so return proper flags. H100s were misconfigured and should use CHARGING_SIMPLE. Comment more on what charging types mean in config.h.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19582 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 19:36:37 +00:00
Michael Sevakis
9b8f56f35c Oops. Fix precompiler condition to be for all CONFIG_CHARGING != 0 (as it should be).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19581 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 17:42:07 +00:00
Michael Sevakis
24e2d8671d Fix red and yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19580 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 17:28:01 +00:00
Michael Sevakis
3157e13956 Simplify powermgmt thread loops so it calls functions turn (no more power_thread_sleep). Do other target-friendly simplifications, generic battery switch handling and split sim-specific code. Whoever can, please verify charging on the Archos Recorder (due to change in the charger duty cycle code).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19579 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 16:58:41 +00:00
Michael Giacomelli
3e7bdb9c24 Fix mistake in c200v2 button driver noticed by Thomas Maritiz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19577 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 04:53:45 +00:00
Michael Giacomelli
c97f640060 Commit FS#9679 by Thomas Martitz. Adds c200v2 to the target tree. Has some buttons defined, a bootloader, and stubs for most drivers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19574 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 04:10:18 +00:00
Mark Arigo
be26da8662 Remove some unused code in the Philips SA9200 port.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19573 a1c6a512-1295-4272-9138-f99709370657
2008-12-24 03:45:32 +00:00
Bertrik Sikken
641e4fd885 Fix inverted de-emphasis bit for si470x FM chip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19566 a1c6a512-1295-4272-9138-f99709370657
2008-12-23 18:22:00 +00:00
Bertrik Sikken
51322432a0 Update si4700 FM driver:
* implement 16-bit register cache and use #defines for registers
* add support for enabling the internal oscillator (needed for AMS sansas)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19559 a1c6a512-1295-4272-9138-f99709370657
2008-12-22 19:41:57 +00:00
Michael Sevakis
2712871057 Gigabeat S: Enable keyboard line editing and morse code input.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19558 a1c6a512-1295-4272-9138-f99709370657
2008-12-22 18:52:54 +00:00
Mark Arigo
1124713acb Enable the RTC on the Philips HDD16x0. The RTC is a PCF8563, but it's register compatible with the E8564. Thanks to Anton Veretenenko.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19555 a1c6a512-1295-4272-9138-f99709370657
2008-12-22 02:44:08 +00:00
Michael Sevakis
9ea8840b29 Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19551 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 20:31:31 +00:00
Michael Sevakis
491ed5ed6a Gigabeat S: Make tuner_power have the expected behavior (return old state). Static i2c node structure and add fmradio_i2c_enable to the fmradio i2c API for those that can implement it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19550 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 19:39:11 +00:00
Vitja Makarov
19413fc806 iaudio7: add battery voltage monitoring
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19549 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 19:16:54 +00:00
Michael Sevakis
f6789a7d73 Fix red. Remove stale comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19548 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 18:27:59 +00:00
Michael Sevakis
5667682dd2 Gigabeat S: Implement charging and power control to charge from AC or USB. Hold MENU while plugging USB cable to charge from USB without connecting. Under Windows, plugging USB for charging only but not connecting still needs to be properly handled (driver popup issue) but it will charge when connected normally-- no issue under Linux. Some accomodating changes made to powermgmt.c will soon be made nicer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19547 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 18:10:36 +00:00
Frank Gevaerts
af805be6cb revert accidental commit of unrelated files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19539 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 16:32:13 +00:00
Frank Gevaerts
c88cd20ab2 merge 19488 back from the 3.1 branch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19538 a1c6a512-1295-4272-9138-f99709370657
2008-12-21 16:30:09 +00:00
Björn Stenberg
511a8690c6 Fixed compiler warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19512 a1c6a512-1295-4272-9138-f99709370657
2008-12-20 20:48:27 +00:00
Maurus Cuelenaere
e4c09799a0 Ingenic players:
* Enable clocks when needed
 * Fix VX747+ button_hold()


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19505 a1c6a512-1295-4272-9138-f99709370657
2008-12-20 13:10:04 +00:00
Maurus Cuelenaere
ec380a79d9 Ingenic players: disable LCD clock when unneeded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19497 a1c6a512-1295-4272-9138-f99709370657
2008-12-20 01:57:55 +00:00
Maurus Cuelenaere
c983e3b1d2 Ingenic targets:
* LCD rework
 * Dynamic DMA enabling
 * PCM cleanup
 * USB: replace printf() with logf()
 * System: get rid of in_interrupt_mode()
 * Backlight: add support for software PWM


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19495 a1c6a512-1295-4272-9138-f99709370657
2008-12-20 01:48:46 +00:00
Maurus Cuelenaere
0df38260e8 Enable sleep() on MIPS targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19493 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 23:35:42 +00:00
Michael Sevakis
ac5059b1b5 Use set/clr instead of mod functions where applicable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19486 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 15:30:30 +00:00
Michael Sevakis
2b4290cc12 Add a couple useful shorthand atomic register write functions for imx31. Conversion to them where appropriate to make cleaner code to be done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19485 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 13:46:49 +00:00
Maurus Cuelenaere
9da2456c26 Fix SVN properties
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19482 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 11:29:18 +00:00
Maurus Cuelenaere
40ec543052 * Add support for Onda VX747+ (FS#9674 by Olivier Barbut)
* Fix Onda VX767 support
 * Small cleanup


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19481 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 11:13:58 +00:00
Mark Arigo
9bf93ba007 Working touchpad for the Philips HDD1630 using the Synaptics driver. Like the m:robe 100, the strip is divided into up, select, and down button regions. You can't swipe like in the OF. The keymap still needs some work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19480 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 03:31:26 +00:00
Bertrik Sikken
a6c62a218a Renamed as3525-codec.c to ascodec-as3525.c to bring it in line with the naming convention of the other driver
files.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19469 a1c6a512-1295-4272-9138-f99709370657
2008-12-17 20:16:20 +00:00
Vitja Makarov
f018b9dc38 Fix BOOTDIR setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19466 a1c6a512-1295-4272-9138-f99709370657
2008-12-17 12:24:47 +00:00
Mark Arigo
f2b66918e6 Move the Synaptics touchpad driver for the m:robe 100 to a common place. It will (soon) be used for the Philips HDD1630.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19465 a1c6a512-1295-4272-9138-f99709370657
2008-12-17 04:38:53 +00:00
Mark Arigo
a742c3cd56 Make the Philips SA9200 port build again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19464 a1c6a512-1295-4272-9138-f99709370657
2008-12-17 01:58:40 +00:00
Bertrik Sikken
c7c546cf59 AMS Sansa: add fmradio i2c support for e200v2 and the fuze, by Thomas Martitz and Michael Chicoine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19463 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 22:58:47 +00:00
Bertrik Sikken
2d0a045909 Enable as3514 HPCM codec setting for all AMS3525 targets (and disable it for others).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19460 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 22:16:55 +00:00
Vitja Makarov
b32c05b116 Fix compilation error when no HW freq defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19459 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 20:26:25 +00:00
Mark Arigo
5b9ddb746e Make the Philips HDD1630 build compile again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19454 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 05:04:30 +00:00
Michael Giacomelli
4e79f8edc7 Commit updated FS#9569 by Michael Chicoine. Fixes a bug in lcd_update_rect on the e200v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19453 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 02:50:39 +00:00
Michael Giacomelli
f78bf7d9fc Commit FS#9623 by Thomas Martitz. General LCD clean up. Removes needless delays, fixes some glitches, updates comments, and brings LCD updates closer to procedure found in OF.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19452 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 02:42:38 +00:00
Michael Giacomelli
8493da0974 Commit FS#9652 by Thomas Martitz. Enable microSD on e200v2 and fix initialization for the fuze and e200v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19451 a1c6a512-1295-4272-9138-f99709370657
2008-12-16 02:04:08 +00:00
Frank Gevaerts
66b97219fc Actually set sd_enabled (again by Thomas Martitz)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19450 a1c6a512-1295-4272-9138-f99709370657
2008-12-15 23:49:43 +00:00
Frank Gevaerts
f9fb52b933 fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19449 a1c6a512-1295-4272-9138-f99709370657
2008-12-15 23:47:17 +00:00
Björn Stenberg
ee46a3d88e Moved database builder into a separate directory, and gave it its' own Makefile. Now it compiles cleanly and builds a database if ran in root of music tree.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19448 a1c6a512-1295-4272-9138-f99709370657
2008-12-15 23:42:19 +00:00
Frank Gevaerts
9f37f04619 Apply FS#9650 (by Thomas Martitz). This adds hotswap and microSD support for the Fuze. It doesn't seem to work for all cards yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19447 a1c6a512-1295-4272-9138-f99709370657
2008-12-15 23:37:16 +00:00
Bertrik Sikken
ebf316f39d Sansa Clip: add sources for radio i2c communication.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19437 a1c6a512-1295-4272-9138-f99709370657
2008-12-14 17:36:35 +00:00
Michael Sevakis
26bf32c8aa Check that PCM is playing/recording *after* getting the current position from the hardware layer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19435 a1c6a512-1295-4272-9138-f99709370657
2008-12-14 11:42:47 +00:00
Michael Sevakis
0fab3e36f3 Place some LIKELY and UNLIKELY hints in kernel where I can definitively say anything about it and where it could make a small difference.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19433 a1c6a512-1295-4272-9138-f99709370657
2008-12-14 07:09:26 +00:00
Dominik Wenger
a654946622 correct battery readout for m200v4. Percentage is still uncalibrated.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19420 a1c6a512-1295-4272-9138-f99709370657
2008-12-13 15:57:41 +00:00
Frank Gevaerts
19dfe330a1 Add a disconnect handler for usb storage. It doesn't do anything yet, but it will apparently be needed to reset the audio buffer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19418 a1c6a512-1295-4272-9138-f99709370657
2008-12-13 14:49:44 +00:00
Michael Sevakis
93572e2a9e Keyclick fixup take two. It is only 88 samples (2msec) long so keep a small static buffer around for beeps less than or equal to keyclick duration. This way it operates no matter the buffer state and still won't interfere with alternate PCM operations like recording or plugin playback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19415 a1c6a512-1295-4272-9138-f99709370657
2008-12-13 06:01:08 +00:00
Michael Sevakis
826688e699 PCM buffer beeping needs the audio buffer reset in order to work after operations that trash the buffer or keyclick won't be audible until playback is restarted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19413 a1c6a512-1295-4272-9138-f99709370657
2008-12-13 02:48:36 +00:00
Michael Sevakis
5e73f9ff20 Fix FS#8660-Recording hardlocks with keyclick enabled and FS#9388-keyclicks too late. Introduce audio_buffer_state to check whether PCM buffer is useable or disabled (trashed).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19411 a1c6a512-1295-4272-9138-f99709370657
2008-12-13 01:32:39 +00:00
Michael Sevakis
bdf3004f96 CLOCKING register should be set on hardware init.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19410 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 23:03:30 +00:00
Bertrik Sikken
7d354c5d34 FS#9625, keep HPCM codec setting (headphone common mode) enabled for E200V2 too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19407 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 21:18:47 +00:00
Dominik Wenger
90bcf9be5e m200v4: rename Keys, so they match better other targets with similar key-layout. Enable plugins, add keymaps for plugins. More keymap improvements needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19405 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 19:50:49 +00:00
Michael Sevakis
4f81ee65fa Argh. Being stupid. Missed one. Nap time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19403 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 13:08:35 +00:00
Michael Sevakis
b6e78acc5e Get rid of some pcm_apply_settings cruft at the low level I somehow missed. Move the ones in pcm.c around to better spots. Remove a variable from pcm-pnx0101.c that should no longer be there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19402 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 12:46:57 +00:00
Michael Sevakis
4bbaef6fd5 Fix-m the ruddiness.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19401 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 11:20:58 +00:00
Michael Sevakis
e69d567d9e Bring consistency to pcm implementation and samplerate handling. Less low-level duplication. A small test_sampr fix so it works on coldfire again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19400 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 11:01:07 +00:00
Jens Arnold
0ad97d13fc Reclaim a bit of binsize on hdd based archoses by making the bit test unsigned. On SH1, gcc optimizes this by using a right shift, and a signed '1' made it use an arithmetic right-shift-by-n, which is a libgcc function on SH1. This was the only place in the core using it. No effect on other architectures.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19399 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 07:48:01 +00:00
Mark Arigo
f2dc7139b9 Fix the sound level on the Philips HDD1630
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19396 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 04:59:06 +00:00
Mark Arigo
08585e417b FS#9591 by Anton Veretenenko for the Philips GoGear HDD1620/1630 (with a few changes by me). Fixes boot problem, pixel format, sound, and a few other things.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19395 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 04:56:25 +00:00
Rafaël Carré
eb6db0a647 Sansa e200v2 and Fuze : disable not implemented recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19391 a1c6a512-1295-4272-9138-f99709370657
2008-12-11 14:16:05 +00:00
Rafaël Carré
76ea5f0fae Sansa e200v2 and Fuze : disable tuner until i2c communication is tested (or written)
Correct a comment (si4702 is compatible with si4700.c)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19390 a1c6a512-1295-4272-9138-f99709370657
2008-12-11 14:05:52 +00:00
Michael Sevakis
2e8266df12 Fix a PortalPlayer PCM bug that made keyclick malfunction. Should fix FS#8836. Move FIQ banked register init out of crt0-pp.S and into pcm-pp.c to keep setups local to PCM driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19388 a1c6a512-1295-4272-9138-f99709370657
2008-12-11 01:48:31 +00:00
Michael Sevakis
441fca176a Fix a wrong comment in thread.c and mention an alternative approach to inits. Fix a couple headers' Id fields while at it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19386 a1c6a512-1295-4272-9138-f99709370657
2008-12-10 21:10:34 +00:00
Nils Wallménius
7987e9a801 Fix minor copy & paste error in comment. No functional change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19383 a1c6a512-1295-4272-9138-f99709370657
2008-12-10 13:42:20 +00:00
Rafaël Carré
88bb7acc0a Sansa Clip: enable tagcache, quickscreen and pitchscreen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19382 a1c6a512-1295-4272-9138-f99709370657
2008-12-10 13:00:01 +00:00
Michael Sevakis
f2f394793c Fix red and a couple other things I somehow missed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19378 a1c6a512-1295-4272-9138-f99709370657
2008-12-10 09:11:43 +00:00
Michael Sevakis
8cfbd3604f Use cookies for thread identification instead of pointers directly which gives a buffer against wrongly identifying a thread when the slot is recycled (which has been nagging me for awhile). A slot gets 255 uses before it repeats. Everything gets incompatible so a full update is required.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19377 a1c6a512-1295-4272-9138-f99709370657
2008-12-10 08:57:10 +00:00
Andrew Mahone
781421afa2 resize-on-load for bitmap files on 2bpp and color targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19374 a1c6a512-1295-4272-9138-f99709370657
2008-12-09 23:07:59 +00:00
Nils Wallménius
65f61d6cce FS#9609 FM radio support for the Gigabeat S, seeking/scanning is not yet
implemented but manual tuning works nicely. Thanks to Rafaël Carré,
Bertrik Sikken and Robert Menes for suggestions and debugging help.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19372 a1c6a512-1295-4272-9138-f99709370657
2008-12-09 20:48:04 +00:00
Dominik Wenger
02184a242e make fmradio-i2c code from clip more generic, so it works for m200v4 and hopefully all other as3525 targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19370 a1c6a512-1295-4272-9138-f99709370657
2008-12-09 17:21:16 +00:00
Michael Sevakis
4ae9de5490 Color LCDs shouldn't have to have contrast set to 0 before shutdown. If contrast is implemented, then it can cause it to flash a bit before poweroff.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19369 a1c6a512-1295-4272-9138-f99709370657
2008-12-09 01:33:01 +00:00