bypass headset earphone jack switch - General Questions and Answers

Hi,
Before I start creating an application that would bypass the headset earphone jack switch(the one the activates once you insert a headset), I would like to know or find out first, if it is programatically possilble to bypass this manually by a registry setting or an application. If yes, kindly advice as to where I should start.

I found similar application while searching for solution to
fix sound problem while using VOIP on Titan/Mogul
and other HTC devices. It was writen for ETEN but
to my disapoitment doesnt work on the Titan
http://www.eten-users.eu/lofiversion/index.php/t8854.html

lifeisfun said:
I found similar application while searching for solution to
fix sound problem while using VOIP on Titan/Mogul
and other HTC devices. It was writen for ETEN but
to my disapoitment doesnt work on the Titan
http://www.eten-users.eu/lofiversion/index.php/t8854.html
Click to expand...
Click to collapse
tnx, this application works w/ my device but i don't see the capability toggle the headset profile.

up up up...

up up up...

any takers or brave soul out there?

Hi,
As I understand it the HTC models that do have an FM Radio build in can switch the FM Radio output the the main speaker even while the headset is plugged in. It needs to be pluggen in; it's theis antenne. So my guess is that it must be possible. I myself would be very interested in such a program.
Good luck, hope you'll sucseed,
Cheers,
Cactus

le_cactus said:
Hi,
As I understand it the HTC models that do have an FM Radio build in can switch the FM Radio output the the main speaker even while the headset is plugged in. It needs to be pluggen in; it's theis antenne. So my guess is that it must be possible. I myself would be very interested in such a program.
Good luck, hope you'll sucseed,
Cheers,
Cactus
Click to expand...
Click to collapse
yup
anybody out there who could point me in the right direction? where should i start...?

still no luck on this - pls help, even just to point us in the right direction
i've search desperately but no luck i know it is possible; first because the built fm radio application can stream through both speaker and earphone. second, i run into a bluetooth app that can divert/stream audio(not only calls). this leads me to conclude, that is it possible. i just don't have infos i need to create one. i've read many msdn articles, tutorials but still no luck that is specific.
please to all the programmers out there, help us. this is just a very simple app and it would hurt 5mins of your time just to point me in the right direction. I am most willing to view/review servelar even tons of source codes that is very similar or close to the solution we are looking for, you just have to share it to us. thank you. i hope somebody out there could help us.

adomila said:
Hi,
Before I start creating an application that would bypass the headset earphone jack switch(the one the activates once you insert a headset), I would like to know or find out first, if it is programatically possilble to bypass this manually by a registry setting or an application. If yes, kindly advice as to where I should start.
Click to expand...
Click to collapse
In the registry:
HKLM/System/State/Hardware
change the key "Headset" 0 to 1.
but the headphones works like antenna and you dont hear any radio station.

ryomahino said:
In the registry:
HKLM/System/State/Hardware
change the key "Headset" 0 to 1.
but the headphones works like antenna and you dont hear any radio station.
Click to expand...
Click to collapse
thank you ryomahino, for taking time to reply. i'm already aware of this registry work around and have done this already, but the hardware switch still persists. aslo sometimes or when you reset, it does not persists. so the only solution is having at switch, that will run the audio both on the headset and speaker, pretty much like what the fm radio does, but must also work on calls, together with the microphone. im pretty sure this is very much simple for those experience programmers out there. if we put together that fm radio and bluetooth audio capability then this would work. just need a little push/help as to where start. or if I could look into those source codes then we are ready to go...

technical question on fm radio app
Gurus/programmers/anybody,
Does anybody know, or at the least, give me an idea, as to how the o2 xda atom build in fm radio application, programmatically (technically) toggle from stereo headset to speaker? Just even, point me to the right direction, pls, I'll read tons of infos, if need be...

Had same problem on my Raphael, here is what I did:
http://forum.xda-developers.com/showthread.php?t=444581
Maybe this or similar would help you as a workaround too.....

this app would be great for htc touch hd!
i use normal 3,5inch headphones to listen to music but when i do a call i always have to plug them out! would be nice to have an app that automatically disables headset when you are in a call so you can have your headphones attached but still talk with the phone!

Moved to Q&A section

Related

MDA compact ./. THB Bury Carkit: Problem with Patch

