Cyanogenmod 7.1: stock headset mic not working - HTC Desire S

Hi everyone
I have a HTC Desire S with CyanogenMod 7.1 Stable and ClockworkMod as recovery. Everything is great except for my stock htc desire s headset.
When I insert the headset the headset is registered (showing a small icon with headset+mic) but the microphone is not working. It is not working in calls and not working in other apps (for example Sound Recorder which comes with CGM). The internal microphone in the telephone however remains active during calls. The microphone is working hardware wise, I use the headset with my laptop.
I am aware of this topic: http://forum.cyanogenmod.com/topic/...headset microphone__fromsearch__1#entry237827
But I have a different phone and I am already using CGM 7.1 and just using 7.1 hasn't fixed my problem
Are anyone aware of any fixes / workarounds for this? Maybe some nightly builds which fixes it or similar?
Side note:
It also turns out that only one earplug is working (like mono sound) when using the headset in a call. Both works perfectly when using the Music-app wich comes with CGM.
Best regards
Wuhtzu

Could it be that the htc desire s stock headset uses a proprietary driver only included with htc sense or similar?
Best regards
Wuhtzu

I have same problem with u dude, but sometimes headset n mic work fine. I don't have any idea 4 that.
If that happened I just reboot my desire s n hope the problem is gone.
Sorry 4 my bad english
Sent from my HTC Desire S using XDA App

this thing involves alot of confusion, since also i have cm7 and when i insert the stock earphones it appears as regular earphones with no mic icon but it does work though i think

XKanoX said:
this thing involves alot of confusion, since also i have cm7 and when i insert the stock earphones it appears as regular earphones with no mic icon but it does work though i think
Click to expand...
Click to collapse
Could you be persuaded to try and report the result back? Plug in the stock headset with mic, note which icon is displayed (earphones or headset), try the headset in an app (Sound Recorder for example) and try the headset in a phone call.

im sorry for not being able to try now, but as i recall it works fine, just the icon that appears is for earphones with no mic, although i have the stock headset plugged in , but when i reboot with the headset plugged in the icon displayed is the one for a headset (with mic icon)
probably just a rom issue, not a big deal since the mic works

The problem persisted for me with the Cyanogenmod 7.1. I however never tried to reflash 7.1, which some people claimed would fix the problem. So that I will never know for sure.
I do however know that CGM 7.2 RC1 is here now and that upon first boot after 7.2 flashing my stock headset works as expected.
The icons ect. are the same as described vigorously in the original post. Only difference is that now the microphone actually works.
Thumbs up to 7.2 and the CGM team!

SOLVED for me!
Not sure if it is the same issue, as sometimes when I plug the headset only the headphones icon appears (the one without a mic icon) and sometimes the headset icon appears (the icon WITH a mic) and the mic works.
IT IS SOLVED now! turned out that when I plug the headset socket SLOWLY the mic DOES NOT WORK, but when I plug it FAST ENOUGH the mic works perfectly and the headset icon appears.
Hope this would help you out

hamidoo said:
Not sure if it is the same issue, as sometimes when I plug the headset only the headphones icon appears (the one without a mic icon) and sometimes the headset icon appears (the icon WITH a mic) and the mic works.
IT IS SOLVED now! turned out that when I plug the headset socket SLOWLY the mic DOES NOT WORK, but when I plug it FAST ENOUGH the mic works perfectly and the headset icon appears.
Hope this would help you out
Click to expand...
Click to collapse
Yeah das cool mane

Headphone usage
I've noticed this too on several new roms jelly time and aokp jellybean rom ports

Related

[GPL] epicBT - Call Audio Router ( Epic4G ) - bluetooth/wired conflict hotfix - 11/26

