summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* as3525: no need to ack TIMER interrupt multiple timesRafaël Carré2010-05-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26330 a1c6a512-1295-4272-9138-f99709370657
* Clip*: give lcd_hw_init() INIT_ATTR attributeRafaël Carré2010-05-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26329 a1c6a512-1295-4272-9138-f99709370657
* mark some functions as init functions (discarded after init() has run)Rafaël Carré2010-05-27
| | | | | | | | | 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
* as3525: don't export empty usb_init_device(), declare it as empty inlineRafaël Carré2010-05-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26326 a1c6a512-1295-4272-9138-f99709370657
* clipv2: make buttonlight functions static inline one-linersRafaël Carré2010-05-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26323 a1c6a512-1295-4272-9138-f99709370657
* Generate C file / header for svn version stringRafaël Carré2010-05-27
| | | | | | | | | | | | | | | | | | | | | | | | 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
* as3525: fix r26308Rafaël Carré2010-05-26
| | | | | | 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
* UISimulator: cleaner startup using semaphore only to tell when event_thread ↵Michael Sevakis2010-05-26
| | | | | | is done initializing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26317 a1c6a512-1295-4272-9138-f99709370657
* as3525: as revealed by r26311, it seems DMAC interrupt can't be maskedRafaël Carré2010-05-26
| | | | | | | | | | | | 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
* Since the sdl to target tree move, the main thread cannot be removed anymore,Thomas Martitz2010-05-26
| | | | | | | | | 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
* as3525: write irq/fiq handlers in CRafaël Carré2010-05-26
| | | | | | | | 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
* typo: 'nomasked' -> 'unmasked'Rafaël Carré2010-05-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26312 a1c6a512-1295-4272-9138-f99709370657
* as3525: implement pcm_play_dma_get_peak_buffer correctlyRafaël Carré2010-05-26
| | | | | | give the real amount of bytes left to transfer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26311 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: no need to set PMU_GATE bit (bit 3) in PMU_enable register when ↵Rafaël Carré2010-05-26
| | | | | | | | 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
* as3525: move audio loopback handling to audio_set_output_sourceRafaël Carré2010-05-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26308 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Turn off hardware effects (tone and 3d) when doing digital ↵Michael Sevakis2010-05-26
| | | | | | 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
* as3525v1: relax a bit requirements in the SD driverRafaël Carré2010-05-25
| | | | | | | | | | | | | - 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
* as3525v2: do not deselect all cards after a SD transferRafaël Carré2010-05-25
| | | | | | 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
* as3525: find_first_set_bit() isn't built in bootloadersRafaël Carré2010-05-25
| | | | | | | 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
* sdl: call SDL_Quit() before exiting when receiving the SDL_QUIT event. It is ↵Amaury Pouly2010-05-25
| | | | | | 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
* as3525: Fix an oops in converting the recording API to a newer form.Michael Sevakis2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26270 a1c6a512-1295-4272-9138-f99709370657
* Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. ↵Michael Sevakis2010-05-24
| | | | | | 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
* Vibe 500: fix the scrolling through the lists by implementing BUTTON_REPEAT ↵Szymon Dziok2010-05-24
| | | | | | for the scrollstrip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26268 a1c6a512-1295-4272-9138-f99709370657
* fix YUV Dither for the other targets too, like in r26064.Szymon Dziok2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26266 a1c6a512-1295-4272-9138-f99709370657
* Clipv1 battery capacity is 330mAhRafaël Carré2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26261 a1c6a512-1295-4272-9138-f99709370657
* as3525: don't destroy status when calculating IRQ number in UIRQ()Rafaël Carré2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26260 a1c6a512-1295-4272-9138-f99709370657
* as3525: be sure all interrupts are disabled when recordingRafaël Carré2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26257 a1c6a512-1295-4272-9138-f99709370657
* Really cleanup remaining r26253 yellow (hopefully).Michael Sevakis2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26256 a1c6a512-1295-4272-9138-f99709370657
* Cleanup r26253 red and yellow.Michael Sevakis2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26254 a1c6a512-1295-4272-9138-f99709370657
* Make PCM->driver interface about as simple as it will get. Registered ↵Michael Sevakis2010-05-24
| | | | | | 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
* as3525*: sd_wait_for_state() is only used for waiting to SD_TRAN stateRafaël Carré2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26251 a1c6a512-1295-4272-9138-f99709370657
* as3525: show unmasked interrupts on unhandled IRQRafaël Carré2010-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26250 a1c6a512-1295-4272-9138-f99709370657
* as3543 rtc wakeup: fix power offRafaël Carré2010-05-24
| | | | | | | | 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
* rtc_enable_alarm() needs no return valueRafaël Carré2010-05-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26245 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: RTC alarmRafaël Carré2010-05-22
| | | | | | | 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
* fuzev1: don't enable RTC in the bootloaderRafaël Carré2010-05-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26242 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: enable AFE (AUDIO Front End) interruptsRafaël Carré2010-05-21
| | | | | | We needed to set the XIRQ output pin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26238 a1c6a512-1295-4272-9138-f99709370657
* ata: do some threading-related corrections (some sync related where it ↵Michael Sevakis2010-05-21
| | | | | | 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
* avoid overflow in puts_scroll().Teruaki Kawashima2010-05-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26231 a1c6a512-1295-4272-9138-f99709370657
* kernel: the header says queue_peek should always be compiled in but the ↵Amaury Pouly2010-05-21
| | | | | | 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
* dircache:Amaury Pouly2010-05-21
| | | | | | | - 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
* Clip+: add charging curveRafaël Carré2010-05-21
| | | | | | | 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
* Fix typos in commentMichael Chicoine2010-05-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26224 a1c6a512-1295-4272-9138-f99709370657
* usb-as3525v2: fix typo in a comment.Amaury Pouly2010-05-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26223 a1c6a512-1295-4272-9138-f99709370657
* FS#10913: fix file browser not updated on microsd insertion/removal. This is ↵Amaury Pouly2010-05-21
| | | | | | a synchro bug in dircache: the system send a SYS_FS_CHANGED message which is first handled by the main thread which rescan the directory but as dircache main treats the message after, the file browser get the old version... Workaround is to check message queue before opening a directory. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26222 a1c6a512-1295-4272-9138-f99709370657
* Clipv1: charging curveRafaël Carré2010-05-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26220 a1c6a512-1295-4272-9138-f99709370657
* Clipv1: cosmeticsRafaël Carré2010-05-20
| | | | | | Move code not defined for bootloader under a single preprocessor check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26219 a1c6a512-1295-4272-9138-f99709370657
* Clipv1: move buttonlight functions to headerRafaël Carré2010-05-20
| | | | | | | GPIO direction needs only to be set at init both functions are now one liners so make them static inline git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26218 a1c6a512-1295-4272-9138-f99709370657
* Increaase default ipod 3g contrast, to a value between the last two.Torne Wuff2010-05-20
| | | | | | | | | It seems there is some significant variance between different greyscale ipods of the same model, so it's unlikely that *any* value will be great for everyone. I'm hoping that this is just high enough that the lightest screens aren't totally blank, but not dark enough that the darkest screens are entirely unreadably black ;) This rather unsatisfactory compromise is to help us get a new bootloader release out (since bootloaders can't have their contrast adjusted) - a real fix would be to detect the LCD type, which the OF appears to be able to do (maybe). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26208 a1c6a512-1295-4272-9138-f99709370657
* Clipv2: charging curve + voltage limitsRafaël Carré2010-05-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26200 a1c6a512-1295-4272-9138-f99709370657