GP2X F200 Test


It didn't work because I only got the latest gpe, and missed the post where you linked to the resources.

http://homepage.ntlworld.com/kevcallahan/a...ion/abdtest.zip

After adding those, everything runs fine. The 22050 frequency works on F200s with libs like libmikmod or SDL_mixer. I think 11025 works too. Allegro shouldn't be any different, I'm sure the F200 testers either missed the actual sound files like I did, or tried running the 16000 frequency first.
 
Mmmm.. well at least the F100 _is_ okay :) I was getting very worried(!).
I use 22050Hz for all samples usually - but didn't know whether Allegro may be up or down sampling them dependant on what the sound driver reported...

I'll wait to hear back on the F200 tests..

Can people check they have -

CODE
test/abdtest.gpe
test/fonts/arial.ttf
test/samples/test.mod
test/samples/test_16000hz.wav
test/samples/test_16500hz.wav
test/samples/test_22050hz.wav


in their file structure .. I think you have though.
 
Hi kevcal!

All 3 versions are running fine on my F-100.
None of the 3 are working on my F-200.
Version 1+2 black screen and static noise. Version 3 grid screen with freeze, static noise and no interaction possible. No output due freeze.
File structure checked.

Rafkill and BunkerMaster are not working on my F-200.

Regards,
Stephan
 
Excellent - that knocks the F100 problem on the head then (phew!) :)

Okay, is there any way of running version 3 and piping stdout to a file on an F200?
That info would tell me what line within my application it gets to.. I guess the allergo init_sound() call...

If I get to a point that someone can get that info, I can fill the relevant allegro routine with trace messages to figure out exactly where it's failing and fix it (I hope). WHich could mean a quick release of a new allegro static library and a recompile of allegro-based games will sort them out as well (depends on where the fault lies I guess).

This is great people, thanks for the support!

EDIT: There's now abdtestgpe4.zip for anyone that can get printf output into a file - otherwise it's the same test (just trace functions in the install_sound() function in allegro).
 
Hmm, I think stdout is not possible. Due to the freeze there might be no SD card syncing I guess...

I traced the serial output instead. I have no idea, if this is what you want:

CODE
close..... touch
abdtest.cc - main(), Line 287
abdtest.cc - main(), Line 290
abdtest.cc - main(), Line 292
abdtest.cc - main(), Line 294
abdtest.cc - main(), Line 296
abdtest.cc - main(), Line 298
abdtest.cc - main(), Line 300
abdtest.cc - main(), Line 303
abdtest.cc - main(), Line 307
abdtest.cc - main(), Line 312
abdtest.cc - main(), Line 314
screen=0028e518
PAGE FLIPPING - 2x VIDEO BITMAPS 320x240
abdtest.cc - main(), Line 328
abdtest.cc - main(), Line 332
abdtest.cc - main
abdtest.cc - main(), Line 337
abdtest.cc - main(), Line 339
abdtest.cc - main(), Line 344
Allegro: ./src/sound.c - install_sound(), Line 307
Allegro: ./src/sound.c - install_sound(), Line 314
Allegro: ./src/sound.c - install_sound(), Line 320
Allegro: ./src/sound.c - install_sound(), Line 324
Allegro: ./src/sound.c - install_sound(), Line 333
Allegro: ./src/sound.c - install_sound(), Line 336
Allegro: ./src/sound.c - install_sound(), Line 339
Allegro: ./src/sound.c - install_sound(), Line 344
Allegro: ./src/sound.c - install_sound(), Line 348
Allegro: ./src/sound.c - install_sound(), Line 352
Allegro: ./src/sound.c - install_sound(), Line 356
Allegro: ./src/sound.c - install_sound(), Line 360
Allegro: ./src/sound.c - install_sound(), Line 363
Allegro: ./src/sound.c - install_sound(), Line 366
Allegro: ./src/sound.c - install_sound(), Line 373
Allegro: ./src/sound.c - install_sound(), Line 379
Allegro ./src/sound.c - install_sound(), Line 399
Allegro: ./src/sound.c - install_sound(), Line 404
Set rate error
Set rate error
Set rate error
Set rate error



Regards,
Stephan
 
sbock said:
Hi kevcal!

All 3 versions are running fine on my F-100.
None of the 3 are working on my F-200.
Version 1+2 black screen and static noise. Version 3 grid screen with freeze, static noise and no interaction possible. No output due freeze.
File structure checked.

Rafkill and BunkerMaster are not working on my F-200.