This application is a hotfix for a really annoying (and potentially unsafe!) bug in the Epic4G:
http://code.google.com/p/android/issues/detail?id=11372
http://forum.sdx-developers.com/epi...audio-routing-on-epic-4g/msg115990/#msg115990
The long and sort of it is that when anything is plugged into the 3.5mm headphone jack, the phone will only play call audio over that jack.
In order to route the audio through the earpiece, bluetooth or speakerphone, you must pull the plug out of the jack. This is at the very least annoying, and at the very worst potentially dangerous if, for example, you're driving.
How-To
Download the APK attached below for your android version.
Install like any other APK using adb or your favorite file manager.
What it does
This simple application allows you to pick the audio device to use for call audio to override this behavior, and can be changed on the fly.
All in-call audio will be routed to the device you specify when something is plugged into the 3.5mm headphone jack. If nothing is in the jack, the default behavior for the phone applies.
This also allows you to use the Speaker Phone when the headphone jack is occupied, even though the button on the call screen is disabled!
Your configuration should persist between reboots.
What it doesn't do
This app does not route any other type of audio. Your music, notifications, etc will still play over the headphone jack or phone speaker.
Again, this *only* affects in-call voice audio, and only when something is plugged into the headphone jack.
Notes
This app completely overrides the options on the call page! If you want to switch outputs during a call, you will have to do it from this app - your call will not be dropped when changing the output device.
In order to route the call audio properly, the system's mediaserver service must be restarted, however.
This means that any other audio you have playing when you apply the change will be disrupted, and related services may force close. For example, Pandora will skip to the next song. Other applications may not behave that well.
Disclaimer
This app modifies files in the /system partition, so use this at your own risk! I am not responsible for any problems that arise from this hotfix on your device!
This is currently for the EPIC4G *ONLY* - Do not use this on any other device. Please contact me if you have a different phone which experiences this bug and I will see if I can get it working for you as well.
This is *BETA* software, a work in progress, please post here if you experience any issues, but I cannot guarantee it will work for you!
ROM DEVs, feel free to bake this into your roms in whole or part, I encourage it as this provides a workaround for a safety issue, but please give credit if you use or derive from this application.
Special thanks to UberPinguin - his initiative, debugging, code-diving and testing helped make this happen every step of the way!
Many, many thanks to everyone in #samsung-epic for helping me test and work this out.
Be sure to download the APK for the right android version on your phone!
epicBT - v0.3.5 (Froyo)
* Fixed crash/reboot when applying settings in DK17 roms
epicBT - v0.3
* Layout cleanup when root is unavailable
epicBT - v0.2
* Requires root!
* Superuser compatible
* auto-remounts /system RW if necessary
* Sends call audio to wired device ( default ), speaker phone, or bluetooth
Sources
https://github.com/cicada/epicBT
If this works as described above I will be so f-ing happy. One of my biggest gripes, solved.
No sh#t! I was just about to start searching the Market for an app like this! Downloading now to test.
Thank you!
bigdbag said:
If this works as described above I will be so f-ing happy. One of my biggest gripes, solved.
Click to expand...
Click to collapse
I agree
updated OP with source link
First of all,...Thank you, Thank you, Thank you for working on this... This was one of my biggest gripes with this phone and I couldn't understand why the "geniuses" at Samsung/Sprint couldn't get this right.
I've done some extensive testing in my car for the Eclair version and wanted to share my results:
For the most part, the app does what it's supposed to...but I did notice that:
1) the "on the fly" feature doesn't work so well. That is, when changing from one mode to the other, I had to reboot the phone to get the new setting to take effect. This feature would be great with an app like Tasker, which could automatically open up the app and ask you which setting you want to use when a headset/aux jack is plugged in,...thus giving you the flexibility to use the best option depending on your situation. Is there a way to tweak the app to recognize the switch without rebooting by resetting something like the mediashare service?
2) For some reason, the mic volume (volume heard on the opposite end of call) on the bluetooth setting is lower when the headset/aux jack is plugged in. I'm not sure whether the regular phone mic, speaker phone mic, or the bluetooth mic is utilized in this setting, but the volume is definitely harder to hear on the other end than when the headset jack is unplugged. I would guess about 20-25% lower. I tested this effect during the call as well by plugging and unplugging the jack while counting 1 to 10 and it's the same. Is there away to increase the sensitivity of the bluetooth mic when the headset jack is plugged in?
Donation coming if you can get this working! Thanks again.
sinman02 said:
1) the "on the fly" feature doesn't work so well. That is, when changing from one mode to the other, I had to reboot the phone to get the new setting to take effect.
Click to expand...
Click to collapse
Strange, it works well for me - it takes a second to switch outputs while mediaserver is restarting, but never had to reboot. I'll look into this, may have accidentally tweaked something in the last build.
UberPinguin and I are still looking at the sources to find a better fix that works the way it's supposed to - the trouble seems to be that Phone.apk is actually selecting the 'correct' source and setting options appropriately, but the underlying OS isn't switching outputs. Restarting mediaserver was the only workaround I could find for this.
sinman02 said:
2) For some reason, the mic volume (volume heard on the opposite end of call) on the bluetooth setting is lower when the headset/aux jack is plugged in. I'm not sure whether the regular phone mic, speaker phone mic, or the bluetooth mic is utilized in this setting, but the volume is definitely harder to hear on the other end than when the headset jack is unplugged. I would guess about 20-25% lower. I tested this effect during the call as well by plugging and unplugging the jack while counting 1 to 10 and it's the same. Is there away to increase the sensitivity of the bluetooth mic when the headset jack is plugged in?
Click to expand...
Click to collapse
I hadn't noticed any volume issues but truthfully I haven't been using the BT often because of this bug - I've just been letting my calls go to VM instead of crashing my car Volume selection should be working properly so I'll see if I can add something to select volume as well.
To be clear on the MIC, input should always be the proper input for whichever mode you choose - phone MIC for speakerphone and BT mic for BT HP/HS.
If you're on stock then the phone mic should be used when your wired device doesn't have it's own, however this is broken in all of our custom community kernels - Wired Headset mode should only be used when you actually have a wired headset with a MIC of it's own if you're using one of these, otherwise the phone doesn't enable any MIC at all.
I should note, that all my tests were conducted on outgoing phone calls. I don't know if incoming calls are any different. I am using the Syndicate rom.
If you can get the bluetooth volume issue resolved, I'll likely leave it there, but it would be nice to be able to switch on the fly to speakerphone mode when bluetooth isn't handy.
Question: Does the froyo version have the same implementation?
Please keep up the good work!
Sent from my SPH-D700 using XDA App
sinman02 said:
Question: Does the froyo version have the same implementation?
Click to expand...
Click to collapse
Yes, the froyo version is the same - Samsung used a different asound.conf in froyo ( added in some interesting VOIP pcm ), so this is the only difference between versions currently.
cicada said:
This application is a hotfix for a really annoying (and potentially unsafe!) bug in the Epic4G:
The long and sort of it is that when anything is plugged into the 3.5mm headphone jack, the phone will only play call audio over that jack.
In order to route the audio through the earpiece, bluetooth or speakerphone, you must pull the plug out of the jack. This is at the very least annoying, and at the very worst potentially dangerous if, for example, you're driving.
Click to expand...
Click to collapse
...So this should work on for Sip/VOIP apps like Sipdroid, 3CX, and Fring? I managed to pick up 3CX and Sipdroid through my bluetooth headset but no mic...meaning the other end could not hear me... There aren't that many good sip/voip soft wares out there for the Android today.. I rated Fring the BEST but with no bluetooth support.
EDIT: Nevermind... I read the post again.. I don't think this will do the job other than support for the actual phone.. but it would be nice to have that option for sip/voip as well.
The SIP/VoIP stuff may work better in Froyo considering there are dedicated PCM devices listed in the asound.conf - however I've never used any of these applications, so this is pure speculation.
You're correct, this does only effect in-call phone audio, those applications would be handling (or in this case, not) the bluetooth audio routing directly. I've found lots of other similar quirks with BT on the Epic4G, such as the << and >> buttons on my A2DP headphones not working.
cicada said:
The SIP/VoIP stuff may work better in Froyo considering there are dedicated PCM devices listed in the asound.conf - however I've never used any of these applications, so this is pure speculation.
You're correct, this does only effect in-call phone audio, those applications would be handling (or in this case, not) the bluetooth audio routing directly. I've found lots of other similar quirks with BT on the Epic4G, such as the << and >> buttons on my A2DP headphones not working.
Click to expand...
Click to collapse
I am using Froyo the DJ29 Build on the epic... Dare I try?
****ing yea! Thanks, downloading now. This has been my biggest complaint with the phone
Sent from my SPH-D700 using XDA App
Hell Yea! You rock! I Threw out a fairly long search sentence in google and actually found your post here. No sooner did I install and set it up that my phone rang while plugged into the car audio and FINALLY I can use my friggin BT headset without yelling hold on hold on I gotta unplug the stereo cable. This has really peeved me off since I got the phone. Now what I don't get is why this obvious flaw has been ignored by Samsung and Sprint. Nice job on making it work like it should. BTW running stock 2.1 with root. No bugs so far.
THANK GOD. someone fixed this. bugged me so much in the car when i'm receiving a call. will report any bugs.
bump, updated to fix crash in DK17 based roms
cicada said:
I hadn't noticed any volume issues but truthfully I haven't been using the BT often because of this bug - I've just been letting my calls go to VM instead of crashing my car Volume selection should be working properly so I'll see if I can add something to select volume as well.
To be clear on the MIC, input should always be the proper input for whichever mode you choose - phone MIC for speakerphone and BT mic for BT HP/HS.
If you're on stock then the phone mic should be used when your wired device doesn't have it's own, however this is broken in all of our custom community kernels - Wired Headset mode should only be used when you actually have a wired headset with a MIC of it's own if you're using one of these, otherwise the phone doesn't enable any MIC at all.
Click to expand...
Click to collapse
As others, I'm very grateful for this fix. After trying it out, if it works for me, donation on the way.
Regarding the MIC: My experience, all the way back to pure stock (IIRC) is that there is no MIC at all when a two-channel, stereo plug is inserted (headphones, cassette adapter, etc.). Every time I've been driving, listening to something via the headset jack, when a call comes in I can hear the other party, but they can't hear me at all until I unplug from the jack. So, even though there was no mic plugged in and the device was correctly sending 2-channel audio out through the jack (usually to a cass adapter, so I can listen via my car stereo), but doesn't "do the right thing" with the mic, even though the hardware and drivers are capable of detecting the absence of the mic.
It should, of course, default to the BT mic if there is a BT connection, or the built-in mic otherwise. For some reason this simple flow-diagram logic eludes Samsung.
So I got my first experience with this today...worked great. I was streaming Pandora, phone call came in, music was paused and I answered the call. Once I finished the call, the music continued playing. Minor detail, but since I was on WiFi, is there anyway that the music could have kept on playing while I was still on the call for the sake of my guys who were still working while I was taking the call? It's great that the music paused and resumed by itself, but it would have been cooler to have it keep going while I was on the call.
m5james said:
.. is there anyway that the music could have kept on playing while I was still on the call .. ?
Click to expand...
Click to collapse
Unfortunately Pandora's phone-state listeners control that, it'd have to be modified or their devs would have to add options for it. Would be cool though, I agree
I've got a hacked version of Pandora that allows unlimited skips, I'll have to ask the guy who did it to see if they can tweak that as well. Come to think of it, it'd be nice to have it keep going for the times I'm driving down the road as well so whoevers in the car doesn't have to sit there and listen to me blah blah blah.

