summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
* stfm1000: comment static unused functionAmaury Pouly2013-01-15
| | | | Change-Id: Ie918a07c72bf9086508731faf658d57a286d922a
* Fix copyright headersAmaury Pouly2012-12-29
| | | | Change-Id: Ie65920b1192e9b737fcc2554d280fbcedfa39800
* si4700: fix typoRyan Hitchman2012-12-09
| | | | | | Change-Id: I3ebeaf8188fc330921089a148cac1f3ea5740e23 Reviewed-on: http://gerrit.rockbox.org/370 Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
* 9 segment bitmap drawing:Jonathan Gordon2012-12-09
| | | | | | | | | | Use %x9(id) to draw an image in the whole current viewport using the 9 segment drawer (which draws the corners as normal and *tiles* the middle segments to the needed width/height). Future work is to make it scale instead of tile Change-Id: Ic3ed1cad93f96091694801eb442e0da5a2401203
* Fix uninitialized variable in decoding of RDS radio textBertrik Sikken2012-11-09
| | | | Change-Id: Ifc678166ac70cc8fc76897c76ccbc4bc3f88cc14
* rk27xx codec: simplify startupMarcin Bukat2012-07-11
| | | | Change-Id: I8b610363e67ec640664aa0d03488e430ec461244
* rk27xx codec: Fix volume settingMarcin Bukat2012-07-10
| | | | Change-Id: If57e0225fed4a9f87dff9661b21b2e06fa3d341e
* Fix redAmaury Pouly2012-05-31
| | | | Change-Id: Ifa8b360c97bb1036210b2563cfb87be2630eaab6
* rds: implement more robust PS/RT parsingAmaury Pouly2012-05-31
| | | | | | | | | | | | | | | Our current PS and RT parser is very strict: it requires all segments to be received in order. This is too strong of an assumption even when the reception in good, particularly for long RT messages. This parser handles segments in any order and completes a message only when all segments are present. To avoid keeping obsolete segments, each segment has an associated timeout and is trashed if not updated for a certain period. Change-Id: I79841bb5ab1f838c7702d8281044e226f6510199 Reviewed-on: http://gerrit.rockbox.org/237 Tested-by: Bertrik Sikken <bertrik@sikken.nl> Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
* ypr0: This patch adds radio support to Samsung YP-R0Lorenzo Miori2012-05-28
| | | | | | | | | | 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>
* zenxfi3: RTC is used in same was as in fuze+, using seconds-since-1970 plus ↵Bertrik Sikken2012-05-27
| | | | | | an offset Change-Id: Iab2e6e15c790c26d3bf2679e9f965a409d162783
* Add identify() call to reset proceduresJonas Wielicki2012-05-19
| | | | | | | | | | | | | | | | | | | This change is motivated by the ATA specs, section 9.2 Software reset protocol (quote): A host should issue an IDENTIFY DEVICE and/or IDENTIFY PACKET DEVICE command after the software reset protocol has completed to determine the current status of features implemented by the device(s). This indeed fixes a local issue with an SSD in an iriver h320. No other tests were carried out. Change-Id: I191444aec3e55f6890020f601c715d0022d09fb6 Reviewed-on: http://gerrit.rockbox.org/218 Reviewed-by: Bertrik Sikken <bertrik@sikken.nl> Reviewed-by: Linus Nielsen Feltzing <linus@haxx.se> Reviewed-by: Peter D'Hoye <peter.dhoye@gmail.com> Tested-by: Peter D'Hoye <peter.dhoye@gmail.com> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* zenxfi3&stfm1000: implement fmradio i2c and debug screenAmaury Pouly2012-05-19
| | | | Change-Id: I83dbdee13185d9adcf590dc213da5a8c97adb2ba
* Add stub STFM1000 tuner driverAmaury Pouly2012-05-19
| | | | Change-Id: I7f82f7b8971de75c92f84d12aaddccc50f3e47b1
* Add the MPR121 (touchbutton chip) driverAmaury Pouly2012-05-19
| | | | Change-Id: I9db97a698ef1c7f0b4f47e406faa1f6c0ec524db
* imx233: move rtc init from drivers/ to firmware/Amaury Pouly2012-05-19
| | | | Change-Id: Id816987a4bb1191d5c9cf8a85c51d75fbb2da7c8
* Fix a drawing bug where rectangles stop drawing too early.Michael Sevakis2012-05-19
| | | | | | | | As far as I can say only one file is affected. The loops needs to go one more time since the end pointer is on the last pixel, not beyond it. Change-Id: Ie629138f8399b927bef7bad3847ef42db37e2fed
* Player LCD: Map several punctuation characters in the U+20xx rangeJens Arnold2012-05-19
| | | | This is in preparation of Win-1252 support (gerrit #209).
* 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