summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl
AgeCommit message (Collapse)AuthorFilesLines
2007-12-03Simplify the uisimulator I/O routine and let the rockbox thread calling the ↵Michael Sevakis3-6/+19
functions be the background thread. Should speed things up too and lose none of the advantanges of background I/O. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15870 a1c6a512-1295-4272-9138-f99709370657
2007-11-11fix fs#8131 - if --debugwps is used with the sim, the mouse coordinates will ↵Jonathan Gordon2-0/+11
be displayed in the console when it is clicked git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15565 a1c6a512-1295-4272-9138-f99709370657
2007-11-08Add --root option to allow overriding of simulator root menu.Steve Bavin1-11/+37
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15526 a1c6a512-1295-4272-9138-f99709370657
2007-11-04woops, lasttn does need to be globalJonathan Gordon1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15453 a1c6a512-1295-4272-9138-f99709370657
2007-11-03fix redJonathan Gordon1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15431 a1c6a512-1295-4272-9138-f99709370657
2007-11-03mouse support for HAVE_TOUCHPAD target simulatorJonathan Gordon1-8/+45
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15430 a1c6a512-1295-4272-9138-f99709370657
2007-10-28Improve the fake interrupt stuff on the sim a bit.Michael Sevakis1-1/+9
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15349 a1c6a512-1295-4272-9138-f99709370657
2007-10-27Add queue_peek to the kernel (written by Mike Sevakis), and use it to ↵Nicolas Pennequin1-0/+20
improve upon my previous commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15336 a1c6a512-1295-4272-9138-f99709370657
2007-10-26Correct some commenting left from an earlier set_irq_level version.Michael Sevakis1-4/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15323 a1c6a512-1295-4272-9138-f99709370657
2007-10-26Argh. Forgot to 'svn add' as usual.Michael Sevakis1-0/+32
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15322 a1c6a512-1295-4272-9138-f99709370657
2007-10-26Implement as genuine a set_irq_level function for the sim as possible. The ↵Michael Sevakis4-48/+175
yield added earlier is still nescessary since other threads won't run anyway while viewing the database screen on either sim or target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15321 a1c6a512-1295-4272-9138-f99709370657
2007-10-21More M:Robe work including a fix to lcd-as-memframe for larger screens ↵Karl Kurbjun3-1/+56
thanks to Michael Sevakis. Also fixes simulator builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15254 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Fix a warning (no newline at end of file).Michael Sevakis1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15136 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Fix the redMichael Sevakis1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15135 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis3-78/+311
towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
2007-10-13Fixes a problem where the sim would try to start the WPS on HAVE_RTC_ALARM ↵Jonathan Gordon1-0/+5
sims (FS#7862 with a small addition by me) use the --alarm argument if you do want to simulate this behaviour git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15094 a1c6a512-1295-4272-9138-f99709370657
2007-10-09fix yellow and some house cleaningRobert Kukla1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15056 a1c6a512-1295-4272-9138-f99709370657
2007-10-09FS#7487 - mpegplayer - video start time seek with resumeRobert Kukla1-0/+5
by John S. Gwynne & Brian J. Morey This should stop the patch from breaking again and give them opportunity to improve it further. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15052 a1c6a512-1295-4272-9138-f99709370657
2007-10-07Fix some yellow that went unnoticed earlier.Michael Sevakis1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15010 a1c6a512-1295-4272-9138-f99709370657
2007-10-06Unify PCM interface just above the hardware driver level for all targets ↵Michael Sevakis1-197/+53
including the sims. Perform lockout of audio callback when changing states. Weird new playback or recording trouble? Check before and after this revision first though things seem quite sound. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15006 a1c6a512-1295-4272-9138-f99709370657
2007-09-30Enable auto reply for queue messages sent with queue_send. It's only ↵Michael Sevakis1-0/+16
nescessary to use queue_reply to return a value other than zero or to return a result before waiting on the queue again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14923 a1c6a512-1295-4272-9138-f99709370657
2007-09-25Dithering option for mpegplayer on gigabeat-f/x and e200. Assembly IDCT for ↵Michael Sevakis1-0/+204
ARm just to make it all work more nicely. Move UI simulator YUV code to its core to adapt it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14851 a1c6a512-1295-4272-9138-f99709370657
2007-09-13UISIMULATOR: Trying to make it snappy for everyone. Remove forced thread ↵Michael Sevakis1-8/+1
yield in switch_thread which starves threads that call it alot especially on fast 64-bit machines (which could yield _alot_ of time away). I suspect that was a way to get I/O to run better before having an I/O thread...and it did help before that addition. No longer needed it seems and the OS seems to handle scheduling without hints just fine. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14685 a1c6a512-1295-4272-9138-f99709370657
2007-09-10Accept FS #7750: simulator: add missing newlines after SDL errorsPeter D'Hoye1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14666 a1c6a512-1295-4272-9138-f99709370657
2007-09-10UISIMULATOR: Do a graceful shutdown of all threads and avoid (mostly lockup) ↵Michael Sevakis3-62/+162
problems caused by not worrying about states. Have rockbox objects initialized only by rockbox threads save for the main 'gui' thread which is a needed exception. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14660 a1c6a512-1295-4272-9138-f99709370657
2007-09-09More Simulator tweaking. Back to the counter but with 0 delay. Forget the ↵Michael Sevakis1-18/+8
semaphore; it makes for too much kernel thread yielding. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14649 a1c6a512-1295-4272-9138-f99709370657
2007-09-09UISIMULATOR: Give the host OS some needed context switching hints (which ↵Michael Sevakis5-14/+64
_is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Make sleep(0) in the sim behave more like on target.Jens Arnold1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14645 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Fix some warnings in sim kernel.Michael Sevakis1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14640 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Sim I/O and threading that runs more like on target. Tweakable if any ↵Michael Sevakis4-103/+386
genuine slowness imitation is required for any one of them. One point of concern is the sim shutdown on an OS other than Linux just because terminating threads in a manner other than having the do it themselves is kind of dirty IMHO. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14639 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Allow the volume keys to be used in lists. Fix the sim buttons.Mark Arigo1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14638 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Make the uisim build for the Sansa c200.Mark Arigo3-0/+45
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14637 a1c6a512-1295-4272-9138-f99709370657
2007-08-13Fix wheel in sansa simulator, closes FS#7591Nils Wallménius1-1/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14308 a1c6a512-1295-4272-9138-f99709370657
2007-08-12Fix red simulator builds. queue_broadcast() was missing...Jens Arnold1-3/+52
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14293 a1c6a512-1295-4272-9138-f99709370657
2007-08-05Added iPod 1st/2nd gen simulator bits.Jens Arnold3-1/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14202 a1c6a512-1295-4272-9138-f99709370657
2007-08-01Slightly less hacky sim queue_send(), fixes simulator crashes FS#7051 and ↵Steve Bavin1-1/+1
FS#7245. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14113 a1c6a512-1295-4272-9138-f99709370657
2007-07-31not to self: should recompile after adding comments...Jonathan Gordon1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14098 a1c6a512-1295-4272-9138-f99709370657
2007-07-31working volume control in the simJonathan Gordon1-3/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14097 a1c6a512-1295-4272-9138-f99709370657
2007-07-29Use multi-screen api for metronome plugin, and made it run in the simulator ↵Kevin Ferrare2-0/+61
by implementing the timer functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14046 a1c6a512-1295-4272-9138-f99709370657
2007-07-22Sim needs a duplicate of the button_get_data implementation.Michael Sevakis1-2/+16
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13961 a1c6a512-1295-4272-9138-f99709370657
2007-07-22Add a verbosity level command line option to the chackwps tool. This should ↵Nicolas Pennequin1-0/+1
make life easier for the themes.rockbox.org people. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13958 a1c6a512-1295-4272-9138-f99709370657
2007-06-25Fix sim errors. Every extra byte feels guilt-free. ;)Michael Sevakis1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13717 a1c6a512-1295-4272-9138-f99709370657
2007-05-04Fix some errorsMichael Sevakis1-1/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13322 a1c6a512-1295-4272-9138-f99709370657
2007-05-04Get samplerate switching working in the sim to be similar to on target. Make ↵Michael Sevakis1-64/+240
all pcm functions available there as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13320 a1c6a512-1295-4272-9138-f99709370657
2007-04-24Add a new commandline switch to the simulator: "--debugwps". It enables ↵Nicolas Pennequin1-1/+7
printing of advanced (and very verbose) WPS debugging information. Also make the debugging code a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13257 a1c6a512-1295-4272-9138-f99709370657
2007-04-24Oops. This shouln't have been added.Nicolas Pennequin1-0/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13252 a1c6a512-1295-4272-9138-f99709370657
2007-04-24WPS Parser: On parse failure, print a (hopefully) useful error message with ↵Nicolas Pennequin1-0/+0
line number (sim only). Also the debug code is still disabled but now in a nicer way. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13251 a1c6a512-1295-4272-9138-f99709370657
2007-04-20a little extra poke to get the sim to buildDaniel Stenberg1-3/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13215 a1c6a512-1295-4272-9138-f99709370657
2007-04-14Simplification, queue pointers don't wrap (except at INT_MAX, but the ↵Jens Arnold1-0/+5
calculation is still correct in this case). Implemented queue_count() for the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13154 a1c6a512-1295-4272-9138-f99709370657
2007-04-12Moved archos backlight code to target tree. Changed old mutlivalue ↵Jens Arnold3-10/+10
CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657