Regards,
Stephan
o2em_gp2x (also uses allegro) is also not working on the F200 (I only now this because I've just had an email about it as I was the one that ported it to the gp2x). Apparently it gives a black screen and a buzzing noise.

Would be great to get this fixed!
 
Last edited by a moderator:
Yeah, sounds like a standard problem then...
Will do my best to figure it out.

The excellent trace output from sbock will help I think :)
@sbock - Yeah that's the information I was after.
From a cursory glance, looks like it doesn't like any of those frequency rates..

Am loading up laptop to have a look as I type - will hopefully have a better idea soon (probably tomorrow now), 9.30pm here; need a coffee :)

EDIT:
Okay I know 'where' it's failing, it's trying to autodetect the digital driver...
Appears it loops through trying 4 of them then (I guess) crashes out and/or locks up...

EDIT2:
Curious
FW 2.1.0 (in the kernel .config file) enables MP2520F_AC97
FW 4.0.0 enables that and WM97XX

EDIT3:
Which is the touch-screen driver - false alarm.. (for some reason listed under sound drivers)

EDIT4:
mp2520f-ac97.c has a fair few bits specific to the F200 (#ifdef) - I need to get onto a linux box to do some diffs.
All changes I could see were to do with detecting the audio(?) jackplug inserted or not - have they fixed something on the F200 to do with this??

I'll investigate further - I'm hoping we may have a method where it doesn't auto-detect the driver, but we implicitly define the one we want (ie just add an allegro.cfg file) - looks like they're different in some way between the F100 & F200.. the hardware's the same I guess..???

Will compare the source code for drivers/sound/mp2520f*.[ch] between FW versions 2.1.0 and 4.0.0 tomorrow..
Unless someone else knows anything about this/wants to look - I'm just guessing at all this you know(!).

Kev
 
Okay, have had another look at the trace sbock supplied and what comes out for the F100.
I now have definitely found where the F200 is failing compared to the F100.
The F200 fails when it tries to autodetect the sound driver, the F100 trace continues:CODE
:
Allegro: ./src/sound.c - install_sound(), Line 379
Allegro: ./src/sound.c - install_sound(), Line 399
Allegro: ./src/sound.c - install_sound(), Line 404 -- here the F200 creates 'set rate error' messages and 'stops
Allegro: ./src/sound.c - install_sound(), Line 416
Allegro: ./src/sound.c - install_sound(), Line 424
Allegro: ./src/sound.c - install_sound(), Line 432
Allegro: ./src/sound.c - install_sound(), Line 437
Allegro: ./src/sound.c - install_sound(), Line 459
Allegro: ./src/sound.c - install_sound(), Line 463
Allegro: ./src/sound.c - install_sound(), Line 483
Allegro: ./src/sound.c - install_sound(), Line 490
Allegro: ./src/sound.c - install_sound(), Line 508
Allegro: ./src/sound.c - install_sound(), Line 521
Allegro: ./src/sound.c - install_sound(), Line 534
Allegro: ./src/sound.c - install_sound(), Line 548
Allegro: ./src/sound.c - install_sound(), Line 552
Allegro: ./src/sound.c - install_sound(), Line 568
Allegro: ./src/sound.c - install_sound(), Line 582
Allegro: ./src/sound.c - install_sound(), Line 589
Allegro: ./src/sound.c - install_sound(), Line 594
Allegro: ./src/sound.c - install_sound(), Line 597
abdtest.cc - main(), Line 351
For interest:
Looking at the mp2520 driver code -
A very minor change to mp2520f-audio.c with a call to GetTVCheck() which seems to change the GP2X's amp output dependant on connection to a TV (I guess as can't be bothered to trace the code).
However mp2520-ac97.c has many changes for the F200, many of which I don't understand :)
Interestingly there is mention of a left right channel change bug in both drivers - a bug we've noticed sometimes in F100s..

I guess the next job is to examine what drivers are tried when in allegro we call:
install_sound(DIGI_AUTODETECT, MIDI_NONE, NULL);
and see what the difference is..

Excuse the long posts, but I'm using this thread to remind me of where I've got to..
 
Okay I have another abdtest.gpe ; on my F100 the output is:CODE
:
Allegro: ./src/sound.c - install_sound(), Line 373
Allegro: ./src/sound.c - install_sound(), Line 379
Allegro: ./src/sound.c - install_sound(), Line 399
AVAILABLE AUDIO DRIVERS
#0 id=4f535344 Open Sound System
Allegro: ./src/sound.c - install_sound(), Line 410
Trying AUDIO DRIVER #0, 4f535344
Allegro: ./src/sound.c - install_sound(), Line 426
Allegro: ./src/sound.c - install_sound(), Line 432
Allegro: ./src/sound.c - install_sound(), Line 441
:
Can someone (sbock?) try the new one on the F200 for me and post the resultant output again?
Hopefully that will give me some direction as to what to look at next :blink:

