phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

[Blackview 9800 pro / MTK P70] AOSP 11.0 v303 feedback/echo on phone call audio #1783

Open linked380 opened 3 years ago

linked380 commented 3 years ago

Half a second delayed echo on any phone calls. Echo is slightly noticeable when using handset to the ear, quite noticeable on Bluetooth headsets or car Bluetooth sets, and extremely loud mic feedback squeal if calls are switched to speaker phone on the handset. I suspect the top mic on the phone is turned on and is basically listening and replaying ( echoing) what is been said into the bottom mic.

eremitein commented 3 years ago

Half a second delayed echo on any phone calls. Echo is slightly noticeable when using handset to the ear, quite noticeable on Bluetooth headsets or car Bluetooth sets, and extremely loud mic feedback squeal if calls are switched to speaker phone on the handset. I suspect the top mic on the phone is turned on and is basically listening and replaying ( echoing) what is been said into the bottom mic.

in the v302 you have same issue?

linked380 commented 3 years ago

Actually v303 is my first experience with Phh roms directly, before I was using Havoc 3.12 GSI. Havoc had a slight delay or echo on bluetooth headset/ car sets, but the phones ear piece and the phones speaker phone worked normally with no echo or loud feedback noise.

atrueba commented 3 years ago

Hi,

I'm having the same problem on a Cubot King Kong Mini 2 (MT6761), also on v303.

Stock ROM (v10, kernel 4.9.190+) doesn't have any audio issues, nor does LineageOS 17 or 18.1, so this seems local to AOSP.

phhusson commented 3 years ago

Can you try on v301?

Le sam. 10 avr. 2021 à 17:13, Antonio Trueba @.***> a écrit :

Hi,

I'm having the same problem on a Cubot King Kong Mini 2 (MT6761), also on v303.

Stock ROM (v10, kernel 4.9.190+) doesn't have any audio issues, nor does LineageOS 17 or 18.1, so this seems local to AOSP.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1783#issuecomment-817151629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OXUJFRBQCQR46CWCVLTIBTH3ANCNFSM42KQ6B7Q .

atrueba commented 3 years ago

Hi,

I installed v301 (arm32_binder64-ab-gapps) and did a factory reset. While setting this up a couple of apps where automatically updated, but I guess this should be as close to a clean 301 as it could be.

Now there's a different problem: when sending calls there's no audio going either way. When receiving calls everything seems to work OK.

I'll try another versions and report. Would it be enough to just flash the newer version on top of what's there, so I don't lose my settings after every flash, or you'd prefer a factory reset between tests?

atrueba commented 3 years ago

Hi,

I tried other versions, just flashing on top of each other without factory resets:

Hope this helps.

Maxsandro1984 commented 3 years ago

I have this same audio problem in the call on my ulefone armor 3W (MTK 6771 Hélio P70). I tested version 302, with no audio on the outgoing call, only on the normal incoming call. in versions 303 and 304 the audio works but with a very loud feedback from the speakers, as if it were an echo, as if placing the microphone in front of the speaker, even with the speakerphone turned off, only with the headset it gives this echo of feedback. on Android 10 it doesn't happen, only with Android 11

Maxsandro1984 commented 3 years ago

problem solved for me with this latest update in version 305. call audio working perfectly. congratulations to Phh

atrueba commented 3 years ago

v305 partially solves this problem on MT6761: calls received/sent work OK when using the phone, but the echo problem persists when using a bluetooth headset/car connection.

I didn't include that bluetooth test with v301~304, but I believe this problem is also present in v222

hayzy00 commented 3 years ago

I also have this issue on all a11 for mtk p70. Present in 305. Is it worth updating to 306? Or has nothing changed with regard to this?

atrueba commented 3 years ago

I also have this issue on all a11 for mtk p70. Present in 305. Is it worth updating to 306? Or has nothing changed with regard to this?

It's still there in 306.

andreescul commented 3 years ago

I also have this issue on all a11 for mtk p70. Present in 305. Is it worth updating to 306? Or has nothing changed with regard to this?

Still there in v306 (Unihertz Atom L, MTK P60) - on regular phone speaker and on bluetooth as well, in my case.

linked380 commented 3 years ago

Ok so the latest v306 completely solves the loud feedback on regular speaker phone use. Unfortunately the Bluetooth headsets and car sets are still echoing your speech back through the Bluetooth speakers or car speakers. The delay between speaking and hearing it replay is about 0.5 second

linked380 commented 3 years ago

Echo still present on v308 for Bluetooth headsets and vehicle/ car sets

W0153R commented 3 years ago

I noticed that in /vendor/audio_policy_configuration.xml and /vendor/audio_policy_configuration_bluetooth_legacy_hal.xml, AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET is set to AUDIO_CHANNEL_OUT_STEREO, which seems wrong. I tried changing the value by overwriting the files through Magisk but it didn't have an effect.

Edit: #1321 Seems to do the trick for me (Cubot KingKong Mini2)