Bluetooth mic doesn't work with voice search?

This just feels like I am doing something wrong or missing some setting somewhere, but this is what I am seeing.
I've tested using a Plantronics Voyager Pro+ as well as a BlueAnt S4 on an Evo with Synergy mod as well as an Evo with Fresh mod.
I can get the voice search app to open fine (using Blue Launch), the issue is that when I do the bluetooth microphone is no longer used and the microphone on the handset is used instead. This works fine in a quiet room, but fails horribly on the road. I've also tested this with other searching apps to verify it wasn't just the Voice Search app (default voice dialer fails as well).
You can test this yourself by sitting in a quiet room, starting voice search, then alternating blowing into the bluetooth mic then the handset mic. You should see the microphone icon on the screen fill up when you blow on the handset and empty to almost nothing on the bluetooth mic.
This seems like a major failing, something that shouldn't have been overlooked so I must be doing something wrong. How can I get my phones to use the bluetooth microphone when the bluetooth device is connected instead of the handset microphone?
Anyone have any idea or can point me in the right direction?

Aux port

Wondering if any one has had an issue with there aux port on there phone. Start my music player with either headphones or connected to my truck, symbol will be the headphones one, and music will play just fine, then after awhile the symbol changes to a headset looking one and will start to call my last dialed number will also skip through song or randomly change to another song!!!! Anyone with advice please help.
PS
has been happening since stock rom changed to Android Rev 3.6, which is awsome thnaks mike1986. but its still happening.
That also happens to me sometimes. I always chalked it up to me not pushing the headphones in all the way and tricking the phone into thinking i'm pushing things on a non existent inline control but maybe not. Anybody else have this?
Yes I too had such issue..
Sent from my HTC Sensation Z710e using xda premium
Tried out different head phones seems to be working so far and changed the Aux cable in my truck to test, seems to be ok
I used it on the my friend car for some good music on last trip and i din't have any issue. I suppose you should check your aux cable if those problems doesn't occur while using the headphones
Some music apps have the option to disable headset buttons. Do this if it has any options. Just a glitch/spike in the headphone connection or something like that that triggers the phone thinking a button has been pressed.

