Yeah, It doesn’t look like a “bug” per-se, more like an audio routing issue.
Thanks for pointing at the phone number, I replaced the link with new pastebin.
I’ll start poking around /vendor/etc/mixer_paths.xml - I might have some success by modifying mic sensitivity, or mic assignment (this was actually pretty common with lineageos back in the day).
For starters I’ll try to just disable top mic altogether during calls.
Modern mobile phones (actually in past 10 years or so) have at least two microphones, sometimes even 4 or more for ANS (active noise suppression), ANC (active noise cancellation) and AEC (active echo cancellation).
In a more typical setup (for example X10 II), both microphones are exposed and the top one is used for ANS and ANC during calls and for (stereo) video recording.
All of these are available even on AOSP but specific vendors have more advanced libraries.
If you look at your /vendor/etc/ directory on SFOS you will notice couple of xml files - these are related to audio subsystem on android (which is exposed to SFOS, and if I’m not mistaken, handled by pulseaudio through various sinks).
Two files are of particual interest: mixer_paths.xml (contains various configurations for inputs and outputs, you can think of this like a static audio mixer) and audio_effects.xml
For example you can clearly see configuration for AEC and NS in audio_effects.xml:
Possible related audio-sources-swapped. Could it be that during a call audio source is routed from microphone above and because earpiece is so close other end gets echo?
I had also this on Sony X10ii. First I changed the cover, because without hardcase it works perfect! Then I used follow line pactl set-source-volume 2 5%. The 5% seems to be less but it works. Maybe it helps.
can not reproduce echo on my 10II, tested on 2G and VoLTE.
i dont remember what version of android was there originally after unpacking, but with no android updates just directly flashed to some SFOS v3 i think. friend was using this phone for several years and when he gave it to me back i reflashed:
I’ve been playing with mixer_paths.xml and got some positive results. If I set volume of DEC8 to 0 then echo is much much lower.
I have also observed one interesting thing, if you just say one word it will echo back, but if you keep talking echo will stop after a second or two. This looks like AEC is working but is not calibrated properly or mic sensitivity is misconfigured.
Also, as @arle pointed out, and I initially suspeced, there just might be general audio routing issue. I’ll probably try to extract mixer_paths.xml from stock android image to compare settings (currently I’m having no luck unpacking sony .ftf image on my mac…)
Just wanted to note that I have gave up on this, X10II and SFOS altogether now. I have spent so much money on licences and obsolete devices that I just don’t want to experiment anymore.
I’ll return to SFOS when the following two things happen:
there is 100% supported device out there with modern capabilites
there is clear policy regarding what “stable” means. Currently SFOS is just rolled out, new things added, old things broken, and this repeats after every release
I do wish all the best to jolla team and really hope SFOS thrives in the future, but i think there is years and years of work ahead to get to at least 100% stable state. I believe most of people here are happy to test and experiment, I’m unfortunately not one of those - core stuff (calling, wifi/data, messages, mail, browsing needs to be flawless).