summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
...
* Should clear up rest of red. Add a required #define in the config for c200. ↵Michael Sevakis2010-06-26
| | | | | | Fix up some preprocessing directives. Hope it's all taken care of now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27141 a1c6a512-1295-4272-9138-f99709370657
* e200v1/c200v1: Implement limited samplerate switching. Rates 24kHz and below ↵Michael Sevakis2010-06-26
| | | | | | are being a bear as far as minor crackling at higher amplitude-- leave them out for the time being since no solution is currently evident. 48, 44, 32 (rec rates 24, 22, 16) seem perfectly fine. I'm betting c200 is ok to include because it uses the same setup as e200. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27139 a1c6a512-1295-4272-9138-f99709370657
* synaptics: add a small delay in syn_get_data() for PB Vibe. Touchpad doesn't ↵Szymon Dziok2010-06-24
| | | | | | work when build with EABI without it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27117 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#11364 by me. Increases the A3525v2 volume range by 7.5dB. Each ↵Michael Giacomelli2010-06-24
| | | | | | volume setting gets 7.5dB louder (if you listened before at 0dB, you would have to set it to about -7.5dB to get the same volume). As a result, the new 0dB actually is pretty close to max line level for a full scale voltage, so positive dB may clip, whereas before they did not because the scale was off. Thanks to dfkt and Tim Graf for help figuring this out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27101 a1c6a512-1295-4272-9138-f99709370657
* Sanyo lv24020lp FM: Improve frequency measurement on PP thus improving ↵Michael Sevakis2010-06-22
| | | | | | initial frequency setting. Properly account for IF when tuning FM oscillator (this worked poorly before but appears to work as expected now -- aka. works for me). Not sure what this will do to iAudio7 or Cowon D2 but if they can implement a good duration measurement, they should do so or use the internal timer if possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27042 a1c6a512-1295-4272-9138-f99709370657
* lv24020lp tuner: On PP targets (c200/e200), use the atomic GPIO bitwise ↵Michael Sevakis2010-06-22
| | | | | | macros for the interface since it shares GPIOH with the clickwheel interrupt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27038 a1c6a512-1295-4272-9138-f99709370657
* Apply FS #11423 - Use udelay in AMS driver for FM radio I2CBertrik Sikken2010-06-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27035 a1c6a512-1295-4272-9138-f99709370657
* Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz2010-06-21
| | | | | | | | | | | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
* Fix FS #10474 - FM tuner on Gigabeat S fails to tune last frequency on startBertrik Sikken2010-06-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27018 a1c6a512-1295-4272-9138-f99709370657
* FS#11417 by Joe Balough: fix audio/tuner on philips hdd6330Rafaël Carré2010-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26952 a1c6a512-1295-4272-9138-f99709370657
* AMSv2 RTC: no need to write to RTC_WAKEUP registerRafaël Carré2010-06-17
| | | | | | | | | The wakeup alarm will be disabled when powering off anyway OF database refresh of µSD now only happens if the wakeup was explicitely enabled There still seems to be a freeze problem when powering off (sometimes) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26875 a1c6a512-1295-4272-9138-f99709370657
* The mystery FM chip in some Sansa Clip+ players has been identified as a ↵Bertrik Sikken2010-06-16
| | | | | | RDA5802, so rename files and functions. Also fix several bugs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26871 a1c6a512-1295-4272-9138-f99709370657
* FM clip+ radio: enable stereo indicationBertrik Sikken2010-06-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26867 a1c6a512-1295-4272-9138-f99709370657
* Support for mystery FM chip in some Sansa Clip+, FS #11403 by meBertrik Sikken2010-06-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26864 a1c6a512-1295-4272-9138-f99709370657
* fix typo in r26245 (I guess not many people use rtc_alarm with gigabeat f)Robert Kukla2010-06-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26635 a1c6a512-1295-4272-9138-f99709370657
* Remove card_enable_monitoring() and use a mutex instead. The ↵Frank Gevaerts2010-06-06
| | | | | | card_enable_monitoring() method actually didn't eliminate the possible race conditions it was meant to fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26627 a1c6a512-1295-4272-9138-f99709370657
* remane hotswap.* to sdmmc.*. The contents have nothing at all to do with ↵Frank Gevaerts2010-06-05
| | | | | | hotswapping things git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26598 a1c6a512-1295-4272-9138-f99709370657
* Fix wrongly nested commentingFrank Gevaerts2010-06-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26597 a1c6a512-1295-4272-9138-f99709370657
* Fix EOL styleFrank Gevaerts2010-06-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26596 a1c6a512-1295-4272-9138-f99709370657
* Submit FS#11240 by Raphael Jakse. Allows to reduce volume on WM8985 to -89 ↵Andree Buschmann2010-05-30
| | | | | | dB (e.g. used for Cowon D2). Below -57 dB the line out is affected. The manual is updated accordingly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26413 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#10887 by me. Change the check for software poweroff to be that ↵Michael Giacomelli2010-05-29
| | | | | | the power button is held, not that the power button is held AND that no other button is held. This makes shutting down players with small tightly spaced buttons (Sandisk...) much easier. This also means that combos involving the power button can now potientially power off the player. The H10 and sansas excluding the Fuze use a combo involving power for AB repeat mode. However, the timeout for shutdown is much longer then the long press duration needed for AB repeat, and in practice seems to not be a problem on these players. I've tested this on various players for a long time and bugged other people to try it out, so I think its pretty safe, but if theres problems it can be reverted or keymaps tweaked. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26397 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
* 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
* 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
* 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
* as3514.c: clean upRafaël Carré2010-05-19
| | | | | | | | | | | | | | - enhance registers description in header file with respect to the as3543 registers: point which one are present or not in the as3543, which bits change (i didn't detail all registers) - cache less registers, only up to the ones which are written to multiple times - use ascodec_readbytes() to cache all needed registers in a row - separate the as3543 bits from as3514/as3515 in audiohw_preinit() - comment out unused audiohw_set_lineout_vol - some cosmetics git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26174 a1c6a512-1295-4272-9138-f99709370657
* Rename sdl lcd initialization to (remote_)lcd_init_device which enables ↵Thomas Martitz2010-05-18
| | | | | | removing two #ifdef SIMULATOR and makes it happen as on target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26137 a1c6a512-1295-4272-9138-f99709370657
* Do s/SWAP_WORDS/ATA_SWAP_WORDS/ to prevent namespace clashes.Maurus Cuelenaere2010-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26111 a1c6a512-1295-4272-9138-f99709370657
* as3525v1 use an as3515 audio codec/PMU, not an as3517 as previously thoughtRafaël Carré2010-05-16
| | | | | | | | | | | | | | -> Change references to as3517 into as3515 there is a reference to the as3515 in the public as3525 datasheet to support this fact as3517 is used in the as3527 SoC, the (public) as3527 datasheet has detailed information on its registers the audio codec/PMU used in as3525v2 (thought to be as3543) appears to be compatible (identical?) with as3517 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26075 a1c6a512-1295-4272-9138-f99709370657
* Revert r26055 since it breaks certain Archos targets.Michael Sevakis2010-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26067 a1c6a512-1295-4272-9138-f99709370657
* - Move uisimulator/sdl/*.[ch] into the target tree, under ↵Thomas Martitz2010-05-15
| | | | | | | | | | firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. - Refactor the program startup. main() is now in main.c like on target, and the implicit application thread will now act as our main thread (previously a separate one was created for this in thread initialization). This is part of Rockbox as an application and is the first step to make an application port from the uisimulator. In a further step the sim bits from the sdl build will be separated out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26065 a1c6a512-1295-4272-9138-f99709370657
* If HAVE_POWEROFF_WHILE_CHARGING is not defined and the charging ↵Michael Sevakis2010-05-15
| | | | | | configuration specifies CHARGING_MONITOR or greater, allow poweroff while plugged but not actually charging the battery. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26055 a1c6a512-1295-4272-9138-f99709370657
* Hopefully finish off the red from r26051.Michael Sevakis2010-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26053 a1c6a512-1295-4272-9138-f99709370657
* Hopefully get some green back from r26051.Michael Sevakis2010-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26052 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Fully enable access to hardware tone controls and 3-D effect ↵Michael Sevakis2010-05-15
| | | | | | feature. Under the hood, it's designated a hardware equalizer since it is one. Implement code framework for hardware EQ in general. Menu aspect is well abstracted and so the UI and strings can be changed around if taste doesn't quite suit. So far the emphasis is distinction of the UI labelling from the software EQ so that it's clear the settings are for a different thing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26051 a1c6a512-1295-4272-9138-f99709370657
* as3543: output sum of line & dac to have voicing work while using FMRafaël Carré2010-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26045 a1c6a512-1295-4272-9138-f99709370657
* wm8978: Clean out silly macros. Use 'POS' convention instead for shifted ↵Michael Sevakis2010-05-15
| | | | | | bitfields. Additionally, use volume update latching for all volume settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26043 a1c6a512-1295-4272-9138-f99709370657
* Fix remaining reds/yellows.Thomas Martitz2010-05-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26024 a1c6a512-1295-4272-9138-f99709370657
* as3514: mute headphones at the lowest volumeRafaël Carré2010-05-14
| | | | | | | | change lowest step from -74dB to -73dB, as it really is -73.5dB and is rounded to -73 fix FS#11237 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26010 a1c6a512-1295-4272-9138-f99709370657
* r25940 oops. No, no, no, that wasn't quite right. Must be truthful about the ↵Michael Sevakis2010-05-11
| | | | | | level in decidecibels for subsequent code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25941 a1c6a512-1295-4272-9138-f99709370657
* MRobe100, HD200, Gigabeat F/X (anything with wm8750 or wm8751). Properly ↵Michael Sevakis2010-05-11
| | | | | | prescale bass and treble controls to avoid clipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25940 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: make sure volume is normal by writing Audioset2 registerRafaël Carré2010-05-07
| | | | | | | | | | | If the bit 6 is set volume is much lower, without writing it explicitely it is undefined. According to linux sources this bit is related to mixer. Initialize Audioset2 with low power 'hph' (probably headphones) quality, as I couldn't make a difference with 'high quality' setting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25890 a1c6a512-1295-4272-9138-f99709370657
* Fix the remaining reds.Thomas Martitz2010-05-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25858 a1c6a512-1295-4272-9138-f99709370657
* Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2010-05-06
| | | | | | | | directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
* Make creat() posix compliant API-wise. Shouldn't affect the core as it's ↵Thomas Martitz2010-05-06
| | | | | | wrapped via a static inline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: don't modify audioset2 as it seems the bits have changedRafaël Carré2010-05-05
| | | | | | restore loud volume on Clip+ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25831 a1c6a512-1295-4272-9138-f99709370657
* Use settings for DAC AGC, cpeaker driver bias current (which is unused in ↵Michael Giacomelli2010-05-05
| | | | | | rockbox), dither, and headphone bias current taken from c200v2 firmware. These should result in several mA power savings on all as3525, and probably an improvement on AS3525v2 as well as the c200v1 and e200v1. RMAA tests on the e200v1, clipv1 and clipv2 show no measurable difference in output when driving a 16 ohm load. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25821 a1c6a512-1295-4272-9138-f99709370657