summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* scroll_engine: Change header inclusionThomas Martitz2014-01-07
| | | | Change-Id: I033db3d3a838f0a950ce7707de6a0cd4b2595d93
* Make sure usb class driver disconnect() functions are called properly.Frank Gevaerts2014-01-05
| | | | | | | | | disconnect() needs to be called exactly once per call to init_connection(). In case of bus resets, disconnect() was not called, which led to leaking alloc_maximum() allocated buflib handles, which led to buflib running out of memory to allocate. Change-Id: I03025da578dc54e48b6de6bd3e3f40feae7220a6
* Check that core_alloc_maximum() returned something useful, and panic if notFrank Gevaerts2014-01-05
| | | | Change-Id: I7ae40db0f81d1d51742501936b13b387f94a25e5
* Add missing kernel.h includes (hopefully all of them), take #3.Thomas Martitz2014-01-05
| | | | Change-Id: I68ed0e914239f0caf83082a41c2480a01b69285a
* Add missing kernel.h includes (hopefully all of them), take #2.Thomas Martitz2014-01-05
| | | | Change-Id: I62cedf992bb096987050621cfc34f0432e9da170
* Add missing kernel.h includes (hopefully all of them).Thomas Martitz2014-01-05
| | | | Change-Id: I9c1825296a788587b8d494d8514b3314847b0ff0
* Do not include kernel.h in system.h.Thomas Martitz2014-01-05
| | | | | | | system.h doesn't need it on its own and this change makes it less dependant on Rockbox internals. Change-Id: I4e1e4108a52a7b599627a829204eb82b392fc6d6
* lcd: Fix certain drawmode combinations.Thomas Martitz2014-01-05
| | | | | | | | Some seldomly used drawmode combinations did not work in conjunction with alpha bitmaps and backdrops. Now all should work (see comment added) by using more bits. Change-Id: I2bc96ecf471fa8c1a608a321a235b9c8527b3dc5
* Fix bpb_is_sane() cluster size calculation for non-512 byte sectors.Frank Gevaerts2014-01-04
| | | | | | | | | | | bpb_is_sane() used to effectively multiplying the sector size (relative to 512 bytes) twice, which meant that filesystems with e.g. 2K sectors and 32 sectors per cluster were rejected because while this adds up to 64K clusters (i.e. the upper limit), the calculation wrongly came to 256K. This bug tends to affect 5.5G ipods when formatted using dosfstools. Change-Id: Ia3f1e1303b2af953f497ccdbf23cd49c3d72e46a
* Make fat test tool build again, and make its sector size configurable.Frank Gevaerts2014-01-03
| | | | Change-Id: Icfe7c4bb880c2f10918a7809f0f1f1c3838f6f48
* creativezenv: change target_id & MODEL_NUMBER.Andrew Ryabinin2014-01-02
| | | | | | | | | 85 is already used by HIFI E.T. MA8C. Change-Id: I7f30d6b1acbebd6152d11fa46ec87d95e6a809e7 Reviewed-on: http://gerrit.rockbox.org/703 Reviewed-by: Purling Nayuki <cyq.yzfl@gmail.com> Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* zenxfi2: remove unused functionAmaury Pouly2013-12-24
| | | | Change-Id: I98acfc9394ac83a45985364fdfad85af2f7d1773
* lcd: Fix scrolling.Thomas Martitz2013-12-23
| | | | Change-Id: I1f8d3d67b224c1c531438b94e3aab640b76770be
* playback,talk: Share audiobuffer via core_alloc_maximum().Thomas Martitz2013-12-23
| | | | | | | | | | | | | | | | This fixes the radioart crash that was the result of buffering.c working on a freed buffer at the same time as buflib (radioart uses buffering.c for the images). With this change the buffer is owned by buflib exclusively so this cannot happen. As a result, audio_get_buffer() doesn't exist anymore. Callers should call core_alloc_maximum() directly. This buffer needs to be protected as usual against movement if necessary (previously it was not protected at all which cased the radioart crash), To get most of it they can adjust the willingness of the talk engine to give its buffer away (at the expense of disabling voice interface) with the new talk_buffer_set_policy() function. Change-Id: I52123012208d04967876a304451d634e2bef3a33
* buflib: Add buflib_context_relocate().Thomas Martitz2013-12-22
| | | | | | | | | | | | | | This function relocates a buflib back buffer, updating pointers in struct buflib_context. It does not move any data by itself. The intended use-case is buflib-on-buflib, where a buflib back buffer is allocated with buflib and attempted to be moved. The move_callback() can call this and return BUFLIB_CB_OK on success. No move_callback() is called for the subordinate buflib buffer, therefore it must not contain non-movable allocations. The caller is generally responsible moving the data and all its implications. Change-Id: I869219f9cff786a172c9e917a5f34470073892e6
* buflib: Try harder in buflib_alloc_maximum().Thomas Martitz2013-12-22
| | | | | | | | This function will now ask shrinkable allocations to give up all of their memory. With future support of playback.c this can be used as a safe replacement for audio_get_buffer(). Change-Id: I290a51d2c75254e66baf5698c41dc444dea6247a
* Fix audio on m:robe 100.Szymon Dziok2013-12-17
| | | | | | Tested on different revisions and it works reliably. Change-Id: Ic710236247a17f516c8561429f2da5c9684341b9
* Introduce IHIFI760/960 targets.Andrew Ryabinin2013-12-16
| | | | Change-Id: Ie36e48742c0ed9aa3fd6f49aa034a11d2492327c
* rk27xx: Fix ifdef for DEBUG_CANCEL button.Andrew Ryabinin2013-12-16
| | | | Change-Id: Iebbe518dcaf5c9e1573309b3fee17b52998d941c
* Fix more reds.Thomas Martitz2013-12-15
| | | | Change-Id: Ie62386a8f3e9986381f96eb83abb69bfc42b42e1
* Fix reds. Also apply the new scrolling to lcd charcell (this even uncovered anThomas Martitz2013-12-15
| | | | | | error). Change-Id: I29243bb36b6cec1471bd6c0afc64e00547a68c50
* scroll_engine: Major rework to support pixel-based scrolling and scroll ↵Thomas Martitz2013-12-14
| | | | | | | | | | | | | | | | | | | callbacks. Much of the scrolling work is moved from lcd-bitmap-common to lcd-scroll.c, a small scroll callback routine remains. This callback can potentially be overridden by more extensive scrollers. The callback also gets fed with pixel-based scrolling information, which finally removes the strict line-based nature of the scroll engine. Along with this is the change from scroll_stop_viewport_line() to scroll_stop_viewport_rect() which works on a pixel-based rectangle instead of lines. The ultimate goal is to move most of the scroll work to apps, which can much better decide which line decorations to apply etc. This work is laying the ground work. Change-Id: I3b2885cf7d8696ddd9253d5a9a73318d3d42831a
* scroll_engine: Add STYLE_NONE to allow for drawing lines without styling.Thomas Martitz2013-12-14
| | | | | | | This allows to draw lines without destroying styles that were drawn manually (e.g. from apps/) beforehand. Change-Id: I0de290c9343061efb115e1b76da5b76395c2b2af
* scroll_engine: Split out common main and remote lcd functions.Thomas Martitz2013-12-14
| | | | | | | Uses a similar technique as lcd_*.c files of #including a common .c file, so that a unified implementation can be reused for both displays. Change-Id: I21f6de76df757b093e1a1dff0a4caf96a44fe77e
* scroll_engine: Rename scroll_stop* functions to be more consistent with the ↵Thomas Martitz2013-12-14
| | | | | | lcd api. Change-Id: I8ada10b96bfb628cca0331689e8b936ae47c7e1c
* lcd-*: Merge common viewport operations into lcd-bitmap-common.cThomas Martitz2013-12-14
| | | | Change-Id: Ibec2d039ac0ba1214c9bd1b667bc8a9538a0d3d7
* Fix yellowAmaury Pouly2013-12-08
| | | | Change-Id: I60cd312c501f2f0fe0c12489c86c856eeb8e1aa8
* rmi/fuze+: add product info in the debug screenAmaury Pouly2013-12-08
| | | | Change-Id: Id06dbe0909e37587a45a2ebf5b0beab93cd44f61
* imx233: regenerate registers headersAmaury Pouly2013-12-06
| | | | Change-Id: I546177a247646d7a9864d1ec2796ef0708e50667
* imx233: fix storage code to work for non-MD buildsAmaury Pouly2013-12-06
| | | | Change-Id: Ic326e59385aff3be1ada52b482e94051c512323d
* storage: fix MD vs MV confusionAmaury Pouly2013-12-06
| | | | Change-Id: If0e4b0ac8b24413b77f1d67293c652c6a0e01bbd
* fuze+: remove unused, duplicate code in config fileAmaury Pouly2013-12-06
| | | | Change-Id: Ia8116528ca65844322177531f14b2f6bbfb56719
* Initial commit for the YP-Z5 portLorenzo Miori2013-12-02
| | | | | | | | The port uses the imx233 soc, it's a STMP3650 based Samsung player Change-Id: I50b6d7e77fd292fab5ed26de87853cd5aaf9eaa4 Reviewed-on: http://gerrit.rockbox.org/490 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* imx233: don't compile fm tuner code in bootloaderAmaury Pouly2013-12-02
| | | | Change-Id: Icd36e6b03965272eb169a19630b720f38bac6d9e
* imx233: fix red on stmp3600Amaury Pouly2013-12-02
| | | | Change-Id: I56527f2d643cb3c453e08cd1f759b80ce10ceb66
* imx233: rework power management for work on stmp3700Amaury Pouly2013-12-01
| | | | Change-Id: Ia1f7e8b633dfe6ef8dc840b3eb22eaf79c53ce6b
* Revert "imx233: always keep cards in TRAN mode"Amaury Pouly2013-11-30
| | | | | | | | This reverts commit 462adf2a0fefbfdbccfafa11c999ac6beb114e8a. Leaving the card in TRAN results in a huge power consumption because some cards and internal bridges do not automatically enter power saving mode in TRAN state. Change-Id: If79efe8cf99b24174889b3a5ebbcb51b07085f58
* zen: rework lcd enableAmaury Pouly2013-11-26
| | | | | | | | | | The ZEN/ZEN-XFi seem to be very picky about the lcd. And they do not like standby mode so I'm going to drop it, the OF doesn't use it anyway. I still don't know what this "power" pin is about, obviously it's not real power but the OF toggle it. Let's hope the lcd will finally become more stable with fix: the driver now does full power on/off on enable/disable. Change-Id: I1c465ee4f2462bc3d9507e5f575f0a181af60214
* imx233: add the possibility to choose audio output coupling modeLorenzo Miori2013-11-25
| | | | | | | | via target-defined option Change-Id: I1bffbc7f17a11cf690a771057c2e4a7ba6a5faaa Reviewed-on: http://gerrit.rockbox.org/678 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* rk27xx: small cleanup of crt0.SMarcin Bukat2013-11-23
| | | | Change-Id: I5f40efd03b133acab86315d36580fcad68834f78
* tea5767: properly power up the tuner during detectLorenzo Miori2013-11-21
| | | | | | Change-Id: I5ca5c3ae28db1427e2528cb1740a9199180b9b38 Reviewed-on: http://gerrit.rockbox.org/670 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* Introduce volume_{present,removable} and fix invalid calls in apps/Amaury Pouly2013-11-20
| | | | | | | | | | The code was trying to probe for volume presence by calling drive layer with volume index. It is a miracle it get unnoticed so far. Introduce proper volume probing using the vol->drive map in the disk layer. Change-Id: I463a5bcc8170f007cad049536094207d2ba3c6fc Reviewed-on: http://gerrit.rockbox.org/669 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* Add IAP support to iPod Mini 1G.andypotter2013-11-20
| | | | | | | | Tested on iPod Mini 1G. Change-Id: I67ac9b7ed84c34533107136d0aa72e5ce3bcc5bc Reviewed-on: http://gerrit.rockbox.org/668 Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
* imx233/sdmmc: {sd,mmc}_{present,removable} don't depend on multivolumeAmaury Pouly2013-11-20
| | | | Change-Id: Id35fbdbc62b804e9a67c6d1f18b19a1d2051bb78
* sonynwz: rework keymap based on lebellium's work and enable volume in listAmaury Pouly2013-11-20
| | | | Change-Id: Ieb015e78d1c0aa74c61591e442bfdf5f883f3811
* Finally fix yellowAmaury Pouly2013-11-19
| | | | Change-Id: Ia7c30821a9417a23478c053b3edcf26e1179a9d9
* Fix yellowAmaury Pouly2013-11-19
| | | | Change-Id: I9d283592c6411c97948ae4962e2c22d7ab45bec3
* Fix sim redAmaury Pouly2013-11-19
| | | | Change-Id: Icbdf47c5c508516892b1ce75558b878dc512e780
* Forgot lcd driver of the ZEN V !Amaury Pouly2013-11-19
| | | | Change-Id: I0e0e04d4de3b28058e3822043d46d64291265c75
* imx233: factor fmradio i2c and tuner power codeAmaury Pouly2013-11-19
| | | | | | | | | Choices are limited for those: i2c is either generic software or imx233 hardware and power is either none or with a gpio. So factor ever possible combination in a single common file and use fmradio-target.h to supply the required parameters. This will remove a bunch of duplicate code. Change-Id: If12faeb2e371631cd39cc18a4c1d859812007934