summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
...
* Remove STATICIRAM hackNils Wallménius2012-05-08
| | | | | | | | 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>
* Fix test fat failing on 64bit system (second bit of FS#12646)Marcin Bukat2012-05-08
| | | | | | | | | | | | We use unsigned long/long in number of places in fat.c. When this is used to cast 32bit fat field it fails on 64bit systems. This patch introduces explicit types (uint16_t, uint32_t) only in places which influence how fat structures are interpreted. Change-Id: I0be44d0b355f9de20b4deb221698d095f55d4bde Reviewed-on: http://gerrit.rockbox.org/232 Reviewed-by: Frank Gevaerts <frank@gevaerts.be> Reviewed-by: Torne Wuff <torne@wolfpuppy.org.uk>
* Remove extraneous parensRafaël Carré2012-05-06
|
* as3514 rtc: sansa clip zip uses 1970/1/1 base date instead of special ↵Bertrik Sikken2012-04-17
| | | | | | AS3525v2 date Change-Id: I32329c82da93c705a5cb4af8a1a8b4e85a9c9b37
* FS#10345 - Gigabeat: Switch volume buttons in Upside Down modeBertrik Sikken2012-04-15
| | | | Change-Id: If2d5ed52e5b52c48b50e412dda52632bb08b0c8d
* si4700 tuner: fix power consumption issue caused by ill-defined power state ↵Bertrik Sikken2012-04-11
| | | | | | at startup Change-Id: I657bc7e3d330f436859cfef2a89b0813bc008c49
* si470x tuner: remove obsolete handling of special value 2 for RADIO_SLEEPBertrik Sikken2012-04-09
| | | | Change-Id: I2291a9f402ff0da03fe58933a33d67c2ac4f0332
* Call tuner_power(true) from the correct place for lv24020lp.Frank Gevaerts2012-04-02
| | | | | | | This fixes radio not working on c200 and e200 (and possibly others), as reported in FS#12631. Change-Id: Idd66fa3b74916cc6f2de45ae7dd89b3bfd70f070
* Remove left-over debug statement (oops).Thomas Martitz2012-03-20
| | | | Change-Id: Ic672ad77bd9e30285f4bd95275a170f8ec75869b
* lcd_fillrect(): Unify 16bit implementations (move to 16bit-common.c)Thomas Martitz2012-03-20
| | | | Change-Id: I457ea9fcb67869fdac7f1201a059a362b087e908
* Refactor lcd_clear_viewport().Thomas Martitz2012-03-20
| | | | | | | * Unify 16bit implementaitons (move to 16bit-common.c). * Add viewport clipping (within #ifdef HAVE_VIEWPORT_CLIP) like other lcd_* functions have. Change-Id: I4e96b2efdb94d2f7bc5bcdb710554117989579ec
* skin_engine: New tag to draw a rectangle (optionally with a gradient)Jonathan Gordon2012-03-15
| | | | | | | | | | | %dr(x, y, width, height, [colour1[, colour2]]): x,y - viewport relative pixel coordinates to start the rectangle. width, height - obvious. can be '-' to fill the viewport if both colours are left out the viewports foreground colour will be used if one colour is specified it will fill the rectangle that colour. if both colours are specified it will gradient fill the rectangle. Change-Id: Iad451e99ded663bc7c5d182443659db7d909b388
* Convert IMX233 RTC driver (used in fuze+) to use mktime and gmtimeBertrik Sikken2012-03-13
| | | | Change-Id: Ie71d495509a81db5e02078398f5d722c00136072
* Introduce gmtime.c and use it in the AS3514 RTC driverBertrik Sikken2012-03-11
| | | | | | | | Change-Id: I00a09ae28a68f8153fb8fa854fea741ddfb0bf09 Reviewed-on: http://gerrit.rockbox.org/175 Tested-by: Bertrik Sikken <bertrik@sikken.nl> Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Reviewed-by: Rafaël Carré <rafael.carre@gmail.com>
* lcd drivers: split lcd_gradient_rect so it is actually usefulJonathan Gordon2012-03-01
| | | | | | | 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
* lcd/skin_engine: Add the ability to draw onto the backdrop layerJonathan Gordon2012-02-28
| | | | | | | | | | | | | | 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
* lcd drivers: Convert lcd_[remote_]framebuffer to a pointerJonathan Gordon2012-02-28
| | | | | | | | | | 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
* radio: include power.h in drivers for tuner_power()Amaury Pouly2012-02-25
| | | | Change-Id: I1ef8917b28b6d955e456c0b3737d41d356f34ec3
* Move radio power handling from apps/ to drivers.Amaury Pouly2012-02-25
| | | | | | | | | Remove direct calls to tuner_power(...) in apps/ and let the driver manage tuner power with the RADIO_SLEEP setting. Change-Id: I37cd0472e60db5d666dae1b9fe4755dd65c03edd Reviewed-on: http://gerrit.rockbox.org/84 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* rds: add basic RDS clock-time supportBertrik Sikken2012-02-18
| | | | Change-Id: I931182ccd20cf8899f3ce9b6b8d7c7c5f4ea006f
* rds: make programme identification (pi) decoding safer, show pi in the debug ↵Bertrik Sikken2012-02-16
| | | | | | screen Change-Id: I8b547400f4a28ee387157848b9640a3361df937f
* imx233/fuze+: fix a typo, handle volume differently because of the line1/dac ↵Amaury Pouly2012-02-03
| | | | | | | | | | mode difference. The headphone volume register value reads differently in Line1 and DAC mode. Since the volume is not set again when switching between playback and radio, we need to remember the hp volume and reapply setting when changing the mode. Change-Id: I8fbd344f78653c19d81a39dd3f680ec6885cb1ec
* fuze+: use the si4700 internal oscillator and set a pin on power down (seems ↵Amaury Pouly2012-02-01
| | | | | | important) Change-Id: If737438ddb726e51e0a725e27bc93950eb3657bd
* WM8750: Extend recording gain range.Marcin Bukat2012-01-25
| | | | | | | Use two stage amplification (PGA gain and digital stage gain) combined to extend recgain range to -17.25 +60.0dB. Change-Id: I4df8af801730b7efb2d35096de077ba31d331222
* Fix incomplete comment.Thomas Martitz2012-01-22
| | | | Change-Id: I1874b4e64b3ae19689a0230f10ea623a4d0d1dea
* adc-as3514.c : move to driversRafaël Carré2012-01-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31629 a1c6a512-1295-4272-9138-f99709370657
* ascodec-target.h: removeRafaël Carré2012-01-08
| | | | | | | | | | | move prototypes to ascodec.h move code to ascodec*.c YPR0: use adc-as3514.c instead of duplicating it TODO: merge as3514.h and ascodec.h ? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31626 a1c6a512-1295-4272-9138-f99709370657
* cowond2's power-target.h -> rename in pmu-target.hRafaël Carré2012-01-07
| | | | | | other targets (ipod nano2g / classic) use that name for pmu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31618 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Fix alpha bitmap drawing from messing up the emac status register.Michael Sevakis2012-01-05
| | | | | | | | | It failed to restore macsr to the expected default (FRAC/SAT) which caused DSP functions like tone control filter calculation to fail (resulting in noise). The FFT plugin was also affected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31589 a1c6a512-1295-4272-9138-f99709370657
* android: move pcm_shutdown() to audiohw_close() now that it's properly ↵Thomas Martitz2012-01-04
| | | | | | called from powermgmt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31551 a1c6a512-1295-4272-9138-f99709370657
* Rework powermgmt to enable code re-use on appliation and sims.Thomas Martitz2012-01-03
| | | | | | | | | | | | | | | | | | | | | * Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application) to break powermgmt.c's assumption about the ability to read battery voltage. There's now additionally percentage (android) and remaining time measure (maemo). No measure at all also works (sdl app). If voltage can't be measured, then battery_level() is king and it'll be used for power_history and runtime estimation. * Implement target's API in the simulator, i.e. _battery_voltage(), so it doesn't need to implement it's own powermgmt.c and other stubs. Now the sim behaves much more like a native target, although it still changes the simulated battery voltage quickly, * Other changes include include renaming battery_adc_voltage() to _battery_voltage(), for consistency with the new target functions and making some of the apps code aware that voltage and runtime estimation is not always available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
* usb-target.h: removeRafaël Carré2011-12-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31498 a1c6a512-1295-4272-9138-f99709370657
* creative zvm isp1583 defines: move to isp1583.hRafaël Carré2011-12-31
| | | | | | zvm is the only user of this file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31495 a1c6a512-1295-4272-9138-f99709370657
* imx233/fuze+: implement rtc (time only, alarm still to implement)Amaury Pouly2011-12-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31473 a1c6a512-1295-4272-9138-f99709370657
* RDS: Use a define that doesn't imply any particular hardware dependency.Michael Sevakis2011-12-29
| | | | | | | | Theoretically, anything with the capability could implement the decoding action in an ISR on any radio chip supporting RDS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31464 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Update RDS processing to use asynchronous I2C rather than thread.Michael Sevakis2011-12-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31462 a1c6a512-1295-4272-9138-f99709370657
* ypr0: Remove last #ifdef in as3514.Thomas Martitz2011-12-25
| | | | | | | It's now using completely the same driver as Sansa daps. This also increases the volume range. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31428 a1c6a512-1295-4272-9138-f99709370657
* ypr0: Cleanup and simplify ascodec functions. Fix audiohw_{pre,post}init() ↵Thomas Martitz2011-12-24
| | | | | | not being called. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31423 a1c6a512-1295-4272-9138-f99709370657
* Initial commit of the Samsung YP-R0 port.Thomas Martitz2011-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This port is a hybrid native/RaaA port. It runs on a embedded linux system, but is the only application. It therefore can implement lots of stuff that native targets also implement, while leveraging the underlying linux kernel. The port is quite advanced. User interface, audio playback, plugins work mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page). Included in utils/ypr0tools are scripts and programs required to generate a patched firmware. The patched firmware has the rootfs modified to load Rockbox. It includes a early/safe USB mode. This port needs a new toolchain, one that includes glibc headers and libraries. rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may also work. Most of the initial effort is done by Lorenzo Miori and others (on ABI), including reverse engineering and patching of the original firmware, initial drivers, and more. Big thanks to you. Flyspray: FS#12348 Author: Lorenzo Miori, myself Merry christmas to ypr0 owners! :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
* Add missing includes found using -Wmissing-declarations.Boris Gjenero2011-12-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31396 a1c6a512-1295-4272-9138-f99709370657
* Make more local functions static.Boris Gjenero2011-12-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31395 a1c6a512-1295-4272-9138-f99709370657
* FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip)Bertrik Sikken2011-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31346 a1c6a512-1295-4272-9138-f99709370657
* Convert remaining memframe LCDs that can be convert to common code.Michael Sevakis2011-12-16
| | | | | | | | | | | Massage the way it interfaces a bit to make things more flexible. The chroma_buf scheme on Sansa Connect and Creative ZVx calling the lcd_write_yuv420_lines implementation in lcd-as-memframe.S with five params with a chroma buffer that the function can't use wouldn't work anyway so just have them use the stock implementation (really, how was that working?). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31335 a1c6a512-1295-4272-9138-f99709370657
* OOPS, style got lost in scrolling lines with r31247, so put it backJonathan Gordon2011-12-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31314 a1c6a512-1295-4272-9138-f99709370657
* Fix r31311 red and yellow.Michael Sevakis2011-12-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31312 a1c6a512-1295-4272-9138-f99709370657
* Collect some of the memory frame LCD C code.Michael Sevakis2011-12-15
| | | | | | | | | | | For this commit: Sansa e200v1, Gigabeat F, Gigabeat S and Mini2440 are changed over. Quite a number of other targets probably can be as well. General LCD code is moved out of the target drivers into drivers/lcd-memframe.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31311 a1c6a512-1295-4272-9138-f99709370657
* Allow scrolling lines to have their content changed without restarting the ↵Jonathan Gordon2011-12-14
| | | | | | scroll line. This means skin lines with dynamic tags can be updated in realtime instead of delayed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31247 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#12237 (caused by r30302) where centered skin text isnt eqactly centeredJonathan Gordon2011-12-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31246 a1c6a512-1295-4272-9138-f99709370657
* RDA5802 tuner: use channel spacing of 100 kHz when possible (instead of ↵Bertrik Sikken2011-12-11
| | | | | | always 50 kHz) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31213 a1c6a512-1295-4272-9138-f99709370657
* lcd_blit_yuv(): don't use weak attribute when building for windowsRafaël Carré2011-12-09
| | | | | | | | | current gcc/binutils don't support weak attribute correctly see http://sourceware.org/bugzilla/show_bug.cgi?id=9687 fix FS#12427 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31193 a1c6a512-1295-4272-9138-f99709370657