| View previous topic :: View next topic |
| Author |
Message |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Tue Aug 07, 2007 2:07 am Post subject: Enabling speakers with headphones plugged in? (solved) |
|
|
Does anyone have any ideas on how to achieve it?
Apparently, it's possible in Talkman..
Last edited by deniska on Thu Nov 22, 2007 11:20 am; edited 1 time in total |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Tue Aug 07, 2007 6:52 pm Post subject: |
|
|
Hi!
I need to check it, but I have an idea on how to do it ;)
I will post a snippet of code in a few hours. :P
Cheers,
Adrahil |
|
| Back to top |
|
 |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Wed Aug 08, 2007 12:44 am Post subject: |
|
|
| this would be super! |
|
| Back to top |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Wed Aug 08, 2007 6:37 pm Post subject: |
|
|
Yes, would be great.
Btw do you know if there's a way to know whether the headphones are plugged in or not? _________________ Sorry for my bad english
Oldschool library for PSP - PC version released |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Wed Aug 08, 2007 10:29 pm Post subject: |
|
|
| Code: | if( sceHprmIsRemoteExist() ) { // check if remote is connected
if( sceHprmIsHeadphoneExist() ) // check if remote + headphones are connected
// do your madness
}
else
if(sceHprmIsHeadphoneExist() ) { // check if headphones are connected (WITHOUT REMOTE)
// do your madness
}
else
if(sceHprmIsMicrophoneExist() ) { // check if microphone is connected (WITHOUT REMOTE)
// do your madness
} |
_________________ 10011011 00101010 11010111 10001001 10111010
Last edited by dot_blank on Wed Aug 29, 2007 5:02 am; edited 1 time in total |
|
| Back to top |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Fri Aug 10, 2007 5:12 pm Post subject: |
|
|
Oh yesssssssssssssss so cool! I've gotta try this :)
This would make the psp a great audio player for silent rooms if we could pause the audio output when the headphones are accidentially plugged out ;)
Thank you veryyyy much :) _________________ Sorry for my bad english
Oldschool library for PSP - PC version released |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Sat Aug 11, 2007 7:43 am Post subject: |
|
|
| I keep getting problems with the code :/ Albeit the library is here, it will not link correctly. Time to update toolchain, i guess. |
|
| Back to top |
|
 |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Tue Aug 14, 2007 12:08 am Post subject: |
|
|
| adrahil wrote: | | I keep getting problems with the code :/ Albeit the library is here, it will not link correctly. Time to update toolchain, i guess. |
Can you post the code, so perhaps other people will be able to compile/link it? |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Aug 14, 2007 3:10 am Post subject: |
|
|
| dot_blank wrote: | | Code: | if( sceHprmIsRemoteExist() ) { // check if remote is connected
if( sceHprmIsHeadphoneExist() ) // check if remote + headphones are connected
// do your madness
}
else
if(sceHprmIsHeadphoneExist() ) { // check if headphones are connected (WITHOUT REMOTE)
// do your madness
} |
|
Just "FORCING" ;) them to return 0 will do the job? |
|
| Back to top |
|
 |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Mon Aug 20, 2007 1:15 pm Post subject: |
|
|
it appears that chopping off the tip of the audio plug connector does the job.
the serial port is still on while the speakers are not muted...
just make sure that you leave the other 2/3rds intact... |
|
| Back to top |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Mon Aug 20, 2007 5:56 pm Post subject: |
|
|
I'd like to thank dot_blank again, I can now automatically display a message when the headphones are plugged out. The game is paused, the sound muted, and you can select whether you want to disable sound or keep it playing (on the speaker). That's very cool :-) _________________ Sorry for my bad english
Oldschool library for PSP - PC version released |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Aug 21, 2007 1:03 am Post subject: |
|
|
| deniska wrote: | it appears that chopping off the tip of the audio plug connector does the job.
the serial port is still on while the speakers are not muted...
just make sure that you leave the other 2/3rds intact... |
That's what I call a dirty hack! |
|
| Back to top |
|
 |