Phone issues: Mic only works when headphones are plugged in!

THE PROBLEM:
The internal microphone does not work for call audio unless I plug in headphones. The same applies to speakerphone mode.
My Bluetooth headset works fine, as do my old iPhone earbuds with built-in mic. In both cases, their respective external microphones were used and functioned appropriately.
The issue seems localized to the Phone app. The microphone works fine in Sound Recorder as well as dB Level. At first I suspected a faulty headphone jack, but I've installed SoundAbout and it properly detects when I plug in or remove my headphones.
THE BACK-STORY:
I've had been running CM9 RC2 on my phone for some time now, and decided it was time to check out CM10. I flashed the 3/04/2013 CM10.1 Experimental M2 build and got hit with the call audio issue. I used roger_n's unofficial ROM for a few days and subsequently updated to the 3/25/2013 CM10.1 nightly. I've pretty much had this issue ever since then, and I never had any issues prior to flashing CM10.1.
I've tried going back to CM9 and also upgrading the radio to UCLF6. I've done a full wipe and formatted /sdcard.
Can anybody offer any insight?
Odin back to stock. See what happens then.

Headphone plugged in, Mic Doesnt Work ?

Guys,
I recently updated my OPO to 30O. Now I cannot make use headphones to make calls or recive calls, as I can hear them speaking but they cant hear me. I have tried to record voice using sound record.
Have tried couple of headphones, same result. It this something related to Stock ? I didnt try any other ROM.
I am on stock, and no Mods. Any suggestions ?
Thanks
Zaib
Same problem here
zaibrockstar said:
Guys,
I recently updated my OPO to 30O. Now I cannot make use headphones to make calls or recive calls, as I can hear them speaking but they cant hear me. I have tried to record voice using sound record.
Have tried couple of headphones, same result. It this something related to Stock ? I didnt try any other ROM.
I am on stock, and no Mods. Any suggestions ?
Thanks
Zaib
Click to expand...
Click to collapse
Bad news for you buddy. There are a very few headsets that work. All of the "iphone" compatible headsets I have tried have same issue. Here is a thread discussing the same issue http://forum.xda-developers.com/oneplus-one/accessories/wired-headphone-mic-volume-buttons-t2847740
I aww a few patches to CM's gerritt regarding headphones / headsets. Maybe it will work in the future?
tiny4579 said:
I aww a few patches to CM's gerritt regarding headphones / headsets. Maybe it will work in the future?
Click to expand...
Click to collapse
What he said. CM has been putting audio patches left and right, although these patches did introduce a very annoying bug for me where it would not detect a headset being inserted it and i have to weirdly plug the jack in half way, hear static, wait 2-3 seconds and then plug it in for music to play.
30O broke something. I'm using SGS3 original headset and pause/play button is not working properly. Button act's like volume up. Once in a while I get it "fixed" but I really don't know how and I can't repeat it. I've tried to get headset working it with that "halfway and wait" tactic but it's not working.
Jote said:
30O broke something. I'm using SGS3 original headset and pause/play button is not working properly. Button act's like volume up. Once in a while I get it "fixed" but I really don't know how and I can't repeat it. I've tried to get headset working it with that "halfway and wait" tactic but it's not working.
Click to expand...
Click to collapse
The halfway and wait is a workaround for another problem. Not the problem you're encountering. Halfway and wait is where it doesn't detect your headset when plugged in, its a problem on kernels with the newer cm commits (newer than stock). If it doesn't get resolved, then you'll be seeing it in the next OTA, hopefully they fix it by then.

Categories

Resources