HI everyone,
first post
There is a Patch for enableing the THB carkit to provide a proper muting of the radio. This patch is really slow. This means that it takes at least 2 sec. to mute the radio. This is no problem while using the phone, but it is while using TomTom Navigator.
Now heres what I hope you can do or already did:
Either maybe someone has a better (faster) patch or maybe it is possible to let the TomTom application somehow never use the tel. mute function so that the build in speaker is used.
Thank sou for your answers...
best,
ben
nobody?
Thank you all anyway....
best.
ben
So, what is this pacth doing exactly? Where do you got it from?
For which car kit is ths patch?
I`m using a THB Bluetooth Car kit, but without muting radio, so i can not test it or say anything about it...
Stefan
Thank you for your reply,
the patch is for the dedicated phone specific cradle wich is available from THB for the MDA compact. The pacth is obviously needed for muting the radio at all. In fact the car kit doesn´t recognise the phone "is in a call" without the patch.
Heres my actual idea:
It seems that only some kinds of audio files are supported for beeing routed to the car kit. E.G. an *.wma doesn´t activate the muting even with the patch. So I´ll try to convert all TomTom5 announcments into *.wma so that they are not routed to the car kit and therewith don´t mute the radio. This is, if it works, an easy and acceptable workaround.
I´ll post wether it worked later.
I´d appreciate anyone having a better or diffrent solution and posting it here.
best,
ben
Hi Ben,
I'm still waiting for my THB carkit and cradle, so I can't help you at this very moment.
What I wanted to know about this kit: is it possible to play music via the radio??
Playing Music
Hi corny749,
you actually are able to listen to music with the carkit. Unfortunately the music is filtered just as a phonecall is by the blackbox. This means that the audio frequencies are not transmitted linear. So the music doesn´t sound very good.
However I hope to here from you in the future. Maybe you´ll find a solution for the patch problem.
best,
ben

[found!] Stereo headset (re)connection app requested !

Solution found: use battery status. In its last builds it has an option to enable A2DP directly by pressing BT tray icon
---------------------------------------------------
Hi mates,
Does everybody has the same problem with BT profiles ?
It goes well from stereo (listening music) to headset (calling) profile, when a call is incoming. But when the call is ended, or if you disabled bluetooth meanwhile (or turned off the headset), you must go to BT options, devices, then tap 'n hold the headset and set it as wireless stereo. Quite a long operation for a simple task, I had in mind that someone could write a cmd-line app which would do this ?
I had once a rom/a2dp patch/reg values combination that worked well with calls ending -> music goes on. But thus it didn't automatically connect the headset (as wireless stereo) on first start. Maybe this is by design, to avoid cutting off the sound coming out from the pda each time you activate BT, but it's annoying to me
So..... Am I the only one ?
Niko
ps: Vijay's VJVolubilis almost do this, but only for headset profile AFAIK
No, the 'not-returning a2dp club' is full of people... you can be the mr. president if you want...
I had the same problem. I returned my BT stereo headset because of the same problems. I'm done with A2DP.
FYI, I asked a few authors to check if they can do something about this.
So you may follow the development of those apps if you're interested in a one-click A2DP Stereo connection : AEBPlus, Battery Status and VJVolubilis.
I'll try to post again when something new is coming.
Ah... have any of you guys tried the later A2DP patches?
And why not just use the bluetooth button to reconnect wireless stereo?
I don't have any hardware button, nor any icon (except the one from battery status) associated to bluetooth. Would you please detail what you were talking about ? If it's an icon, could you try to extract the corresponding exe ?
I tried many A2DP patches, not sure if they are the latests or not, but none provided automatic stereo reconnection, at least when I just turned my headset (or bluetooth) on. Since I do that often....
I mean the button on your bluetooth headset. Click it once to connect; sometimes it needs another click to activate wireless stereo. I know not every headset supports this, but an A2DP headset should.
You might have to set wireless stereo once from the device, but after that, the headset should activate using its button the next time.
Resume problem should be fixed with the AKU3+ A2DP patches. Again, YMMV.
Note: Sorry for the double-post... site's really slow.
joe_dude said:
I mean the button on your bluetooth headset
Click to expand...
Click to collapse
It doesn't have one..... it automatically connect, but in headset mode (phone), not stereo
I'll try to test with another one in a shop.
joe_dude said:
Resume problem should be fixed with the AKU3+ A2DP patches. Again, YMMV.
Click to expand...
Click to collapse
Sorry but.... YMMV ? ^^
Didn't try AKU3.x yet, have you hear good reports from prophet users ? I haven't at that time..
I'll give it a try (or WM6) when my device will be back from warranty
See comment #26. Certainly not conclusive based on one report. I've never encountered the problem, so....
http://forum.xda-developers.com/showthread.php?t=284344&page=3
It doesn't have a button? How does it answer phone calls then? Or the button pops up the phone app on the first press instead of just connecting?
The main button can answer calls, or end a current call.
Its second ability is to turn on/off the headset
I have AVRCP buttons for next/prev music operation, and one of them can dial the last number when pressed for a long time.
I guess I can also reject a call, can't remember how, but the connection thing is supposed to be automatic (Already tried to press buttons to check if it would (re)connect...)
Since it's kind of noname headset (CallStell), I won't even try to request help from them ^^
hum, that's it
ps: What does YMMV stands for ?
I'll give a try to that new patch. Interesting thread btw ! Can't read it completely by now, can I try that patch if I'm still on AKU2.x rom ?
Hmmm... my guess is that the power button or the call answer button should (re-) connect the headset once you have done it once manually ("set as wireless stereo"). Or maybe not.
There are two versions on that thread - one is from AKU 3.3, the other is from WM6. Not much difference between the two, but they are both better than the older Tornado patch in terms of compatibility, IMHO. Either can be used for any version of Prophet AKU 2.0 and up.
Oh, YMMV - your mileage may vary.
please explain more about installation.
where can i get ruu file for prophet?
meykou, just go through this thread:
http://forum.xda-developers.com/showthread.php?t=284344
Makes a lot more sense if you read it from the beginning. Hard to explain otherwise.
joe_dude said:
Hmmm... my guess is that the power button or the call answer button should (re-) connect the headset once you have done it once manually ("set as wireless stereo"). Or maybe not.
Click to expand...
Click to collapse
I once tried many A2DP patches/few rom versions and player combinations.
I got different results, few were very poor, most of 'em was pretty nice.
But it always missed at least 1 thing ^^
Either the sound quality, the resume-after-call or the sound-drop **** ^^
But I'm not sure anymore if I managed to get rid of the latter at least once.. but it was not that bad, one sound drop every 2 songs, for 1 or 2s., or so... still anoying, but usable.
Oh, and what I first wanted to say, I tried to reconnect via the main button, but no results. I should try with another headset, btw. What's yours ? And would you advise me to buy it ?
joe_dude said:
There are two versions on that thread - one is from AKU 3.3, the other is from WM6. Not much difference between the two, but they are both better than the older Tornado patch in terms of compatibility, IMHO. Either can be used for any version of Prophet AKU 2.0 and up.
Oh, YMMV - your mileage may vary.
Click to expand...
Click to collapse
Oh, ok
I downloaded both of them, and will give a new try to every combination I can figure out as soon as I have more time.
Thanks for your answers btw. I'll keep posting if a software solution is found.
And I'm quite sure that meykou only wants a working-one-click-install WM6 rom
Well, good luck. I'm using the i.Tech R35, BTW.
A2DP + Prophet + Music resume
Wow! It works.
It took time for me to realise that it resumes music after a little pouse.
I need to push button only once to cancel the phone call.

Old A2DP routines don't work on new phone

Hi,
I hope somebody can help with this. I've got a new pocket-pc phone with WM6 that says it's got A2DP built in but I cannot use my old bluetooth headsets with it for audio because it greys-out the audio device option.
My headsets (I have three) all work with my Universal using the A2DP patches. The sound is not perfect but acceptable for my purposes.
But nothing works on this new phone (Ubiquio 503g). I've checked all registry keys as well and they all seem to match the Tornado patch instructions.
What else can I try? Any help appreciated.
Thanks.
wovens said:
Hi,
I hope somebody can help with this. I've got a new pocket-pc phone with WM6 that says it's got A2DP built in but I cannot use my old bluetooth headsets with it for audio because it greys-out the audio device option.
My headsets (I have three) all work with my Universal using the A2DP patches. The sound is not perfect but acceptable for my purposes.
But nothing works on this new phone (Ubiquio 503g). I've checked all registry keys as well and they all seem to match the Tornado patch instructions.
What else can I try? Any help appreciated.
Thanks.
Click to expand...
Click to collapse
First, are you speaking of non-A2DP, mono headsets or A2DP, stereo headphones ?
Thanks for your answer. Yes, I am speaking of non-A2DP, mono headsets. Sorry I was not very clear on first post. That's what I mean. I've used these same headsets before with Uni and had sound of sorts from media players coming through it.
wovens said:
Thanks for your answer. Yes, I am speaking of non-A2DP, mono headsets. Sorry I was not very clear on first post. That's what I mean. I've used these same headsets before with Uni and had sound of sorts from media players coming through it.
Click to expand...
Click to collapse
Unfortunately, different models require different ghacks to do this as has also been explained in the Wiki (see http://wiki.xda-developers.com/inde...t using traditional (mono) Bluetooth headsets )
All in all, checkout the Wiki above
Thanks. I'll try the wiki and hope for the best.
_________________________
If anybody is interested, as my phone has Microsoft’s BT Stack, I’ve tried:
1)- Built in A2DP - option for bt audio greyed out.
2)- Tried with TP.com BTAudio.cab - it installs but sound is muted (or disappears in the ether) when I transfer sound to headset.
3)- Tried with 1Enable_A2DP.cab and 2Enable_A2DP.cab and the system say it cannot install them full stop.
4)- Tried with Tornado’s BTAudioToggle routine and registry changes - behaves the same as in option 2. (Realised after doing option 5 that it is same as BTAudio810)
5)- Read the wiki on http://wiki.xda-developers.com/index.php?pagename=TUTORIAL%3A%20Everything%20you%20need%20to%20know%20about%20using%20traditional%20%28mono%29%20Bluetooth%20headsets and discovered that I had tried most of the options there already.
6)- Did not try the “Teksoft’s Blue Music” yet, may give it a go later.
7)- and last, tried BTAudioNav with no luck either. (same behaviour as option 2).
I wanna cry!
= =
o)(o
'
'
'

[Q] FM Radio without headset on Android.

Hi,
I own a GT540 on Android 2.1.
I was wondering if it's possible use the FM radio without headset? It appears, on Windows Mobile, you can tweak the registry to allow this. Is there's a software level solution to make FM Radio work without headset on Android?
Yes, I'm aware that headset acts as an antenna and you need it to get a good reception. But, at times, it would be convenient to use the FM Radio without headset even if the signal is weak.
It's also possible to insert a fake plug to make it appear that a headset is present but am looking for a software solution.
On my Huawei U8110 it is enough to put in just jack, without any cables ... it works very well
DJ_Uro_UE said:
On my Huawei U8110 it is enough to put in just jack, without any cables ... it works very well
Click to expand...
Click to collapse
Thanks. I know that just pushing something that fakes a headset is enough. But, am looking for a software solution.
hi ... i dnt knw yet any software like tht ... bt if u wnt to listen radio via wifi or 3g without headset so there is app called "tune In radio"
xperia9191 said:
hi ... i dnt knw yet any software like tht ... bt if u wnt to listen radio via wifi or 3g without headset so there is app called "tune In radio"
Click to expand...
Click to collapse
Data is expensive here and wifi can taken granted only at home/school/office.
yes, Data is expensive. have been searching the same for awhile. no clue.
My previous Wm6.5(Aer S200) does the job.
still looking and waiting for solution
Hmm, I will try stalking AOSP when I get the time.
nibras_reeza said:
Hi,
I own a GT540 on Android 2.1.
I was wondering if it's possible use the FM radio without headset? It appears, on Windows Mobile, you can tweak the registry to allow this. Is there's a software level solution to make FM Radio work without headset on Android?
Yes, I'm aware that headset acts as an antenna and you need it to get a good reception. But, at times, it would be convenient to use the FM Radio without headset even if the signal is weak.
It's also possible to insert a fake plug to make it appear that a headset is present but am looking for a software solution.
Click to expand...
Click to collapse
The app would have to support this, although hypothetically the system software could be modified to fool the app. Or if you could somehow crash or otherwise disable the code that detects headphone jack insertion events that could work.
I HAVE found this annoying with the HTC app. I've developed an FM app that doesn't have this restriction. See my sig for details.
On my HTC Legend I can receive some strong stations OK with no antenna. My HTC Desire HD does much better with no antenna.
FM radio and sampling.
This kind of post makes me wonder if sampling the mic input in some non periodic (not at an exact frequency) rate, and if the sample and hold before the ADC works fast enough, that the FM band maybe decoded by the correlation of multiple sample rates. For those without an FM radio. Exact timing of the sampling would be critical, so not sure if it could work on some devices. But anyhow, probly too much low pass on the mic input.
mikereidis said:
The app would have to support this, although hypothetically the system software could be modified to fool the app. Or if you could somehow crash or otherwise disable the code that detects headphone jack insertion events that could work.
I HAVE found this annoying with the HTC app. I've developed an FM app that doesn't have this restriction. See my sig for details.
On my HTC Legend I can receive some strong stations OK with no antenna. My HTC Desire HD does much better with no antenna.
Click to expand...
Click to collapse
I tried your app but it doesn't work on my phone. Perhaps, the chipset is not supported? Do you have any idea where the trigger for headset is?
jackokring said:
This kind of post makes me wonder if sampling the mic input in some non periodic (not at an exact frequency) rate, and if the sample and hold before the ADC works fast enough, that the FM band maybe decoded by the correlation of multiple sample rates. For those without an FM radio. Exact timing of the sampling would be critical, so not sure if it could work on some devices. But anyhow, probly too much low pass on the mic input.
Click to expand...
Click to collapse
Ok, was that greek? I seriously didn't get what you were saying.
duchmk and
my old xpress radio 5030 from nokia did that very well !
well, replying to the title,
is there any app/mod that can play FM without headset..?
thanks in advance.
Finally, this is possible or not..?? :/
hander13 said:
Finally, this is possible or not..?? :/
Click to expand...
Click to collapse
I found it possible on my Galaxy Mini w cyanogen mod on Spirit Radio app. Signal was weak, but with bluetooth enabled it works perfectly. Now I want to have it with standard firmware, but it's impossible, because sound is going off after turning bluetooth on.
try this
this is spirit fm radio
Where can I find/buy a fake earplug to will trick my Samsung Galaxy Note II that a real headphone has plugged in?
nit3hawk said:
Where can I find/buy a fake earplug to will trick my Samsung Galaxy Note II that a real headphone has plugged in?
Click to expand...
Click to collapse
i cant find singal...:/ but app is good
I found a very simple way to do this (at least on Sony Xperia with Android 6.0.1). Connect the headphones, open the stock radio app, tune to the frequency, then go to the Settings>Apps>FM Radio and click "Force Stop". Now you can unplug the headphones, the radio won't stop playing. The only problem with this is that you need to connect headphones to change the frequency.
Where to get app?
nibras_reeza said:
I tried your app but it doesn't work on my phone. Perhaps, the chipset is not supported? Do you have any idea whnere the trigger for headset is?
Click to expand...
Click to collapse
Where can I get the app? Thanks!
---------- Post added at 02:58 AM ---------- Previous post was at 02:55 AM ----------
mikereidis said:
The app would have to support this, although hypothetically the system software could be modified to fool the app. Or if you could somehow crash or otherwise disable the code that detects headphone jack insertion events that could work.
I HAVE found this annoying with the HTC app. I've developed an FM app that doesn't have this restriction. See my sig for details.
On my HTC Legend I can receive some strong stations OK with no antenna. My HTC Desire HD does much better with no antenna.
Click to expand...
Click to collapse
Where can I get the app? Thanks!

problem with headphone socket( OmniaII )

hi,
my omniaII assumes that a headset is always plugged into the mobile, therefore it doesn't play music or even doesn't support answering a call simply, unless I connect a headset and listen or speak by that!!! I've tried to fix it by referring to a good serviceman, but he said that the issue is about motherboard, and he couldn't solve it for me! now I wonder if I can solve this in a software form before finding another serviceman out of my city!!
I mean do u know or even is it possible to change settings or registry values of system to play music from both of headset and outer speaker, simultaneously??if yes,How can i do this?
I vitally need this ans,tnx in advance for ur answers.

Categories

Resources