audio - Mute the external microphone when a headphone is plugged in?

18
2014-04
  • Ian

    I'm running Gingerbread on my Samsung Galaxy S II. I dock it on my dash in my car and plug a 3.5mm cord from the phone to my stereo aux input.

    I often listen to music from my phone through my car stereo, but when a call comes in and I answer it, there is terrible feedback on the other end because the caller hears both my speakers and the audio from the phone.

    Is there anything I can do about this other than to switch to a traditional headset?

  • Answers
  • Izzy

    You could make use of e.g. Tasker -- an automation tool which can react on different situations and handle a lot of things (basically, sometimes I think 80% of questions like "How can I...with Android?" could be answered by "Use Tasker!". Though it doesn't come "cheap", on the developers website you can get a 7-day trial to check first. It's worth every cent of its 5 bucks!).

    So with tasker, you do simple math:

    condition + task = profile
    

    For your case, it's probably something like...

    Profile "docked-in-car"

    • Conditions: (they are always connected by AND with Tasker)
      • "headphones plugged"
      • "docked"
    • Tasks:
      • "audio -> mic mute"
      • optionally: "keyguard off"
      • optionally: "display timeout 0" (as it is connected to a power source, so you can continually see what's displayed)
      • most likely: "start app -> [music-app]".

    Save & go. Now, when you dock your SGS2 and plug in the 3.5mm cord, mic should be muted -- and additionally some other nice actions executed.

  • WoodsLink

    I wrote an app named SoundAbout. You could change the media audio setting to "Wired Headset(with mic)" . If your headphones have a mic, it will use it. If your headphones don't have a mic, then there will be NO microphone used at all.


  • Related Question

    nexus one - Disable Phone's Built-in Microphone?
  • Android Eve

    I just conducted a tiny experiment with the original headset that comes with Nexus One: I plugged it into the phone, expecting the phone built-in microphones to be switched off, replaced by the microphone on the headset.

    I was disappointed to see that the voice input behavior of the system didn't change: The phone seems to continue picking up sound from the built-in microphone(s).

    So, I thoroughly covered the headset's microphone with tape and tried again...

    Still, no change. The Nexus One's built-in microphone are fully enabled.

    This is disappointing because I really need to disable the Nexus One's built-in mics, so that I can use a different microphone instead.

    Is there a way to accomplish that?


  • Related Answers
  • Power-Inside

    Maybe disabling the noise cancellation feature might work..

    Get a rooted file editor first, then from "/system/build.prop" change the "media.a1026.enableA1026=1" to "media.a1026.enableA1026=0"

    Then do a reboot. See if your problem is solved. I simply suspect the android's mic always gets enabled for the purpose of noise cancellation during calls/voice input.

    REMEMBER! I do not hold responsiblilty for any failure. I suggest you make a backup and everything when you try this.

    SOURCE: http://forum.xda-developers.com/showthread.php?p=6787214