summaryrefslogtreecommitdiff
path: root/firmware
AgeCommit message (Collapse)Author
2010-05-27fuzev2: lcd_enable and lcd_invert() work fineRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26343 a1c6a512-1295-4272-9138-f99709370657
2010-05-27sd-as3525v2: Include time spent yielding when figuring timeout in ↵Rafaël Carré
sd_wait_for_tran_state() (apply r23738 to as3525v2 code) extend the arbitrary delay to 5 seconds, we never know git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26342 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Gigabeat S PCM: Sync some comments to changes.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26341 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Gigabeat S PCM: There's no reason to touch any hardware registers in order ↵Michael Sevakis
to lock out PCM callbacks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26340 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Simulator: get rid of SDL_mutex* parameter to sim_do_exit.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26338 a1c6a512-1295-4272-9138-f99709370657
2010-05-27SDL Simulator: Get thread shutdown and properly handled and fix a minor ↵Michael Sevakis
memory leak that happens when threads exit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26336 a1c6a512-1295-4272-9138-f99709370657
2010-05-27as3525: no need to ack TIMER interrupt multiple timesRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26330 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Clip*: give lcd_hw_init() INIT_ATTR attributeRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26329 a1c6a512-1295-4272-9138-f99709370657
2010-05-27mark some functions as init functions (discarded after init() has run)Rafaël Carré
tick_start, fmradio_i2c_init, pcm_init, pcm_postinit, pcm_play_dma_init Also add some as3525 target specific functions Make as3525v2 use this attribute git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26328 a1c6a512-1295-4272-9138-f99709370657
2010-05-27as3525: don't export empty usb_init_device(), declare it as empty inlineRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26326 a1c6a512-1295-4272-9138-f99709370657
2010-05-27clipv2: make buttonlight functions static inline one-linersRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26323 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Generate C file / header for svn version stringRafaël Carré
It's now easier to force rebuild of files depending on the svn revision version.c/version.h are generated once with new tools/genversion.sh Changes in the VCS are still not auto detected, so you'll have to remove builddir/version.* if you want to change the string in your binaries APPSVERSION is now called RBVERSION and is defined in the generated header instead of being defined by the Makefiles appsversion is now called rbversion (the plugin api number didn't change since old modules are still binary compatible) Change some bootloaders to use knwon-at-buildtime RBVERSION instead of "%s" + rbversion You'll need to run make clean to regenerate dependencies after the removal of apps/version.h To build binaries with a different version string, hand-edit tools/version.sh or tools/genversion.sh (which calls the former) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26320 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525: fix r26308Rafaël Carré
I2SOUT peri needs to be enabled to set the loopback setting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26319 a1c6a512-1295-4272-9138-f99709370657
2010-05-26UISimulator: cleaner startup using semaphore only to tell when event_thread ↵Michael Sevakis
is done initializing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26317 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525: as revealed by r26311, it seems DMAC interrupt can't be maskedRafaël Carré
Even if we disable it in VIC_INT_EN_CLEAR, it still fires an interrupt by running the default isr. Locking requires disabling interrupts completely. I'm not sure if DMAC is the only interrupt affected or if we can't rely on VIC_INT_EN_CLEAR to mask interrupts. If it's the latter, we will need to have special locking scheme for INT_AUDIO. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26316 a1c6a512-1295-4272-9138-f99709370657
2010-05-26Since the sdl to target tree move, the main thread cannot be removed anymore,Thomas Martitz
since it's now the default thread which is implicitely created by starting the sim. This caused a segfault that r26283 tried to fix. Revert r26283 and protect the main thread from being removed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26315 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525: write irq/fiq handlers in CRafaël Carré
Declare VIC registers holding function pointers as volatile pointers to function pointers and access them directly without casting UIRQ() is an IRQ handler too, even if it doesn't return git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26313 a1c6a512-1295-4272-9138-f99709370657
2010-05-26typo: 'nomasked' -> 'unmasked'Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26312 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525: implement pcm_play_dma_get_peak_buffer correctlyRafaël Carré
give the real amount of bytes left to transfer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26311 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525v2: no need to set PMU_GATE bit (bit 3) in PMU_enable register when ↵Rafaël Carré
reading It's only needed when we'll write to the selected register git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26309 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525: move audio loopback handling to audio_set_output_sourceRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26308 a1c6a512-1295-4272-9138-f99709370657
2010-05-26Gigabeat S: Turn off hardware effects (tone and 3d) when doing digital ↵Michael Sevakis
loopback for FM recording otherwise the signal and levels are poorly represented in monitoring (can't just do ADC->DAC for general FM and get voice too). Some tweaking to input setup to improve gain a tiny bit. A little bit quieter startup too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26300 a1c6a512-1295-4272-9138-f99709370657
2010-05-25as3525v1: relax a bit requirements in the SD driverRafaël Carré
- retry failed commands up to 6 times - wait at most 5 seconds for the card to go to TRAN state - wait for the card to be in TRAN state (i.e. not programming) before disabling SD clocks (remove the workaround in sd_enable() ) should fix lockups reported on fuzev1 under heavy internal storage + µSD use (playback + database/pictureflow updating) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26291 a1c6a512-1295-4272-9138-f99709370657
2010-05-25as3525v2: do not deselect all cards after a SD transferRafaël Carré
Selecting the right card before the transfer will deselect the other one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26290 a1c6a512-1295-4272-9138-f99709370657
2010-05-25as3525: find_first_set_bit() isn't built in bootloadersRafaël Carré
We assume only one bit is set and use clz to find the most significant set bit, if there's more than one bit set we'll see it in the panic msg git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26285 a1c6a512-1295-4272-9138-f99709370657
2010-05-25sdl: call SDL_Quit() before exiting when receiving the SDL_QUIT event. It is ↵Amaury Pouly
necessary as the sdl tree move removed the atexit(SDL_Quit); git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26283 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3525: Fix an oops in converting the recording API to a newer form.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26270 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. ↵Michael Sevakis
Make 'pause' simply be 'mute', allowing tuning during user mute as well as nicer-sounding unmute. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26269 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Vibe 500: fix the scrolling through the lists by implementing BUTTON_REPEAT ↵Szymon Dziok
for the scrollstrip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26268 a1c6a512-1295-4272-9138-f99709370657
2010-05-24fix YUV Dither for the other targets too, like in r26064.Szymon Dziok
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26266 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Clipv1 battery capacity is 330mAhRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26261 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3525: don't destroy status when calculating IRQ number in UIRQ()Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26260 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3525: be sure all interrupts are disabled when recordingRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26257 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Really cleanup remaining r26253 yellow (hopefully).Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26256 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Cleanup r26253 red and yellow.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26254 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Make PCM->driver interface about as simple as it will get. Registered ↵Michael Sevakis
callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3525*: sd_wait_for_state() is only used for waiting to SD_TRAN stateRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26251 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3525: show unmasked interrupts on unhandled IRQRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26250 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3543 rtc wakeup: fix power offRafaël Carré
If we disable the hearbeat source after enabling the watchdog there's no more lock-up when powering off the dap Comment out alarm enabling on startup since rockbox disables the alarm anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26247 a1c6a512-1295-4272-9138-f99709370657
2010-05-22rtc_enable_alarm() needs no return valueRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26245 a1c6a512-1295-4272-9138-f99709370657
2010-05-22as3525v2: RTC alarmRafaël Carré
A specific poweroff function needs to be used for wake-up to work Disable RTC in bootloaders for consistency with other Sansas git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26243 a1c6a512-1295-4272-9138-f99709370657
2010-05-22fuzev1: don't enable RTC in the bootloaderRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26242 a1c6a512-1295-4272-9138-f99709370657
2010-05-21as3525v2: enable AFE (AUDIO Front End) interruptsRafaël Carré
We needed to set the XIRQ output pin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26238 a1c6a512-1295-4272-9138-f99709370657
2010-05-21ata: do some threading-related corrections (some sync related where it ↵Michael Sevakis
matters). Make sure 'sleeping' is 'false' before the powerup sequence (throws-off powermgmt and it *is* about to woken again and powermgmt will need to compensate). Avoid looking at mutex flag directly; there's no tangible benefit I can discern and changes to the kernel that alter the meaning shouldn't be able to break anything. For that, in the jz sd driver, have sd_disk_is_active just return 'false' like all the other SD drivers do. If it *must* return this, it should implement it's own method but it seems to not matter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26234 a1c6a512-1295-4272-9138-f99709370657
2010-05-21avoid overflow in puts_scroll().Teruaki Kawashima
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26231 a1c6a512-1295-4272-9138-f99709370657
2010-05-21kernel: the header says queue_peek should always be compiled in but the ↵Amaury Pouly
source put it in the #ifdef HAVE_EXTENDED_MESSAGING_AND_NAME section git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26229 a1c6a512-1295-4272-9138-f99709370657
2010-05-21dircache:Amaury Pouly
- fix check_event_queue to use queue_peek and not mess message order - change check_dircache_state to a more modest check to avoid messing up dircache state git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26228 a1c6a512-1295-4272-9138-f99709370657
2010-05-21Clip+: add charging curveRafaël Carré
Charge using 150mA current like the OF to charge faster Edit clipv2 charging curve with 150mA git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26227 a1c6a512-1295-4272-9138-f99709370657
2010-05-21Fix typos in commentMichael Chicoine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26224 a1c6a512-1295-4272-9138-f99709370657
2010-05-21usb-as3525v2: fix typo in a comment.Amaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26223 a1c6a512-1295-4272-9138-f99709370657