summaryrefslogtreecommitdiff
path: root/firmware/export
AgeCommit message (Collapse)Author
2012-06-15hosted: disable USING_STORAGE_CALLBACK againThomas Martitz
6b8330d was not the correct fix. In fact, it prevents settings from being written as there's no DISK_EVENT_SPINUP event, so they were only saved on proper shutdown. Change-Id: Iad26366f2821ed6adf445c391d461563c5782a71
2012-06-11The threading model should be set from configure, not config.h.Frank Gevaerts
Change-Id: If87bbd4a02825df20e5fe29c4ada85bf5ba25e99
2012-06-11Add the Android/MIPS targetFrank Gevaerts
Change-Id: Iec1d2f08c8a43e486ab1696566a718b18598ff95
2012-05-28ypr0: This patch adds radio support to Samsung YP-R0Lorenzo Miori
Basically it uses the default SI4700 radio chip driver, the only thing that's different is the I2C access, written specifically to interact with my kernel module. Next things to add are: - RDS support! Change-Id: I0ed125641e00f93124d7a34f90dd508e7f1db5a4 Signed-off-by: Lorenzo Miori <memorys60@gmail.com>
2012-05-26load_code: Get rid of win32 specific code in favor SDL_LoadFunction & ↵Thomas Martitz
friends APIs. Refactor native/hosted implementation seperation while at it (no wrappers starting with _ anymore). Change-Id: If68ae89700443bb3be483c1cace3d6739409560a
2012-05-26Fix broken logic for enabling USING_STORAGE_CALLBACK.Frank Gevaerts
The logic got broken by 6b8330d2. Since the ifp700 port is basically unmaintained and unfinished and doesn't build anyway, we can remove the special-casing for it. This simplifies the logic to "hosted or native, except for bootloaders", which simplifies further to "not bootloaders". Fixes FS#12685 Change-Id: Iaaad534067da22b74bf647aa58dcbb678bbc5f70
2012-05-21Delete obsolete define from the config files for the new creative ports.Nils Wallménius
Change-Id: I00164be4960f987399fc5ea713f19ab06490883c
2012-05-20imx233: make sure dma descriptors are cache friendlyAmaury Pouly
Because DMA descriptors needs to be committed and discarded from the cache, if they are not cache aligned and/or if their size is not a multiple of cache ligne, nasty side effects could occur with adjacents data. The same applies to DMA buffers which are still potentially broken. Add a macro to ensure that these constraints will not break by error in the future. Change-Id: I1dd69a5a9c29796c156d953eaa57c0d281e79846
2012-05-20imx233: fix cache line size (32 instead of 16)Amaury Pouly
Change-Id: I4b0826a93ee8aef6a5fabf5c75e833bc36999479
2012-05-19zenxfi3&stfm1000: implement fmradio i2c and debug screenAmaury Pouly
Change-Id: I83dbdee13185d9adcf590dc213da5a8c97adb2ba
2012-05-19Initial commit for the Creative ZEN X-Fi2 and X-Fi3 portsAmaury Pouly
These are really similar devices so one commit for both is ok. Change-Id: I8bd1d3fef1eb6d00aaadfb7af56c771f62d0c9c3
2012-05-19Add stub STFM1000 tuner driverAmaury Pouly
Change-Id: I7f82f7b8971de75c92f84d12aaddccc50f3e47b1
2012-05-19Add the MPR121 (touchbutton chip) driverAmaury Pouly
Change-Id: I9db97a698ef1c7f0b4f47e406faa1f6c0ec524db
2012-05-19imx233: move away timer defines from imx233.hAmaury Pouly
Change-Id: I9f721ae12a3ddf72c4e90ad0754a5c2b819847bb
2012-05-13Enable USING_STORAGE_CALLBACK on hosted targets. Fixes config.cfg not ↵Thomas Martitz
written properly. Change-Id: I3c87b41baae284b818be5c272d984d937ae0e350
2012-05-12fuze+: add RDS supportAmaury Pouly
I successfully identified the STC/RDS pin as B2P27. Strangely the OF uses polling instead of interrupts but since they routed it, let's use it! On the fuze+ the fmradio i2c uses bit toggling so we can't read the RDS data in the interrupt context. Instead we defer the work to a thread. Change-Id: Iedfa425320e6c91b4351b72e97c732696bdb2b73 Reviewed-on: http://gerrit.rockbox.org/236 Reviewed-by: Bertrik Sikken <bertrik@sikken.nl> Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2012-05-09Rename HAVE_PITCHSCREEN to HAVE_PITCHCONTROLNils Wallménius
Also move the definition to config.h Change-Id: I36bb5020c5e06b2344292bc05e8c13ccc7a6a1ff Reviewed-on: http://gerrit.rockbox.org/234 Reviewed-by: Nils Wallménius <nils@rockbox.org>
2012-05-08Remove STATICIRAM hackNils Wallménius
It was only needed by the old arm toolchain that we no longer use or support. Change-Id: Id0e6c67477f8834a637079b03cde5fbf9da68b1c Reviewed-on: http://gerrit.rockbox.org/233 Reviewed-by: Nils Wallménius <nils@rockbox.org>
2012-05-04Remove pointless IRAM allocation from voice DSP.Michael Sevakis
It's always used in MONO mode and doesn't need the IRAM sample/ resample buffers and 1280 bytes can be freed. M5 can now have its PCM mixer downmix buffer in IRAM. Change-Id: I0af08be5b212b7dfe382bba588a6585eb328a038
2012-05-03Add rbcodecplatform.h and rbcodecconfig.h.Sean Bartell
librbcodec users must provide these two files when the library is built. rbcodecconfig.h provides configuration #defines and basic types, and will be included by public librbcodec headers, so it must not conflict with the user's code. rbcodecplatform.h provides various OS functions, and will only be included by source files and private headers. This system is intended to provide maximum flexibility for use on embedded systems, where no operating system headers are included. Unix systems can just copy rbcodecconfig-example.h and rbcodecplatform-unix.h with minimal changes. Change-Id: I350a2274d173da391fd1ca00c4202e9760d91def Reviewed-on: http://gerrit.rockbox.org/143 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
2012-05-02Silly includes going haywire. Fix the errors/warnings (hopefully).Michael Sevakis
Change-Id: I7ec2b7e8fe56ad6d65ab757e8667b4951d00ee29
2012-05-02Clean up peak calculating code.Michael Sevakis
Mixer needn't keep peak data around that will never be used. Just pass pcm_peaks structure to it instead of allocating for every channel. Plugin API becomes incompatible. vu_meter digital mode was still using global peak calculation; switch it to playback channel like the rest. Remove some accumulated soil peaks inside pcm.c and make it more generic. Change-Id: Ib4d268d80b6a9d09915eea1c91eab483c1a2c009
2012-05-02Use buflib for the allocation of voice PCM resources.Michael Sevakis
Buffers are not allocated and thread is not created until the first call where voice is required. Adds a different callback (sync_callback) to buflib so that other sorts of synchonization are possible, such as briefly locking-out the PCM callback for a buffer move. It's sort of a messy addition but it is needed so voice decoding won't have to be stopped when its buffer is moved. Change-Id: I4d4d8c35eed5dd15fb7ee7df9323af3d036e92b3
2012-04-29Fundamentally rewrite much of the audio DSP.Michael Sevakis
Creates a standard buffer passing, local data passing and messaging system for processing stages. Stages can be moved to their own source files to reduce clutter and ease assimilation of new ones. dsp.c becomes dsp_core.c which supports an engine and framework for effects. Formats and change notifications are passed along with the buffer so that they arrive at the correct time at each stage in the chain regardless of the internal delays of a particular one. Removes restrictions on the number of samples that can be processed at a time and it pays attention to destination buffer size restrictions without having to limit input count, which also allows pcmbuf to remain fuller and safely set its own buffer limits as it sees fit. There is no longer a need to query input/output counts given a certain number of input samples; just give it the sizes of the source and destination buffers. Works in harmony with stages that are not deterministic in terms of sample input/output ratio (like both resamplers but most notably the timestretch). As a result it fixes quirks with timestretch hanging up with certain settings and it now operates properly throughout its full settings range. Change-Id: Ib206ec78f6f6c79259c5af9009fe021d68be9734 Reviewed-on: http://gerrit.rockbox.org/200 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
2012-04-28usb-s3c6400: merge the 2 driversRafaël Carré
Player-specific code remaining: usb_drv_(init,exit) The iPods lack a MMU, so: - physical, virtual, and uncached addresses are identical - since we can't access uncached memory we discard caches when receiving data Still not quite reliable on nano2g Change-Id: Iebb79df64818b9ae3b68eccb8be8975ebd6c21ea
2012-04-26Coldfire (m68k): Add macros for tpf.w/l instructions.Michael Sevakis
Better than inserting ".word 0x51fc/b". Assembler doesn't support them but does the plain "tpf" without extension words as well as "trapf". Change-Id: I929c0ec84c6e76e0573ff6308634542fd8aee738
2012-04-26Add a more correct absolute difference function to dsp-util.Michael Sevakis
Differences between signed samples cover the entire unsigned 32-bit range. "abs" will think any difference exceeding INT32_MAX is negative which is not corrent. Test which argument is greater and subtract the lesser from it, outputting unsigned difference. Change-Id: I73a8e5e418d49ff73d1a7c98eeb4731946dcfe84
2012-04-22event classes are single bitsJonathan Gordon
Change-Id: I4c65b25a94b60d4f0ef8db750807a91242d63ea3
2012-04-19hm801: Add support for plugins.Andrew Ryabinin
Change-Id: I81654db87d38324d8680a56bcdb7e9922ee5b619
2012-04-05touchscreen: Fix kinetic scrolling when the statusbar is off.Thomas Martitz
The scrolling code cannot differentiate between the BUTTON_TOUCHSCREEN post from normal touches and the one posted in the timeout callback. To fix introduce a global special button (BUTTON_REDRAW) that results in the desired redraw. This existed already as a local kludge for android and is now generalized. Change-Id: I6bfa6c66431c48f5042fcd8fce2ea72cd3457f58
2012-03-31Classic/6G: CPU frequency/voltage scalingCástor Muñoz
This patch implements HAVE_ADJUSTABLE_CPU_FREQ, it modifies the following parameters when CPU is unboosted: - s5l8702 voltage is decreased: 1.200V -> 1.050V - CPU frequency is divided by 4: 216MHz -> 54MHz - AHB frequency is divided by 2: 108MHz -> 54MHz Change-Id: I2285b83efb7e1567864ac288f2d4ba55f058f7c5
2012-03-28build system: completely autodetect target cpu architecture.Thomas Martitz
The existing ARCH Makefile variable is exported to the C code as well. Additionally the version (arm-only for now) is detected as well. This allows to for complete autodetection, i.e. that optimized ASM is picked up if determined by preprocessor (CPU_ARM, etc). Building a sim/raaa on a arm host will now automatically generate a arm optmized build like we have for native targets. Change-Id: I0b35393f8fb3ebd20beaa9e7371fa57bf3782107
2012-03-04Tweak paramters of mp3_play_data and callback.Michael Sevakis
Use generic void * and size_t and make mp3_play_data and its callback agree on types. Use mp3_play_callback_t instead of prototyping right in the function call (so it's not so messy to look at). Change doesn't appear to require plugin API version increment. Change-Id: Idcab2740ee316a2beb6e0a87b8f4934d9d6b3dd8
2012-03-04AMSv2: add proper definitions for charge currentBertrik Sikken
Change-Id: I6a14570e94df1be62ae46816d2ff4e3f2b7bc21a
2012-03-04rename rkw.h header fileMarcin Bukat
Change-Id: I2cb6ea7da9c20ed0ef87f4b8ea90d2e4a4a3bca2
2012-03-04rk27xx: switch to RKW format for binaryMarcin Bukat
Change-Id: I859473abbaf05c8268d832b25d15f27f1ea44648
2012-03-04Add RKW firmware file format loaderMarcin Bukat
Change-Id: I5283fdcdb8d263fd9375a6d29396f82650aeb686
2012-03-03Don't define CPU_* for __PCTOOL__Frank Gevaerts
Change-Id: Id49577a002627eb830f833f101b83471d11ec271
2012-03-03Integrate the warble tool in the regular build system.Frank Gevaerts
Only sdl app builds work properly for now. Change-Id: I7807d42f69b8577b401e48cdc63de71e54f49217
2012-03-03Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asmFrank Gevaerts
Change-Id: I725d80cf5cc49d9b7460b320489cdeb14be942c0
2012-03-03Undefine HAVE_ADJUSTABLE_CPU_FREQ for __PCTOOL__Frank Gevaerts
Change-Id: I1772df581975ed02134d6d7cb230c0991a92a4e1
2012-03-03Fix __PCTOOL__ dependencies on SIMULATORFrank Gevaerts
* filesize() is not POSIX, so it doesn't need stubbing or redirecting * make the various directory functions use the sim_ versions for PCTOOL * PCTOOL needs generic byteswap functions * fix the database makefile to not use -DSIMULATOR anymore Change-Id: Ic6abc4f662830b85626c751a472fa4a03e844871
2012-03-03Revise the PCM callback system after adding multichannel audio.Michael Sevakis
Additional status callback is added to pcm_play/rec_data instead of using a special function to set it. Status includes DMA error reporting to the status callback. Playback and recording callback become more alike except playback uses "const void **addr" (because the data should not be altered) and recording uses "void **addr". "const" is put in place throughout where appropriate. Most changes are fairly trivial. One that should be checked in particular because it isn't so much is telechips, if anyone cares to bother. PP5002 is not so trivial either but that tested as working. Change-Id: I4928d69b3b3be7fb93e259f81635232df9bd1df2 Reviewed-on: http://gerrit.rockbox.org/166 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
2012-03-01lcd drivers: split lcd_gradient_rect so it is actually usefulJonathan Gordon
lcd_gradient_rect() was only usable to draw list lines, so split it up and make a generic gradient draw function available to apps/ Change-Id: I665911a90fef239b5e06592ea2763cbeeb74c83f
2012-02-28lcd/skin_engine: Add the ability to draw onto the backdrop layerJonathan Gordon
The framebuffer the lcd driver uses can now be changed on the fly which means that regular lcd_* drawing functions can draw onto the "backdrop" buffer. The skin engine can use this to create layered effects. Add the tag %VB to a viewport to draw that viewport onto the backdrop layer. If you want to draw an image onto the backdrop framebuffer use %x(backdrop filename) instead of %X() inside a viewport with %VB. Change-Id: I741498e2af6d4f2d78932cabe8942317893e7cfc
2012-02-28lcd drivers: Convert lcd_[remote_]framebuffer to a pointerJonathan Gordon
Change all lcd drivers to using a pointer to the static framebuffer instead of directly accessing the static array. This will let us later do fun things like dynamic framebuffer sizes (RaaA) or ability to use different buffers for different layers (dynamic skin backdrops!) Change-Id: I0a4d58a9d7b55e6c932131b929e5d4c9f9414b06
2012-02-25IPod Classic/6G: LCD sleep (FS#12523) by Cástor MuñozCástor Muñoz
Change-Id: I7bea9f61fa315339c1f41efb27d13a4aa30cb4c3 Signed-off-by: Nils Wallménius <nils@rockbox.org>
2012-02-24HiFiMAN: Implement lcd powersave mode.Andrew Ryabinin
Change-Id: I0a22b436549047ac0c2f9e2c203cbe8b31cfc1cd
2012-02-22Arm stack unwinderMarcin Bukat
Simplified stack unwinder for ARM. This is port of http://www.mcternan.me.uk/ArmStackUnwinding/ backtrace() is called from UIE() on native targets and from panicf() on both native and ARM RaaA. Change-Id: I8e4b3c02490dd60b30aa372fe842d193b8929ce0
2012-02-22Force YPR0 to 240x320Frank Gevaerts
The YPR0 has a fixed screen size. Letting the generic RaaA screen size selection code work on causes checkwps/buildall.sh to build broken checkwps binaries. There's no good reason to allow overriding the screen size here Change-Id: Ic666d28d10273000a8c1867580c8d1a13dd98dc9