AgeCommit message (Collapse)AuthorFilesLines
2014-08-20Make sure load_context is the last thing in switch_thread.Michael Sevakis1-5/+5
This should fix the android crash issue (fingers crossed). Change-Id: I9d3f773dbdf7dde60bd76962dcf66a3bad8b0925
2014-08-19Added Clip/+ to 2048 targetsFranklin Wei1-4/+1
Change-Id: I9fb5a50f214e9dd87d1f1f62f4324876bdd94fe8 Reviewed-on: Reviewed-by: Michael Giacomelli <>
2014-08-192048: service pack 1 :)Franklin Wei1-79/+153
- fixed some bugs - added 1-bit LCD support Change-Id: I7bb458d79d799dcd6b11d9d538773404f9a7f97c Reviewed-on: Reviewed-by: Michael Giacomelli <>
2014-08-18thread-unix patchup!Michael Sevakis1-4/+26
The changed thread code may not wish to save the old context under certain circumstances but thread-unix.c assumed it would, cached it and used it unconditionally. Also, prevent it from leaking away all the jump buffers (old problem). Creating and removing threads would eventually run it out of buffers and then it would crash after that. Plugins, like Pictureflow, which have worker threads could only be started a few times. Implement a simple O(1) allocator that will reuse them and stays self-contained to its own types (as it appears the original author intended). Change-Id: Icf65413c086b346fb79bf827102b725269e2812c
2014-08-18Always unboost at exitAvi Eisenberg1-0/+3
Change-Id: I8b4a2d61a5f4491265888d84c0f2c684bcf38edb Reviewed-on: Reviewed-by: Jonathan Gordon <>
2014-08-16Oops. Broke an egg. Restore wrongly removed code in mutex.c.Michael Sevakis1-0/+6
Nice colorful diffs reveals some lines that should NOT have been removed when !defined(HAVE_PRIORITY_SCHEDULING) in mutex_unlock. Change-Id: I4152ea864b7706217c670e1b99250b09e69c5858
2014-08-16Fix warnings from 6ed0087Michael Sevakis5-24/+29
Forgot to (void) an unused parameter when priorityless. usb-drv-rl27xx.c was using a compound init to initialize a semaphore but the structure changed so that it is no longer correct. Use designated initializers to avoid having to complete all fields. Forgot to break compatibility on all plugins and codecs since the kernel objects are now different. Take care of that too and do the sort thing. Change-Id: Ie2ab8da152d40be0c69dc573ced8d697d94b0674
2014-08-16Base scheduler queues off linked lists and do cleanup/consolidationMichael Sevakis20-2032/+1525
Abstracts threading from itself a bit, changes the way its queues are handled and does type hiding for that as well. Do alot here due to already required major brain surgery. Threads may now be on a run queue and a wait queue simultaneously so that the expired timer only has to wake the thread but not remove it from the wait queue which simplifies the implicit wake handling. List formats change for wait queues-- doubly-linked, not circular. Timeout queue is now singly-linked. The run queue is still circular as before. Adds a better thread slot allocator that may keep the slot marked as used regardless of the thread state. Assists in dumping special tasks that switch_thread was tasked to perform (blocking tasks). Deletes alot of code yet surprisingly, gets larger than expected. Well, I'm not not minding that for the time being-- omlettes and break a few eggs and all that. Change-Id: I0834d7bb16b2aecb2f63b58886eeda6ae4f29d59
2014-08-16Add common linked list functionsMichael Sevakis3-0/+427
Forms implemented to a greater or lesser degree at the moment: ll_* = singly-linked list lld_* = doubly-linked list lldc_* = doubly-linked circular list Change-Id: Ieed5af50fc59165c8b14c3513b3b5d0e6f7de9fa
2014-08-13hwpatcher: fix horrible typo in the makefileAmaury Pouly1-1/+1
Change-Id: I6e8d8ae3a5f6e1111a6b7d910a1a6b94e2733ca6
2014-08-12Added highscore highlight to xobox gameFranklin Wei1-1/+1
Change-Id: Idf6848fc80a56398889d5deeb16bf3707fcd3e30 Reviewed-on: Reviewed-by: Michael Giacomelli <>
2014-08-12Added 2048 gameFranklin Wei17-0/+960
Change-Id: I4012dca4f93ca0db386a454635534f648ba906e9 Reviewed-on: Reviewed-by: Michael Giacomelli <> Tested: Michael Giacomelli <>
2014-08-08Fix some more straggling stuffMichael Sevakis5-88/+7
* HWCODEC bootloaders * Remove references to thread structures outside the kernel. They are private and should not be used elsewhere. The mrobe-100 is an offender that gets squashed. * The ata.c hack stuff for large sector disks on iPod Video gets squashed for the same reason. I will no longer maintain it, period; please find the real reason for its difficulties. Change-Id: Iae1a675beac887754eb3cc59b560c941077523f5
2014-08-08Bootloaders need the reacharound to get at the internal goodsMichael Sevakis24-36/+24
They need to include kernel-internal.h in order to perform inits. Change-Id: I5b0f155e4ff49a065c6cb97691ecd4396a199979
2014-08-08Do some kernel cleanupMichael Sevakis22-983/+363
* Seal away private thread and kernel definitions and declarations into the internal headers in order to better hide internal structure. * Add a thread-common.c file that keeps shared functions together. List functions aren't messed with since that's about to be changed to different ones. * It is necessary to modify some ARM/PP stuff since GCC was complaining about constant pool distance and I would rather not force dump it. Just bl the cache calls in the startup and exit code and let it use veneers if it must. * Clean up redundant #includes in relevant areas and reorganize them. * Expunge useless and dangerous stuff like remove_thread(). Change-Id: I6e22932fad61a9fac30fd1363c071074ee7ab382
2014-08-07rkwtool: The tool to inspect and extract update RKW filesMarcin Bukat5-0/+812
Change-Id: Ie32d0a597b93d23a7d5946a3d9409572b41b45bc
2014-08-06Fix some stuff for no priority andMichael Sevakis5-20/+14
thread_queue_wake() doesn't need the 2nd parameter. The original purpose for it never came to be. Non priority version mrsw_writer_wakeup_readers was left improperly finished. Get that back into line. Change-Id: Ic613a2479f3cc14dc7c761517670eb15178da9f5
2014-08-05One more shot; errno.h needs to be in the ARM one too :)Michael Sevakis1-0/+1
Change-Id: Icf5e5fb269c975eaaefc6e756f46d4530b982b1f
2014-08-05Hosted builds using thread.c have errno as thread context.Michael Sevakis1-1/+1
Never came up testing but I don't have those SDKs installed. Taking a jab at it. Change-Id: I4d0de1c666e0895d41b3de41dd9024626bd37601
2014-08-05Fix up some more redMichael Sevakis3-7/+14
find_first_set_bit() becomes a small inline on ARMv5+ and checkwps now gets made with -std=gnu99 (it eats all the GCCOPTS) like the rest of things. Change-Id: Ie6039b17fec057a3dcb0f453d8fd5efac984df89
2014-08-05Oops. Somehow lost the track of the new files last push.Michael Sevakis2-0/+397
Change-Id: If3fad318bc2d620fa940de3f9595ff61024939df
2014-08-06Add multi-reader, single-writer locks to kernel.Michael Sevakis11-574/+853
Any number of readers may be in the critical section at a time and writers are mutually exclusive to all other threads. They are a better choice when data is rarely modified but often read and multiple threads can safely access it for reading. Priority inheritance is fully implemented along with other changes to the kernel to fully support it on multiowner objects. This also cleans up priority code in the kernel and updates some associated structures in existing objects to the cleaner form. Currently doesn't add the mrsw_lock.[ch] files since they're not yet needed by anything but the supporting improvements are still useful. This includes a typed bitarray API (bitarray.h) which is pretty basic for now. Change-Id: Idbe43dcd9170358e06d48d00f1c69728ff45b0e3 Reviewed-on: Reviewed-by: Michael Sevakis <> Tested: Michael Sevakis <>
2014-08-05Russian language updateKyryljan_Serhij1-0/+28
Change-Id: I78af1702c1f60c2fc66ebeb738aed187f13906f3 Reviewed-on: Reviewed-by: Marcin Bukat <>
2014-07-30Make crosstool-ng build with gnu make 4.0Frank Gevaerts1-3/+3
Change-Id: Id3a5a310e6fa53e690c92f420994875cb1bfff43
2014-07-28Support for remote on Samsung YH920/YH925.bootloader_yh820_v1Szymon Dziok4-7/+75
Remote buttons are bound to the standard buttons in button-target.h, but they can have a separate buttonmap, if someone wants. Change-Id: Id8c78a3dfec0005bf588dc16416870b4c7c56836
2014-07-28Samsung YH-925: Don't add anything to adc value while reading it.Szymon Dziok2-7/+6
OF doesn't do such thing. Values in mV are converted proportionally, so no change to the battery meter. Change-Id: Ic545b0514535e7f17f0379ed02f6bdf515f69ac6
2014-07-28Samsung YH-920: Proper values for battery monitoring, based on the OF formula.Szymon Dziok2-8/+7
Change-Id: I894eb6bad600bd059fe9a5ea1103737a736d4005
2014-07-27Slovak language updatePeter Lecký1-24/+142
Change-Id: I3150dd77b3f5ce85d324ce3e9b6931c659dbde58 Signed-off-by: Bertrik Sikken <>
2014-07-27Samsung YH-820: enable battery monitoringSebastian Leonhardt3-14/+12
The "percent_to_volt_charge" values are quite arbitrary and may need some more tweaking. Change-Id: I9f177d46681030d615fe2c2e78cf9bd2dde026af Reviewed-on: Reviewed-by: Szymon Dziok <> Tested: Szymon Dziok <>
2014-07-26SA9200: Implement clicker.Szymon Dziok2-0/+19
It's not integrated with key click option for now. Change-Id: Ib0769b02bfebe7c55eca7b7ea61df5d6dd83cdd3
2014-07-26Reduce definitions of actions for fm radio.Szymon Dziok1-24/+5
Change-Id: I89188ecc820058b79b5c8fcf3e9b5ed49ae8aff4
2014-07-26MPIO HD200: Fix action for fm radio.Szymon Dziok1-1/+1
Change-Id: I65a8e6f39d47f5d091e9676102b0ec08eb08690c
2014-07-26HDD1630/HDD6330: Add actions for fm radio.Szymon Dziok1-0/+1
Change-Id: I6acc21663fd0bc27509f8c37c71defb817ec7108
2014-07-26Ak4537: Optimization of the code.Szymon Dziok1-76/+62
Change-Id: I98e25d7177b24b277a79d8bf8d494dac26553c2c
2014-07-26Disable detection of fm radio for the YH920, it's pointless.Szymon Dziok1-1/+1
Change-Id: Ibabda73046dc523c2bd0b1dfd0644f8882fbb74c
2014-07-23rk27load: stage1 dram config fix #2Marcin Bukat1-7/+5
Change-Id: I5c4cf3dedab26e4cae05496bcae3a2d235d12e2f
2014-07-23rk27load: fix stage1 dram config bugMarcin Bukat1-9/+9
Change-Id: I03d44dbd05fcd5dfc0e508020fae7006d8a97505
2014-07-21add supports for x,y value in percentage to several tags.Chiwen Chang2-23/+106
including BAR_PARAMS, %xl, %dr, %T,%St, %xl and %Cl Change-Id: I0811ebfff5f83085481dcbf08f97b7223f677bfe Reviewed-on: Reviewed-by: Jonathan Gordon <>
2014-07-17SVG image of the Creative Zen Mozaic and other formats for the manual.Szymon Dziok3-0/+2854
Change-Id: I594afa62b5c5a3cef1dcf4d4249a13688e425267 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-07-17zen/zenxfi/zenxfistyle/zenmozaic: implement plugin keymaps and enable pluginsAmaury Pouly52-10/+472
Plugins on the ZEN/ZEN X-Fi require to increase the plugin buffer size. Change-Id: If4651c87b402060faa24530985c6e871379c8ea1
2014-07-17keymaps: cleanupAmaury Pouly4-25/+15
- remove useles define in pegbox - improve keymap of nwz in mpegplayer - fix whitespace alignement Change-Id: I0d5e3c59f89ed8e0e02c386255286cfbb8693230
2014-07-13libopus: use iram for more constantsNils Wallménius2-5/+5
Speeds up decoding of the 64 kbps test file by 2.59 MHz and the 128 kbps test file by 4.31 MHz on H300 (cf). Decoding the same files on c200 is sped up by 0.33 MHz and 0.55 MHz respectively. Change-Id: I0f9f9ef6a7293581cf45e3201b33c65504c95c81
2014-07-13libopus: asm C_MUL for coldfireNils Wallménius1-0/+21
The recent merge of upstream changed the fft to use C_MUL which wasn't implemented in asm for coldfire. Speeds up decoding 64 kbps test file by 2.68 MHz and 128 kbps test file by 2.80 MHz on H300. Change-Id: I8b61fc0f9568d6350431e311a12e44fe4f60f72e
2014-07-13Sync to upstream libopusNils Wallménius46-1051/+1608
Sync to commit bb4b6885a139644cf3ac14e7deda9f633ec2d93c This brings in a bunch of optimizations to decode speed and memory usage. Allocations are switched from using the pseudostack to using the real stack. Enabled hacks to reduce stack usage. This should fix crashes on sansa clip, although some files will not play due to failing allocations in the codec buffer. Speeds up decoding of the following test files: H300 (cf) C200 (arm7tdmi) ipod classic (arm9e) 16 kbps (silk) 14.28 MHz 4.00 MHz 2.61 MHz 64 kbps (celt) 4.09 MHz 8.08 MHz 6.24 MHz 128 kbps (celt) 1.93 MHz 8.83 MHz 6.53 MHz Change-Id: I851733a8a5824b61feb363a173091bc7e6629b58
2014-07-07crc-mi4: use const lookup table for crcMarcin Bukat6-41/+45
This doesn't touch external tools as I see no need for. Change-Id: Ia69248c4b6a033c3772916525257e3540bddcffa Reviewed-on: Tested: Sebastian Leonhardt <> Reviewed-by: Marcin Bukat <>
2014-07-02Finished SVG Image for Sansa Clip Zip.Szymon Dziok3-0/+830
Added labels and power button. Original author: Marko Pahlke, FS#12602 Change-Id: I17cfa245fcd36755162a3c527de6ba768568a376
2014-07-02SVG image of the Sony NWZ-E360 and other formats for the manual.Szymon Dziok3-0/+3665
Change-Id: I2783dd39a773d952997e4a6d28916290e0dd5f65 Reviewed-on: Reviewed-by: Amaury Pouly <>
2014-07-01Sony NWZ: calibrate discharge curvesAmaury Pouly2-8/+8
The charging curve also need to be calibrated but that will be part of another commit. Change-Id: Ie4c5995123e4059ae4f3c9d86c11fc1257314d39
2014-07-01rolo: fix crc calculation for mi4Marcin Bukat1-0/+2
crc32gentab() which initilizes crc table was called in bootloader but not in main binary. Fix this temporary by always calling it in load_mi4(). The proper fix probably to switch to const table and drop runtime initialization. Change-Id: I8b0c2c791642f56ed56189d156647661935a815d
2014-06-30Introduce plugin keymaps for the Sony NWZ SeriesNils Stec48-2/+470
Change-Id: I46b8766bd44118bce4931b7ee71815ae5f51cb2e Reviewed-on: Reviewed-by: Amaury Pouly <>