Commit graph

3135 commits

Author SHA1 Message Date
Peter D'Hoye
9ae0c957c8 Remove previous fix as it seems to cause lock-ups when used with a remote.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10037 a1c6a512-1295-4272-9138-f99709370657
2006-06-03 08:56:58 +00:00
Peter D'Hoye
eca4a49a08 Do not allow interrupts between the two calls that set the recording gain. Fixes volume glitches when changing recording gain.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10031 a1c6a512-1295-4272-9138-f99709370657
2006-06-02 19:32:36 +00:00
Miika Pekkarinen
5127cfad1d Fixed incorrect memory allocation bug with tagcache.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10023 a1c6a512-1295-4272-9138-f99709370657
2006-05-30 18:13:18 +00:00
Dan Everton
b2ec716534 Use correct file mode when creating files. Fixes task 5452
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10020 a1c6a512-1295-4272-9138-f99709370657
2006-05-30 11:26:41 +00:00
Peter D'Hoye
45975987b2 code police
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9996 a1c6a512-1295-4272-9138-f99709370657
2006-05-27 09:27:22 +00:00
Hristo Kovachev
372ae28da9 Oops, move out the define from the #ifndef SIMULATOR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9956 a1c6a512-1295-4272-9138-f99709370657
2006-05-18 11:27:10 +00:00
Hristo Kovachev
8fb9f023ac Use more proper default contrast for the iriver lcd remotes, also reset
the contrast in the same way as it is for the main screen


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9955 a1c6a512-1295-4272-9138-f99709370657
2006-05-18 11:12:54 +00:00
Jens Arnold
44a759528d Iriver: Don't scroll remote LCD lines 'in the dark', i.e. with the remote unplugged.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9951 a1c6a512-1295-4272-9138-f99709370657
2006-05-16 22:27:31 +00:00
Hardeep Sidhu
2436dbabe7 Update dircache startcluster at file close when writing. Fixes bug when creating small files (dircache startcluster remains 0 because fat write doesn't occur until close).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9950 a1c6a512-1295-4272-9138-f99709370657
2006-05-16 06:53:41 +00:00
Jens Arnold
a238ab9df8 Iriver: Moved the handling of the UDA1380 split gain (analog preamp + decimator gain) into the UDA driver. * All: Settings structure sorted & cleaned up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9927 a1c6a512-1295-4272-9138-f99709370657
2006-05-14 23:34:24 +00:00
Peter D'Hoye
784b4c9a5b Correctly test on volume id flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9925 a1c6a512-1295-4272-9138-f99709370657
2006-05-13 21:47:27 +00:00
Jens Arnold
736a399bc4 H1x0: Obey SPDIF power setting for monitoring SPDIF recordings as far as possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9923 a1c6a512-1295-4272-9138-f99709370657
2006-05-12 20:59:00 +00:00
Jens Arnold
2de6604e3a Iriver recording: Always route the signals through the coldfire audio interface for monitoring. Advantages: (H1x0) Enables parallel analog and SPDIF monitoring of both analog or SPDIF sources. When recording from SPDIF, the SPDIF monitor signal is pure pass-through. (all) Digital clipping is now audible in the analog monitor signal.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9918 a1c6a512-1295-4272-9138-f99709370657
2006-05-12 00:47:47 +00:00
Thom Johansen
a4bfe37c6c Optical S/PDIF recording and monitoring for Iriver H1x0. Removed unsupported recording options on Iriver. Sample rate displayed in recording screen reflects the real S/PDIF sample rate when doing S/PDIF recording. Testing would be appreciated. Thanks to Jens Arnold for fixing the DMA hang issue. Will reset settings!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9916 a1c6a512-1295-4272-9138-f99709370657
2006-05-11 22:55:24 +00:00
Jens Arnold
119d5b72ac Iriver: Don't power the UDA1380 WSPLL as we don't use it. This is required according to the datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9913 a1c6a512-1295-4272-9138-f99709370657
2006-05-11 19:19:35 +00:00
Jens Arnold
0c262d8f52 Coldfire: Use the auto-align feature in conjunction with line reads for the playback DMA. Saves a bit of memory bandwidth.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9898 a1c6a512-1295-4272-9138-f99709370657
2006-05-09 23:50:50 +00:00
Jens Arnold
61b8604a9c Ondio: (Hopefully) fix the occasional freezes during playback: Use DMA channel 0 for MMC transfer. As it has higher priority than channel 3 (used for playback), the risk of serial receive overruns is minimised.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9885 a1c6a512-1295-4272-9138-f99709370657
2006-05-07 20:20:27 +00:00
Linus Nielsen Feltzing
33bd218010 Patch #5182 by Liberman Shachar - Vertical screen scroll bug fix (inverse bar crop in vertical scroll)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9881 a1c6a512-1295-4272-9138-f99709370657
2006-05-06 06:37:23 +00:00
Peter D'Hoye
69433c8667 Fix fillrect calculation error for 'Screen scrolls out of view'. Fixes bug 5267. Also some minor code policing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9871 a1c6a512-1295-4272-9138-f99709370657
2006-05-03 20:22:03 +00:00
Dave Chapman
f79d35a25e ipods - First implementation of pcf50605_init() function. This enables the power-out in the Dock connector, which may help getting some accessories working - if they don't need to talk to the ipod via the Apple Accessory Protocol. Thanks to julius in IRC for testing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9860 a1c6a512-1295-4272-9138-f99709370657
2006-05-02 08:08:10 +00:00
Jens Arnold
b1feebeb2b Oops, correctly calculate the interrupt number in UIE().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9859 a1c6a512-1295-4272-9138-f99709370657
2006-05-02 07:36:39 +00:00
Jens Arnold
9e3da0d6d5 Fix red bootbox builds with gcc 4.x and -Os. Save a bit of code by not including the never called UIE0..UIE3.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9857 a1c6a512-1295-4272-9138-f99709370657
2006-05-01 22:15:36 +00:00
Hardeep Sidhu
b8d1a55fbd Properly set audio_is_initialized flag for swcodec devices ad use it when initializing crossfade. This should fix the problems with resuming playback at startup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9853 a1c6a512-1295-4272-9138-f99709370657
2006-05-01 18:18:54 +00:00
Peter D'Hoye
67ff2624bf Recording buffer offset must be passed on to the firmware calls, not the other way around. Should fix yellow builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9842 a1c6a512-1295-4272-9138-f99709370657
2006-04-30 23:18:21 +00:00
Peter D'Hoye
8e71f90940 The recording buffer should not try to use the voice buffer, so map our buffer after it. On swcodec targets, recording always uses this buffer so always notify the others that we did. Fixes bug 4754.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9841 a1c6a512-1295-4272-9138-f99709370657
2006-04-30 22:28:45 +00:00
Jens Arnold
290801fe0b Ooops. Fix red bootbox builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9833 a1c6a512-1295-4272-9138-f99709370657
2006-04-29 13:18:40 +00:00
Jens Arnold
03cff5779b SH1: Moved exception vector table generation and weak aliasing into an asm block. Allows building with gcc 4.x
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9832 a1c6a512-1295-4272-9138-f99709370657
2006-04-29 12:42:55 +00:00
Jens Arnold
a8b0a6de2f ATA driver: * Don't lie to gcc about which parameters the assembler optimised loops touch. Fixes problems with higher optimisation levels. Some slight tweaks for SH1. * Prevent the assembler loops from being inlined as this is less efficient than having them in IRAM (only relevant at higher optimisation levels).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9828 a1c6a512-1295-4272-9138-f99709370657
2006-04-29 08:33:10 +00:00
Daniel Stenberg
5f0395d577 While waiting further and better improvements, this fixes the bug to
lcd_update_rect() I introduced previously.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9822 a1c6a512-1295-4272-9138-f99709370657
2006-04-27 21:11:18 +00:00
Jens Arnold
a7c20ac760 Replaced remaining '#pragma interrupt' with __attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
2006-04-26 20:22:27 +00:00
Peter D'Hoye
171b5ff207 H300: add a small delay between lcd enable and backlight on. Avoids a flash at backlight on when using dark backgrounds. (fix for bug 4764)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9815 a1c6a512-1295-4272-9138-f99709370657
2006-04-26 19:26:01 +00:00
Jens Arnold
96dce1d3b7 SH targets: Protect against a gcc 3.3.x bug triggered by -O2 or -Os, in preparation for switching to -Os. Workaround could be removed again for gcc 3.4.x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9809 a1c6a512-1295-4272-9138-f99709370657
2006-04-25 22:40:55 +00:00
Frank Dischner
bf64c45148 Use filesize instead of lseek to find the size of a file. Reduces disk access and improves font loading time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9792 a1c6a512-1295-4272-9138-f99709370657
2006-04-24 16:02:44 +00:00
Jens Arnold
67604c960b Ipods, X5: Proper backlight behaviour on buton unlock.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9788 a1c6a512-1295-4272-9138-f99709370657
2006-04-24 07:14:16 +00:00
Jens Arnold
1aae0a0e8c Show RoLo messages on remote.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9787 a1c6a512-1295-4272-9138-f99709370657
2006-04-24 06:45:27 +00:00
Jens Arnold
2aa85a2b6a Iriver: Reworked remote detection & init: * Monitor the remote type & try to init the LCD for 20 seconds after plugin. Fixes wrong type detection & non-working LCD when plugging in slowly, and inits much faster if the remote is already plugged at boot (no delayed logo). * Don't try to init the LCD for a non-LCD remote in order to save CPU power. * More precise scroll timing, taking drawing time & other delays into account.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9783 a1c6a512-1295-4272-9138-f99709370657
2006-04-24 01:21:11 +00:00
Brandon Low
f3bc1efc49 First commit of reworking voice to be mroe stable on swcodec
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9758 a1c6a512-1295-4272-9138-f99709370657
2006-04-22 14:40:13 +00:00
Frank Dischner
54d757b0c5 Prevent scroll wheel on mini 1g from over-scrolling when scrolling very fast.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9740 a1c6a512-1295-4272-9138-f99709370657
2006-04-20 07:44:58 +00:00
Frank Dischner
5d9eccd85b Fix button driver for ipod mini 1G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9732 a1c6a512-1295-4272-9138-f99709370657
2006-04-19 18:06:56 +00:00
Miika Pekkarinen
fa893c6b88 Performance optimizations for tagcache commit. Still more left to be done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9721 a1c6a512-1295-4272-9138-f99709370657
2006-04-18 18:56:56 +00:00
Brandon Low
7f5fb7bbd9 Fix red builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9710 a1c6a512-1295-4272-9138-f99709370657
2006-04-17 20:55:53 +00:00
Brandon Low
5286c7ddb8 Add copy and adjust helper for mp3entry struct as it is 1) not copy safe and 2) nonobvious that its not copy safe
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9709 a1c6a512-1295-4272-9138-f99709370657
2006-04-17 20:32:25 +00:00
Jens Arnold
b75ad888f9 Ooops^2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9696 a1c6a512-1295-4272-9138-f99709370657
2006-04-17 00:09:02 +00:00
Jens Arnold
6e3fa1c467 Ooops.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9694 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 23:37:48 +00:00
Jens Arnold
f2897e8180 H300: Optimised PCF50606 driver, significantly reduces CPU power drain from the button tick (with both main & remote buttons: 50%->13% at 11MHz, 12%->6% at 45MHz): * Delay is adapted to the current CPU clock, aiming at constant 400kHz i2c clock. * Reduced number of port accesses (accessing GPIO is very slow, especially with the atomic boolean instructions) by implementing an open-collector-like behaviour. * Time-critical functions implemented in assembler.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9693 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 23:16:32 +00:00
Jens Arnold
5380376dbc H300 (and H1x0): Improved button debouncing. Solves the possible 'fake doubleclick' effect by not pretending no button is pressed if the reading is unstable. Now it uses the latest stable reading instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9691 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 22:28:24 +00:00
Miika Pekkarinen
3b31346103 Commit tagcache in background when possible (at least dircache enabled).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9686 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 17:32:54 +00:00
Zakk Roberts
16a57e2e4f Also add a config-specific 'Default' value, this should fix the sim builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9680 a1c6a512-1295-4272-9138-f99709370657
2006-04-15 13:07:21 +00:00
Zakk Roberts
b61e263219 Move the battery min/max capacity to player config files and add an increment setting (amount of mAh to increase/decrease by in the settings menu) for more precise battery value tweaking/limiting per-model. This allows the proper range for iAudio X5 - 950mAh, or 2250mAh for the X5L.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9678 a1c6a512-1295-4272-9138-f99709370657
2006-04-15 12:31:33 +00:00
Jens Arnold
923e3a4496 Coldfire: Use the maximum possible i2c clock for the audio codec. Both the UDA1380TT and the TLV320AIC23B can handle up to 400kHz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9656 a1c6a512-1295-4272-9138-f99709370657
2006-04-14 07:56:02 +00:00