Link: abdtestgpe5.zip
Err - may not be there for a while - no ftp access at work... unless I can find a way round the proxy...
 
File not online as I am posting this... at work too but should be able to test it easily, just let me know!


FYI: SenorQuack had a bug in UQM 1.1 that made it not work on the F200 (black screen and buzz) he said it had to do with his ASM Ogg decoder and/or his custom SDL libs... not sure if that helps or not.
 
Worth knowing about ..
No the file's not online - maybe in 4 hours or so when I finish work... :(
Unless someone knows how to ftp to my site without using port 21...

Note to anyone who has the capability -
Try install_sound(DIGI_OSS, MIDI_NONE, NULL); at startup and see if that works (shot in the dark pending F200 log output).
 
QUOTE
Unless someone knows how to ftp to my site without using port 21...


SSH tunnel through port 80? =)

QUOTE
Note to anyone who has the capability -
Try install_sound(DIGI_OSS, MIDI_NONE, NULL); at startup and see if that works (shot in the dark pending F200 log output).



at startup? not sure what you mean there...
 
There's now abdtestgpe5.zip available for someone to test please (sbock?)
It's the same code as abdtest4.gpe but more debug/trace.
So unless you can give me trace output, probably little use running it.
Interesting to see if it's attempting OSS first and failing, so trying another sound driver or whether something else is happening...
Must admit, sound has always 'just worked' with allegro in the past - had more experience with the gfx side of things to get working on different hardware.
 
Well how I do it on the F100 is different - ie I can telnet into the F100 via usb connection from windows..
I think to get 'trace output' as sbock has you need a gp2x -> serial cable or the cradle I guess - then you can monitor what comes out via hyperterminal (or whatever). Also I think you can 'do stuff' via serial - saw a recent thread on this forum to do with this...
Thread: http://www.gp32x.de/board/index.php?showtopic=40050&hl=

EDIT: looks like you beat me to it :)
 
Last edited by a moderator:
CODE
close..... touch
abdtest.cc - main(), Line 287
abdtest.cc - main(), Line 290
abdtest.cc - main(), Line 292
abdtest.cc - main(), Line 294
abdtest.cc - main(), Line 296
abdtest.cc - main(), Line 298
abdtest.cc - main(), Line 300
abdtest.cc - main(), Line 303
abdtest.cc - main(), Line 307
abdtest.cc - main(), Line 312
abdtest.cc - main(), Line 314
screen=0028e518
PAGE FLIPPING - 2x VIDEO BITMAPS 320x240
abdtest.cc - main(), Line 328
abdtest.cc - main(), Line 332
abdtest.cc - main(), Line 335
abdtest.cc - main(), Line 337
abdtest.cc - main(), Line 339
abdtest.cc - main(), Line 344
Allegro: ./src/sound.c - install_sound(), Line 307
Allegro: ./src/sound.c - install_sound(), Line 314
Allegro: ./src/sound.c - install_sound(), Line 320
Allegro: ./src/sound.c - install_sound(), Line 324
Allegro: ./src/sound.c - install_sound(), Line 333
Allegro: ./src/sound.c - install_sound(), Line 336
Allegro: ./src/sound.c - install_sound(), Line 339
Allegro: ./src/sound.c - install_sound(), Line 344
Allegro: ./src/sound.c - install_sound(), Line 348
Allegro: ./src/sound.c - install_sound(), Line 352
Allegro: ./src/sound.c - install_sound(), Line 356
Allegro: ./src/sound.c - install_sound(), Line 360
Allegro: ./src/sound.c - install_sound(), Line 363
Allegro: ./src/sound.c - install_sound(), Line 366
Allegro: ./src/sound.c - install_sound(), Line 373
Allegro: ./src/sound.c - install_sound(), Line 379
Allegro: ./src/sound.c - install_sound(), Line 399
AVAILABLE AUDIO DRIVERS
#0 id=4f535344 Open Sound System
Allegro: ./src/sound.c - install_sound(), Line 410
Trying AUDIO DRIVER #0, 4f535344
Set rate error


Regards,
Stephan
 
Back
Top