Michael Sevakis
32f8c402de
Fix some yellow that went unnoticed earlier.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15010 a1c6a512-1295-4272-9138-f99709370657
2007-10-07 06:13:05 +00:00
Michael Sevakis
6077e5b7c8
Unify PCM interface just above the hardware driver level for all targets 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-10-06 22:27:27 +00:00
Michael Sevakis
035529c487
Enable auto reply for queue messages sent with queue_send. It's only 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-30 17:23:13 +00:00
Michael Sevakis
287d6223d3
Dithering option for mpegplayer on gigabeat-f/x and e200. Assembly IDCT for 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-25 02:59:42 +00:00
Michael Sevakis
4117c64917
UISIMULATOR: Trying to make it snappy for everyone. Remove forced thread 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-13 21:40:56 +00:00
Peter D'Hoye
3afaec3ead
Accept FS #7750 : simulator: add missing newlines after SDL errors
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14666 a1c6a512-1295-4272-9138-f99709370657
2007-09-10 21:18:19 +00:00
Michael Sevakis
c4a7631eb9
UISIMULATOR: Do a graceful shutdown of all threads and avoid (mostly lockup) 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-10 03:49:12 +00:00
Michael Sevakis
3a45faa6a8
More Simulator tweaking. Back to the counter but with 0 delay. Forget the 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-09 08:28:42 +00:00
Michael Sevakis
0107dfc827
UISIMULATOR: Give the host OS some needed context switching hints (which _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-09 01:59:07 +00:00
Jens Arnold
424750ea95
Make sleep(0) in the sim behave more like on target.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14645 a1c6a512-1295-4272-9138-f99709370657
2007-09-08 23:50:36 +00:00
Michael Sevakis
174ce90371
Fix some warnings in sim kernel.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14640 a1c6a512-1295-4272-9138-f99709370657
2007-09-08 12:32:41 +00:00
Michael Sevakis
f64ebb1c1f
Sim I/O and threading that runs more like on target. Tweakable if any 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-08 12:20:53 +00:00
Mark Arigo
69b4654ea2
Allow the volume keys to be used in lists. Fix the sim buttons.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14638 a1c6a512-1295-4272-9138-f99709370657
2007-09-08 03:30:32 +00:00
Mark Arigo
e14a76093d
Make the uisim build for the Sansa c200.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14637 a1c6a512-1295-4272-9138-f99709370657
2007-09-08 03:10:22 +00:00
Nils Wallménius
414ee9fcc5
Fix wheel in sansa simulator, closes FS#7591
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14308 a1c6a512-1295-4272-9138-f99709370657
2007-08-13 09:43:50 +00:00
Jens Arnold
ea88571493
Fix red simulator builds. queue_broadcast() was missing...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14293 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 11:59:06 +00:00
Jens Arnold
729b25c326
Added iPod 1st/2nd gen simulator bits.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14202 a1c6a512-1295-4272-9138-f99709370657
2007-08-05 20:43:54 +00:00
Steve Bavin
abf3435ca7
Slightly less hacky sim queue_send(), fixes simulator crashes FS#7051 and FS#7245.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14113 a1c6a512-1295-4272-9138-f99709370657
2007-08-01 09:07:09 +00:00
Jonathan Gordon
fe142f1803
not to self: should recompile after adding comments...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14098 a1c6a512-1295-4272-9138-f99709370657
2007-07-31 11:50:56 +00:00
Jonathan Gordon
42e42226b8
working volume control in the sim
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14097 a1c6a512-1295-4272-9138-f99709370657
2007-07-31 11:41:42 +00:00
Kevin Ferrare
81aac2a430
Use multi-screen api for metronome plugin, and made it run in the simulator by implementing the timer functions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14046 a1c6a512-1295-4272-9138-f99709370657
2007-07-29 03:43:37 +00:00
Michael Sevakis
8584a6bb5d
Sim needs a duplicate of the button_get_data implementation.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13961 a1c6a512-1295-4272-9138-f99709370657
2007-07-22 21:17:19 +00:00
Nicolas Pennequin
3213d4a0f5
Add a verbosity level command line option to the chackwps tool. This should 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-07-22 17:17:53 +00:00
Michael Sevakis
e9baf604f9
Fix sim errors. Every extra byte feels guilt-free. ;)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13717 a1c6a512-1295-4272-9138-f99709370657
2007-06-25 20:58:15 +00:00
Michael Sevakis
dfeeeebee0
Fix some errors
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13322 a1c6a512-1295-4272-9138-f99709370657
2007-05-04 15:39:01 +00:00
Michael Sevakis
2aaf45e643
Get samplerate switching working in the sim to be similar to on target. Make all pcm functions available there as well.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13320 a1c6a512-1295-4272-9138-f99709370657
2007-05-04 15:14:56 +00:00
Nicolas Pennequin
6ac306a515
Add a new commandline switch to the simulator: "--debugwps". It enables 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-24 23:58:57 +00:00
Nicolas Pennequin
2e2cf06dc9
Oops. This shouln't have been added.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13252 a1c6a512-1295-4272-9138-f99709370657
2007-04-24 00:58:10 +00:00
Nicolas Pennequin
d7fd989319
WPS Parser: On parse failure, print a (hopefully) useful error message with 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-24 00:57:04 +00:00
Daniel Stenberg
f6209cc959
a little extra poke to get the sim to build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13215 a1c6a512-1295-4272-9138-f99709370657
2007-04-20 11:58:39 +00:00
Jens Arnold
0b7bb31453
Simplification, queue pointers don't wrap (except at INT_MAX, but the 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-14 09:47:47 +00:00
Jens Arnold
47bf6c5a5a
Moved archos backlight code to target tree. Changed old mutlivalue CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
2007-04-12 22:12:13 +00:00
Jens Arnold
54ea2e435e
Charcell lcd driver: Preparations for switching to non-immediate LCD updates, using lcd_update() like on bitmap targets. * Added proper clipping. * Simplified simulator code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12979 a1c6a512-1295-4272-9138-f99709370657
2007-03-31 09:58:49 +00:00
Steve Bavin
11fa3a871c
Implement remove_thread for SDL simulator
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12971 a1c6a512-1295-4272-9138-f99709370657
2007-03-30 16:02:42 +00:00
Jens Arnold
ad4e3d6657
First step of charcell LCD code rework: * Make it fully unicode aware so that adding non-ISO8859-1 scripts becomes possible (limited by the LCD capabilities of course). * Make the API more similar to the bitmap LCD code's API. * Moved hardware dependent parts to target tree. * Simplified code. * Jumpscroll temporarily non-functional.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12916 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 07:52:13 +00:00
Dave Chapman
467651ae76
Make the sim create_thread() function slightly closer to the real thing. #include "thread.h" in thread-sdl.c to ensure function prototypes are consistent. This now allows mpegplayer to run in the sim.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12901 a1c6a512-1295-4272-9138-f99709370657
2007-03-24 01:27:29 +00:00
Michael Sevakis
55392f7d3c
Perform the obligatory fix-the-sims dance.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12882 a1c6a512-1295-4272-9138-f99709370657
2007-03-21 23:33:49 +00:00
Jens Arnold
85a226d4e7
Rename some macros to account for the recently added M5 port. No code changes.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12809 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 23:02:39 +00:00
Michael Sevakis
c2d2106fd7
Audio Init: Just can't stand that heirarchy. Add one level of abstraction. Might come in handy anyhow. Use sound.h instead of the conditional includes for audio hardware headers. If someone doesn't like that, yell at my evil twin. :)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12718 a1c6a512-1295-4272-9138-f99709370657
2007-03-11 06:21:43 +00:00
Michael Sevakis
dee43ece20
Put an end to priority inversion in the ata driver. Gave up trying to have fully atomic dual use mutexes so just replaced the ata driver locking with spins. Maybe I'll have better luck later. Things should run smoothly with database updates and such happening in the background.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12688 a1c6a512-1295-4272-9138-f99709370657
2007-03-09 08:03:18 +00:00
Linus Nielsen Feltzing
e889480bbe
Make sure that the special simulator keys do not interfere with the button handler
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12629 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 22:35:19 +00:00
Linus Nielsen Feltzing
bf1797b4e5
Remove the annoying backlight debug output in the simulator
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12628 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 21:01:35 +00:00
Jens Arnold
4bd7531712
Actual M5 simulator image.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12625 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 18:36:17 +00:00
Linus Nielsen Feltzing
ec3f0d5e49
UI simulator: You can now toggle the main and remote hold switches with the h and j keys. It does not filter any keys, though, it mainly toggles the hold state, for WPS testing etc.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12624 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 14:48:31 +00:00
Jens Arnold
8876018d25
Bring up the M5 port to a working stage: Extended numerous explicit checks for IAUDIO_X5 to also check for IAUDIO_M5, moved code around the target tree, added preliminary background for the sim.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12610 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 00:04:00 +00:00
Daniel Ankers
82f9056988
Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
2007-03-04 20:06:41 +00:00
Jonathan Gordon
e6bf827a75
pressing u in the sim simulates usb. press u again to "disconnect"
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12437 a1c6a512-1295-4272-9138-f99709370657
2007-02-21 14:32:41 +00:00
Barry Wardell
ac6e19a90c
Fix build errors.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12416 a1c6a512-1295-4272-9138-f99709370657
2007-02-20 15:12:56 +00:00
Jens Arnold
3a37f46fc9
Fix CONFIG_BACKLIGHT warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
2007-02-18 10:07:27 +00:00
Jens Arnold
67eb154146
Removed 'mode' parameter from creat(). It wasn't pure posix anyway, it was ignored on target and mixed into 'oflags' in the simulator. * Simplified io.c a bit by defining a dummy O_BINARY for OSes which don't have that.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12179 a1c6a512-1295-4272-9138-f99709370657
2007-02-01 23:08:15 +00:00