ggi
Still Fresh
When I connect headphones to my GP2X they work, but sound continues to come from the speakers built into the unit. This has been reported in a couple of other threads, with the speculated cause being either poor soldering on the headphone jack or firmware problems.
I noticed the 'Headphone jack detect' GPIO connection on the wiki page, so I started mucking around with the example GPIO-using program this afternoon and produced a program that tests the 'Headphone jack detect' connection. I'm hoping someone with a GP2X (firmware 1.0.1 preferred, as that's what I'm using) and a nearby pair of headphones can test it for me and report back with the output. It's just a console program, so you'll need to run it in STerm.
Headphone test program
C source code
I've included a link to the source just so you can be sure that there's no chicanery afoot. I compiled the binary with
When I run it I get
Showing that the headphone jack detect isn't working for me, providing my test program is correct. I'm not really a capable solderer*, so I guess I'll have to send it back to GBAX if it turns out to be a problem with the soldering on the headphone jack.
Thanks in advance to anyone who tests this.
* Well, my Xbox / Modchip / Solder / Blu-tac experience has given me a pathological fear of solder.
I noticed the 'Headphone jack detect' GPIO connection on the wiki page, so I started mucking around with the example GPIO-using program this afternoon and produced a program that tests the 'Headphone jack detect' connection. I'm hoping someone with a GP2X (firmware 1.0.1 preferred, as that's what I'm using) and a nearby pair of headphones can test it for me and report back with the output. It's just a console program, so you'll need to run it in STerm.
Headphone test program
C source code
I've included a link to the source just so you can be sure that there's no chicanery afoot. I compiled the binary with
Code:
arm-linux-gcc -Wall headphone-test.c -o headphone-test.gpe -lm -lg -static -pthread
When I run it I get
Code:
/dev/mem opened successfully - fd = 9
mmap(0, 10000, 3, 1, 9, C0000000) ... OK! (40001000)
Headphones unplugged...
2048 (unplugged)
Please plug in some headphones and press X.
Headphones plugged in...
2048 (unplugged)
test complete
Showing that the headphone jack detect isn't working for me, providing my test program is correct. I'm not really a capable solderer*, so I guess I'll have to send it back to GBAX if it turns out to be a problem with the soldering on the headphone jack.
Thanks in advance to anyone who tests this.
* Well, my Xbox / Modchip / Solder / Blu-tac experience has given me a pathological fear of solder.