summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
...
* [RMI Driver] Implement power saving supportJean-Louis Biasini2013-07-29
| | | | | | | | | | Implement standard values and functions to operate on power control register. This allow to modify both reporting rate and sleep mode in order to save power. Change-Id: I2bdffd4160e10eec488eb5e19de8a2a258ddbb04 Reviewed-on: http://gerrit.rockbox.org/529 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* imx233: revert volumes to 1dB resolutionAmaury Pouly2013-07-23
| | | | | | | | Using a better resolution causes havoc in the user interface because it doesn't properly handle steps and people start to believe I am responsible for all this mess. Change-Id: I02b68dce5802692efde3da226eeeb49e4995f97a
* imx233: fix recording volume (tenth-dB -> half-dB)Amaury Pouly2013-07-13
| | | | Change-Id: I6960d3f4bd506713ffb139750fbe581ef66af947
* imx233: correctly select recording sourceAmaury Pouly2013-07-13
| | | | Change-Id: I651856292922097efe21e01543ae2568dfa13980
* imx233: implement alarm wake upAmaury Pouly2013-07-02
| | | | | | | | | | This adds the application part of alarm wake up. On some targets like the Fuze+, it will also require a bootloader change to make sure that the device doesn't power down on alarm wake up (for example on the Fuze+ the bootloader requires the power button to be hold sufficiently long, thus preventing alarm wake up to work) Change-Id: I5d01957852355fddbd48110d3d75a5533f07879e
* imx233: allow audio routing driver to have pre/post init functionsAmaury Pouly2013-06-18
| | | | Change-Id: Ic1fe8c5bc6c8bf5d449ae44c12cb6cb8df409260
* imx233: add recording side and 3d to codec driverAmaury Pouly2013-06-18
| | | | Change-Id: I3587434749c401a28c6e77bd30395e7df15f2e8a
* df1704: Add filter roll-off selection.Andrew Ryabinin2013-05-24
| | | | Change-Id: I732ebd3446858b497105cf03fc81e934a749a57b
* Fix 6e211ab errors and warnings.Michael Sevakis2013-05-23
| | | | | | | If target has HW tone controls but no HW prescaler (non-implemented or non-existent), audiohw_set_prescaler() should, for now, do nothing. Change-Id: If1b1a36970dca82fda1c350fbaa4d6ce068a6d32
* Remove dsp_callback because DSP is now library code, not app code.Michael Sevakis2013-05-23
| | | | | | Yep, nope, not necessary anymore. Just call functions directly. Change-Id: I21dc35f8d674c2a9c8379b7cebd5613c1f05b5eb
* Fix FS#12860 - iPod 5g line out silentMichael Sevakis2013-05-09
| | | | | | | | | | | Conversion from centibels to register values was left out of audiohw_set_lineout_volume(). Credit goes to Dave Marsh for providing the fix. Just another little oversight from sound/audiohw rework. Change-Id: I7f8b1c5fb575ac95b5d595c2f4824fbb5ebbd3c8
* Introduce HiFi E.T MA9 port.Andrew Ryabinin2013-05-06
| | | | Change-Id: I79aadc958fd5222f26f91ed127f8c6fb2c465dc2
* Fix FS#12859 - Bass/Treble not doing anything in new buildsMichael Sevakis2013-05-04
| | | | | | | | | Just one more SNAFU after redoing sound.c. Software bass/treble controls in the DSP expect .1 dB gain increments but the gains were being set as 1 dB increments because that's what the AUDIOHW_SETTING specifies. Just x10 the gains given to audiohw_set_bass/treble. Change-Id: Id5296f93908ec0036a5605d3a60a2cb5eec91bb5
* Provide high resolution volume and prescaler to hosted targets.Michael Sevakis2013-04-27
| | | | | | | | | | | | | | | | | | | | | HAVE_SW_VOLUME_CONTROL is required and at this time only affects the SDL targets using pcm-sdl.c. Enables balance control in SDL targets, unless mono volume is in use. Compiles software volume control as unbuffered when PCM_SW_VOLUME_UNBUFFERED is defined. This avoids the overhead and extra latency introduced by the double buffer when it is not needed. Use this config when the target's PCM driver is buffered and sufficient latency exists to perform safely the volume scaling. Simulated targets that are double-buffered when made as native targets remain so in the sim in order to run the same code. Change-Id: Ifa77d2d3ae7376c65afecdfc785a084478cb5ffb Reviewed-on: http://gerrit.rockbox.org/457 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
* Add Serial Port 1 support for iPod Photo/Color/4G/Mini2Gandypotter2013-04-25
| | | | | | | | | | | | | | | | | | Based on FS#9920 by Ryan Press with changes to selection logic so that it works on my iPod Photo. Should also work on iPod Color/4G and Mini2G. Moved all target specific code from firmware/drivers/serial.c into new file firmware/target/arm/pp/uart-pp.c in the same manner as other target specific uart code. Update to fix build error on ipodmini2g by adding defines in config file. Removed unwanted whitespace Tested on iPod Photo. Change-Id: Ia5539563966198e06372d70b5adf2ef78882f863 Reviewed-on: http://gerrit.rockbox.org/455 Reviewed-by: andypotter <liveboxandy@gmail.com> Tested-by: andypotter <liveboxandy@gmail.com> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* Oops. Revert a pointless change.Michael Sevakis2013-04-22
| | | | Change-Id: I082411145a411ca7d41b359dea419ef8190d70ce
* Do some cleanup, adjustment and a couple fixes to recent sound changes.Michael Sevakis2013-04-22
| | | | | | | | | | | | | | | | | | | | | * SOUND_x enum can be generated by audiohw_settings.h along with settings entries and sound_val2phys. * VOLUME_MIN and VOLUME_MAX are no longer necessary within sound.c. If you need them, they are for target-defined purposes. * Fix up SDL volume implementation in sdl.c. Move sim volume calculation code to pcm-sdl.c. * Min trigger tresholds were based upon VOLUME_MIN for some reason. These setting have nothing to do with playback volume. Since it is no longer present, set these at -89dB which is the minimum peak meter sensitivity setting. * Fix an oversight in wm8758.c. I forgot to add the dB->register conversion to audiohw_set_volume. Change-Id: Ie1df33f1793eee75e6793f16bc7bddd16edb7f75
* Fix final error from 0c7b787 in Player sim.Michael Sevakis2013-04-15
| | | | Change-Id: Ifeebed8f594fc56acbbd2439fb8186566cc04de8
* Still at it for 0c7b787. Might be done now.Michael Sevakis2013-04-15
| | | | Change-Id: Idf45731dc6554954747f6036dc6dfcd4b63981a1
* Keep fixing 0c7b787 stuffMichael Sevakis2013-04-15
| | | | Change-Id: I0678d3307fbcad32156f9f4e0f8b90eed5a20d92
* Fix some more errors and warnings from 0c7b787.Michael Sevakis2013-04-15
| | | | Change-Id: Ib67d0ab344e36964cadbcc982dc2afe35733770b
* Hopefully knock out most of the red and yellow from 0c7b787.Michael Sevakis2013-04-15
| | | | Change-Id: Ib8dd0d011b11ee3eded3025308f19ddb5d151b59
* Straighten out the mad twisted state of sound.c and related areas.Michael Sevakis2013-04-15
| | | | | | | | | | | | | | | | | | This is going right in since it's long overdue. If anything is goofed, drop me a line or just tweak it yourself if you know what's wrong. :-) Make HW/SW codec interface more uniform when emulating HW functionality on SWCODEC for functions such as "audiohw_set_pitch". The firmware-to- DSP plumbing is in firmware/drivers/audiohw-swcodec.c. "sound_XXX" APIs are all in sound.c with none in DSP code any longer. Reduce number of settings definitions needed by each codec by providing defaults for common ones like balance, channels and SW tone controls. Remove need for separate SIM code and tables and add virtual codec header for hosted targets. Change-Id: I3f23702bca054fc9bda40f49824ce681bb7f777b
* rk27xx: do not attenuate signal twice in analog bypass modeMarcin Bukat2013-04-12
| | | | Change-Id: I108091adaa05e53ccb8bbe3d60ca35e2191a39fd
* hm60x/hm801: Fix balance by enabling sw volume control.Andrew Ryabinin2013-04-12
| | | | Change-Id: I8760b58d5b801409f35370d812d72f8d578d2889
* Fix f5a5b94 errors. Employ SW volume for select targets on SIM.Michael Sevakis2013-04-11
| | | | | | | | | | | Onda VX747 sim was missing a limits #define; #include limits.h in pcm_sw_volume.h. Simply use the software volume control for the SIM volume control rather than the SDL volume control when the target would have it natively. Change-Id: I8e924a2ff1b410f602452d2ea9b691efb82c931e
* rk27xx: implement radio supportAmaury Pouly2013-04-11
| | | | | | | Change-Id: I59d3905e9b2a3df8aa235e424c7a6e0eff6d73e9 Reviewed-on: http://gerrit.rockbox.org/427 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested-by: Marcin Bukat <marcin.bukat@gmail.com>
* Fix LV24020 tuner chip volume level definition (found by cppcheck)Bertrik Sikken2013-03-24
| | | | Change-Id: I328cfbd7c9fc6295db2e62f6174f8f4405e281a8
* bitmap drawing: Support alpha blend if image over the framebuffer contents.Thomas Martitz2013-02-12
| | | | | | | | If DRMODE_FG now the alpha channel in bitmaps can be used to draw the bitmap over the framebuffer, so that e.g. a line selector isn't cleared for for transparent bitmap pixels. Change-Id: I09d59a09d2f3c90450a0fe2b83c6c59d757b686b
* bitmap drawing: use temp vars to help gcc opmize loops.Thomas Martitz2013-02-12
| | | | | | | By saving current_vp fields into temp vars just before the loop gcc can put them into registers. This yields ~15% speedup for drawing anti-aliased fonts. Change-Id: I4c0c9f5ff7a7f084e2eb08c4ed874176b1f9832c
* bitmap drawing: Use extra bit in mask to avoid nested if() in switch-cases.Thomas Martitz2013-02-12
| | | | | | Speeds up alpha bitmap drawing by up to 10%. mono bitmap drawing is also a tiny bit faster. Change-Id: I5a9379740c1a0091de9c621aabbe57d767ce2905
* bitmap drawing: Negate alpha channel to match alpha information format of ↵Thomas Martitz2013-02-12
| | | | | | | | | | font files. The comment about the format was actually incorrect. The alpha information is now negated during conversion to native format, according to the corrected comment. Change-Id: Ifdb9ffdf9b55e39e64983eec2d9d60339e570bd9
* 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).