Thread: The Best Speaker Fix Yet!
- 01-17-2011, 08:42 PM #1
The Best Speaker Fix Yet! (2/28/2011)
*** UPDATE 5/1/2011 - This thread is obsolete. The latest patch information can be found here. Please do not post to this thread any more!
I came up with a patch that does a great job of solving all of the speaker and routing problems on our phones. Thanks to zz109 for the original speaker toggle patch and thanks to [MENTION=3081367]adlx[/MENTION] and [MENTION=3194326]mastermind278[/MENTION] for helping me along the way. Thanks to everyone who has contributed and made custom Android ROMs possible.
This patch replaces the AdlxMod2.1.54-SpeakerFIX.zip and firesnatch-libaudio-1.0.x.zip patches, so you no longer need those. You can apply this patch over the top of the other patches.
If you are installing a new ROM, you must apply the patch *after* the first boot of your device.
If reporting a bug, please include information about which version of the toggle patch was flashed, which ROM you are using, and how to reproduce the error.
Android 2.1 patch (Eclair)
Stable Version:
-> Download firesnatch-toggle-mute-1.0.1.zip
Old versions:
Download firesnatch-toggle-mute-1.0.0.zip
Works on the following ROMs:
- Basically Blurless MM278 B2
- Adlxmod XT 2.1.54-2 "Consolidation"
- MotoBlur 2.1.54 ROM
- Angourakis Alpha 8 (wipe battery stats after flashing)
Included in this patch:
/system/app/BlurPhone.apk
/system/lib/libaudio.so
Success may vary on other ROMs.
Make a backup before attempting this. Flash using recovery. Do not WIPE.
If you build a ROM with this patch, please give me credit and link back to this post.
1.0.1 Known issues:
- The Mute button does not work properly. When you press it, the phone acts like the speakerphone button was pressed instead.
- Beep after hangup
- If someone calls you while you are listening to music with the headphones on, and they abort their call before you answer, audio will incorrectly routes to the speaker.
1.0.0 Known issues:
- There is a beep through the speakerphone when ending a call. The beep is normal, but should go through the earpiece instead.
- Some people are experiencing random reboots after ending a call. There is also a problem where the phone will reboot if you are on a call and then try to answer another incoming call. You can also make the phone reboot by toggling the MUTE button very quickly. I believe all of these reboot problems are related. I've been able to reproduce 2 out of 3 of them, so I 'll try to have a fix soon.
If you like this patch, please DONATE to show your appreciation.
How does this patch work? The original speaker phone patch simulates the speakerphone button being toggled during a call. I found that toggling the speaker phone causes audio routing issues. If you are using a Bluetooth headset for instance, toggling the speaker phone routes the audio away from the Bluetooth headset to the speaker phone. What I did for 2.1 ROMs was create a new BlurPhone.apk that toggles the mute button instead. On 2.2 and 2.3 ROMs, Phone.apk calls setParameters("toggle=y") in libaudio. I then wrote a custom hook in AudioHardware.cpp to intercept the toggle message and toggle the MUTE state. Routing is not effected by the muting audio.Last edited by firesnatch; 05-01-2011 at 04:11 PM. Reason: Linked to new 'perfect audio' thread.
-
39 Users Say Thank You to firesnatch For This Useful Post
adlx (01-18-2011), alerman (01-20-2011), angourakis (01-17-2011), bigtom624 (01-21-2011), blackwing182 (01-18-2011), c00ller (01-18-2011), dlaughs (02-14-2011), Dominonin (01-18-2011), dwarven (02-26-2011), ElSinNombre (01-17-2011), EricTheLuminant (01-18-2011), eze92 (01-17-2011), FAN_TV (02-28-2011), GroovyG (01-18-2011), jfc_2k81 (02-06-2011), johnshark (01-17-2011), josuearisty (01-22-2011), kagedws6 (03-23-2011), marcelo92 (01-17-2011), marcelobsb (01-20-2011), mastermind278 (01-18-2011), MAX! (04-26-2011), moisme (03-07-2011), nachobkc (01-20-2011), oncefly (02-19-2011), paulogeneses (01-20-2011), phoenixsong6 (03-28-2011), pinkys (01-19-2011), Pzyduck (01-17-2011), rakou (02-18-2011), rfunderburk (01-17-2011), Rockman000 (01-18-2011), rudy_lktv (01-18-2011), saulob (01-18-2011), seba6487 (04-01-2011), SumGuy (02-12-2011), tshubert (02-04-2011), turl (01-24-2011), yingfei (03-30-2011)
- 01-17-2011, 09:03 PM #2
Posting in a legendary thread.
Just tested it, worked fine with ADLX latest ROM. Tomorrow I'll try with the others.
Thank you!Last edited by ElSinNombre; 01-17-2011 at 09:14 PM.
- 01-17-2011, 09:07 PM #3
Maybe Modder
- Join Date
- Jul 2010
- Posts
- 47
- Thanks
- 8
- Thanked 13 Times in 8 Posts
- Downloads
- 50
- Uploads
- 0
Great work firesnatch
Already included in my ROM and tomorrow when I publish it, i'll make sure to thank you properly
=D
- 01-17-2011, 09:09 PM #4
Of Mice and Modders
- Join Date
- Nov 2010
- Posts
- 77
- Thanks
- 48
- Thanked 120 Times in 27 Posts
- Downloads
- 18
- Uploads
- 0
Posting in a legendary thread.[2]
THANKS [MENTION=229569]firesnatch[/MENTION]!
TESTED IN MY PHONE, AND IT WORKED PERFECTLY!!
CONGRATULATIONS, I'LL CHECK HOW TO DONATE TO YOU!! =)
- 01-17-2011, 09:14 PM #5
Itty Bitty Modder
- Join Date
- Nov 2010
- Posts
- 5
- Thanks
- 2
- Thanked 0 Times in 0 Posts
- Downloads
- 2
- Uploads
- 0
Awesome work FS!
Can you patch over the top of your previous releases?
- 01-17-2011, 09:44 PM #6
- 01-17-2011, 11:21 PM #7
Maybe Modder
- Join Date
- Jul 2010
- Posts
- 47
- Thanks
- 8
- Thanked 13 Times in 8 Posts
- Downloads
- 50
- Uploads
- 0
I hate to bring the bad news but there is a minor bug remaining (thanks Alice):
When you're listening to a music using earphones, and call to someone and then finishes it, that's ok and the music start playing again at the right place.
When you're listening to a music using earphones and someone calls you, you listen to the ringtone playing through loudspeaker but you're able to talk normally. The issue seems to afect just received calls
Can you take a look?
Regards
- 01-17-2011, 11:41 PM #8
Itty Bitty Modder
- Join Date
- Dec 2010
- Posts
- 1
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Downloads
- 0
- Uploads
- 0
THXfiresnatch
Already included in my ROM and tomorrow when I publish it, i'll make sure to thank you properly
- 01-18-2011, 02:01 AM #9
So I Hear You Can Mod
- Join Date
- Nov 2010
- Location
- UAE
- Posts
- 398
- Thanks
- 34
- Thanked 114 Times in 66 Posts
- Downloads
- 3
- Uploads
- 0
Nice!!! But the loud beep when hanging up is still there
- 01-18-2011, 06:08 AM #10
Itty Bitty Modder
- Join Date
- Dec 2010
- Posts
- 3
- Thanks
- 5
- Thanked 0 Times in 0 Posts
- Downloads
- 0
- Uploads
- 0
Hm, what's changed from the last 1.0.3 patch?
What's new? Any changelog?
Thanks
- 01-18-2011, 06:37 AM #11
Older versions had these remaining problems:
I can confirm that the headphones one is fixed, the others, I haven't really tested enough.- When playing music through headphones, after rejecting a call it goes to speakerphone
- Speakerphone icon sometimes remains in notification bar after ending call
- When making a bluetooth call, sound switches to speakerphone after a few seconds.
- Beep after hangup (I don't think anything can be done about this from libaudio.so)
- 01-18-2011, 10:53 PM #12
Maybe Modder
- Join Date
- Sep 2010
- Posts
- 37
- Thanks
- 3
- Thanked 0 Times in 0 Posts
- Downloads
- 13
- Uploads
- 0
the beep after calls is an notifier that the call have ended
- 01-19-2011, 04:28 AM #13
[MENTION=229569]firesnatch[/MENTION] if i flash this patch and then flash adlx's "consolidation" 2.1.54-2 rom, do i need to flash the patch again?
Current(Smart)Phone: Samsung Google Nexus S, Backup Phone: Cliq XT/Quench
List of games PREVIOUSLY on my Cliq XT during 2.1 "consolidated"
Cliq XT/Quench info:
Firmware
@Turl's CM7 2.3.4
Kernel Ver.
2.6.29.6
build01@laptop #210
Rom ver.
CM7.0.3 Nightly 110 via-CyanogenMod
- 01-19-2011, 05:36 AM #14
Developer
- Join Date
- Jul 2010
- Posts
- 441
- Thanks
- 137
- Thanked 474 Times in 166 Posts
- Downloads
- 34
- Uploads
- 0
[MENTION=50759]xJAYEMMx[/MENTION] - You would need to install the ROM and then boot. Then after first boot go into recovery and install the patch from [MENTION=229569]firesnatch[/MENTION].
I'd also like to confirm that the same method works for Basically Blurless. So far so good with the patch. Makes everything work quite nicely.
-
The Following User Says Thank You to mastermind278 For This Useful Post:
firesnatch (01-19-2011)
- 01-19-2011, 07:30 AM #15
I think you are right. It's a feature and not a bug. However, since a lot of people don't seem to like it, I'll try to come up with an alternate version where it doesn't beep after the end of the call. I'm hoping that there is some code in BlurPhone.apk that can do it.
-
The Following User Says Thank You to firesnatch For This Useful Post:
rakou (02-18-2011)


LinkBack URL
About LinkBacks

Reply With Quote

