[DEV] - Android L AOSP 5.1 phone call speaker issue

Stephen

Senior Moderator / Moderator Committee Ban Time!
Staff member
Jul 14, 2010
14,640
16,764
263
40
Northern Ireland
So a few of us have now started working on AOSP 5.1 and we have noticed that when making phone calls through the standard internal speaker, you can't hear the person calling and they can't hear you.

What I have tried so far:

Radios - tried older ones and current and no difference
Kernels - Again tried a few different kernels and still did not make any difference

gruesomewolf extracted the binaries from the factory image. I have added into my rom and hasn't worked. I am trying another build now.

Here is a link to my source code, so you can see what changes I have made:

https://github.com/StephenAOSP

The only changes I have made from stock 5.1 are:

Disable encryption
Disable recovery
Add in Vendor binaries
Use ota_from_target_files from scrosler's guide
Change device name
Disable restrict vendor files
Created bootanimation folder in prep for final build

I thought this would be a good place for Dev's to work on the issue and share findings. Pinging a few dev's to make them aware of the thread:
@gruesomewolf @fhem @scrosler @zephiK @rascarlo @simms22 @jakew02
Guys
Remember this is a high level discussion forum. Please keep posts related to fixing this issue.
 
Last edited:
  • Like
Reactions: RoscoeDpG

Stephen

Senior Moderator / Moderator Committee Ban Time!
Staff member
Jul 14, 2010
14,640
16,764
263
40
Northern Ireland
Found an interesting post here:

zephiK...I got the voice call working without the speaker in stock aosp 5.1. It's in the mixer_paths.xml, a couple of missing lines in the 5.1 version. I copied over the lines from 5.0.2 and that fixed the problem.
I copied over lines 466 - 496 to replace those in the 5.1 mixer_paths.
(device/moto/shamu/mixer_paths.xml)

Hope this helps :)
Pinging @hondajohn88 to make sure he is aware of this thread.

Also here is a logcat attached with making a phone call.
 

Attachments

Last edited:
  • Like
Reactions: simms22

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
Last edited:
  • Like
Reactions: Stephen

cjkacz

Inactive Recognized Developer
May 11, 2013
1,310
2,053
153
Sardinia
www.teamoctos.com
@Stephen

Just adding lines back in to the mixer_paths probably isn't the best approach to this. The commit that broke it is here:

https://android.googlesource.com/device/moto/shamu/+/b3816857ca7463f5e776ea1e5efbf59f714a96d0^!/#F0

I'm willing to bet if you revert that, it will fix the issue.

I'm actually not having this issue at all myself. Have you guys merged in the 5.1 kernel and updated the vendor files to LMY47D?
Could that commit break VoLTE activation on aosp based Roms? Not only did I have the earpiece issue but also cannot activate VoLTE service at all. I can on stock factory. @Stephen I see you have that issue as well.

Sent from my Nexus 6 using XDA Free mobile app
 

Stephen

Senior Moderator / Moderator Committee Ban Time!
Staff member
Jul 14, 2010
14,640
16,764
263
40
Northern Ireland
Good point. I wonder if rather than just adding in those two lines into the xml file, if I replace it from the 5.0.2 rom, will it get VoLTE working?
 

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
Like I said, I'm not having this issue at all on 5.1 stock or Omni (device trees are extremely similar), on T-Mobile in an LTE-area (Philadelphia).

I know that @dhacker29 had to call a number or something to enable VoLTE for VZW.. maybe he can fill everyone in on what he did to get it activated.
 

cjkacz

Inactive Recognized Developer
May 11, 2013
1,310
2,053
153
Sardinia
www.teamoctos.com
Good point. I wonder if rather than just adding in those two lines into the xml file, if I replace it from the 5.0.2 rom, will it get VoLTE working?
I was told that this guy may have fixed VoLTE. I picked the last 3 commits and although my ROM is a little larger in size I now register as no SIM found on Verizon. Anyone know what lib(s) may affect that specific portion?
https://github.com/razrqcom-dev-team/proprietary_vendor_motorola/commits/cm-12.1


Sent from my Nexus 6 using XDA Free mobile app
 

wowthatisrandom

Senior Member
Nov 19, 2006
286
64
0
St Louis
www.bbsak.org
I was told that this guy may have fixed VoLTE. I picked the last 3 commits and although my ROM is a little larger in size I now register as no SIM found on Verizon. Anyone know what lib(s) may affect that specific portion?
https://github.com/razrqcom-dev-team/proprietary_vendor_motorola/commits/cm-12.1


Sent from my Nexus 6 using XDA Free mobile app
im using same vendor, as is @zephiK in Chroma5.1 howver VoLTE seems only be working for his TMo device. Noone has seeemed to figure out the No Sim issue on first boot, the only way around this is to dirty flash over a 5.0.X rom and then your 5.1 rom will see the sim and work just. Again no VoLTE but everything else is working well on my Verizon N6.