hardfalcon
Joined: 19 Aug 2007 Posts: 5
|
Posted: Tue Aug 21, 2007 3:05 am Post subject: |
|
|
Playing music simultanously via both the PSP speaker AND the headphone jack is IMHO *very* dangerous for the PSP hardware, as this might easily surcharge the audio power amplifier/output stage of the PSP. The result would be a PSP without ANY music.
If you want a pull relief for the audio jack, I suggest you simply glue 2 Velcro strips onto your PSP.
If you want be able to use both headphones and loudspeaker at the same time, I'm afraid this won't be possible without any soldering inside the device... Anyhow, I don't see any good reason for using both at the same time...
//EDIT: @Deniska: If I understand you right, you simply chopped off the connector for the left audio channel.
http://en.wikipedia.org/wiki/TRS_connector#Tip.2Fring.2Fsleeve_terminology
The way the speakers are disabled when you plug your headphones in is quite simple: there's some sort of "button" (AFAIK a tiny little convex round metal plate under which are 2 contacts (one outer circle and one in the middle) which are connected when the tip of the plugged jack connector presses the plate onto both contacts). |
|
| Back to top |
|
 |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Tue Aug 21, 2007 5:40 am Post subject: |
|
|
| Actually, I only need the sound through the speakers so this hardware trick works fine for me... Basically, I just want to be able to use speakers while using the serial port for gps receiver communication... |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Aug 21, 2007 8:33 am Post subject: |
|
|
| hardfalcon wrote: | Playing music simultanously via both the PSP speaker AND the headphone jack is IMHO *very* dangerous for the PSP hardware, as this might easily surcharge the audio power amplifier/output stage of the PSP. The result would be a PSP without ANY music.
If you want a pull relief for the audio jack, I suggest you simply glue 2 Velcro strips onto your PSP.
If you want be able to use both headphones and loudspeaker at the same time, I'm afraid this won't be possible without any soldering inside the device... Anyhow, I don't see any good reason for using both at the same time...
//EDIT: @Deniska: If I understand you right, you simply chopped off the connector for the left audio channel.
http://en.wikipedia.org/wiki/TRS_connector#Tip.2Fring.2Fsleeve_terminology
The way the speakers are disabled when you plug your headphones in is quite simple: there's some sort of "button" (AFAIK a tiny little convex round metal plate under which are 2 contacts (one outer circle and one in the middle) which are connected when the tip of the plugged jack connector presses the plate onto both contacts). |
|
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Aug 21, 2007 9:52 am Post subject: |
|
|
Why the pointless quote?
Surely you realize that Deniska is playing audio through just the speakers (even though his headphone connector is in place) and so that quote is irrelevant.
Not that it matters either way. I strongly doubt you can damage the PSP's audio output stage by doubling the load. It's would be no different than plugging in a set of very low-impedance headphones, and Sony has certainly thought about that. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Aug 21, 2007 6:29 pm Post subject: |
|
|
Oops.
I meant to add my own words to it and agree with you.
ie. they are big words for a tiny amplifier,
and to add my own finding (have a spare brick):
There is a metal lever at the far end of the socket as already figured,
it is normally closed. Since I know this is on the left hand side of the
socket when looking into it with your PSP screen facing up,
you can avoid opening the switch by shaving only the left side of the tip
terminal. It may also stay connected, and I don't know what the result
of this will be.
on DIY serial plugs the headphone plug can be an effective switch
by rotating it 90 degrees, and the headphenes still work otherwise. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Aug 28, 2007 9:11 pm Post subject: |
|
|
| dot_blank wrote: | | Code: | if( sceHprmIsRemoteExist() ) { // check if remote is connected
if( sceHprmIsHeadphoneExist() ) // check if remote + headphones are connected
// do your madness
}
else
if(sceHprmIsHeadphoneExist() ) { // check if headphones are connected (WITHOUT REMOTE)
// do your madness
} |
|
Thanks, but do you know a similar command for the mic?
I have seen the original PSP input recording app detects the mic.
Art. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Aug 28, 2007 10:13 pm Post subject: |
|
|
| Art wrote: | | dot_blank wrote: | | Code: | if( sceHprmIsRemoteExist() ) { // check if remote is connected
if( sceHprmIsHeadphoneExist() ) // check if remote + headphones are connected
// do your madness
}
else
if(sceHprmIsHeadphoneExist() ) { // check if headphones are connected (WITHOUT REMOTE)
// do your madness
} |
|
Thanks, but do you know a similar command for the mic?
I have seen the original PSP input recording app detects the mic.
Art. | mic in the headphone port? |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Aug 28, 2007 10:48 pm Post subject: |
|
|
yes,
I tried the obvious:
sceHprmIsMicrophoneExist
but doesn't work.
EDIT... oh, of course it is. all of these are defined in PSPHPRM.h,
but the lib has to be included ;) |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Wed Aug 29, 2007 5:00 am Post subject: |
|
|
EDIT _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Nov 22, 2007 5:28 am Post subject: |
|
|
| dot_blank wrote: | | Code: | if( sceHprmIsRemoteExist() ) { // check if remote is connected
if( sceHprmIsHeadphoneExist() ) // check if remote + headphones are connected
// do your madness - DONE
}
else
if(sceHprmIsHeadphoneExist() ) { // check if headphones are connected (WITHOUT REMOTE)
// do your madness - DONE
}
else
if(sceHprmIsMicrophoneExist() ) { // check if microphone is connected (WITHOUT REMOTE)
// do your madness - DONE
} |
|
It made Absolutely NO difference!
All three Return 0 but still no sound! :(
Guess, Adrahil is our LAST hope. _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Nov 22, 2007 6:37 am Post subject: |
|
|
| KickinAezz wrote: | | dot_blank wrote: | | Code: | if( sceHprmIsRemoteExist() ) { // check if remote is connected
if( sceHprmIsHeadphoneExist() ) // check if remote + headphones are connected
// do your madness - DONE
}
else
if(sceHprmIsHeadphoneExist() ) { // check if headphones are connected (WITHOUT REMOTE)
// do your madness - DONE
}
else
if(sceHprmIsMicrophoneExist() ) { // check if microphone is connected (WITHOUT REMOTE)
// do your madness - DONE
} |
|
It made Absolutely NO difference!
All three Return 0 but still no sound! :(
Guess, Adrahil is our LAST hope. |
That code simply checks for the remote/headphone/microphone. It was posted in response to Brunni's question on how to tell if anything is plugged in.
| Brunni wrote: |
Btw do you know if there's a way to know whether the headphones are plugged in or not? |
So it has nothing at all to do with enabling the speakers with the headphones plugged in. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Nov 22, 2007 7:03 am Post subject: |
|
|
| J.F. wrote: |
So it has nothing at all to do with enabling the speakers with the headphones plugged in. |
That makes it CLEAR! :D _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Thu Nov 22, 2007 11:19 am Post subject: |
|
|
Actually, the latest version of mapThis (0.520) enables speakers even if the phone plug is in (no cutting of the audio plug tip required).. The code can be found here: http://www.dcemu.co.uk/vbulletin/showthread.php?t=79825
The code works on ta-79 and slim psp (that I have at my displosal) as long as it's ran under m33 3.xx firware (tested with 3.52 & 3.71) |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Nov 22, 2007 11:41 am Post subject: |
|
|
| deniska wrote: | Actually, the latest version of mapThis (0.520) enables speakers even if the phone plug is in (no cutting of the audio plug tip required).. The code can be found here: http://www.dcemu.co.uk/vbulletin/showthread.php?t=79825
The code works on ta-79 and slim psp (that I have at my displosal) as long as it's ran under m33 3.xx firware (tested with 3.52 & 3.71) |
siogps.h's functions do that?
Wow. Great work! _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Fri May 16, 2008 4:04 pm Post subject: |
|
|
I'm finally able to confirm that Talkman does it, but I guess it's already sorted.
Talkman would have to be the most unfortunate PSP title.
It doesn't get anything right. _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
|