yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] craftyguy:
I mostly don't know what I am doing, but looking through that log I see this bit of info that seems to suggest it is trying to use a device that either doesn't exist or is configured at the wrong address/device id/something:confused:

12-08 22:11:23.169 2966 3463 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(60) acdb_id(43)
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 43, path = 1
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> send_adm_topology
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
12-08 22:11:23.169 2966 3463 D : ACDBFILE_MGR: CmnDevinfo for the devid 0000002B not found
12-08 22:11:23.169 2966 3463 D : ACDB_COMMAND: Failed to fetch the aud topo info for devid 0000002B
12-08 22:11:23.169 2966 3463 E ACDB-LOADER: Error: ACDB get adm topology for acdb id = 43, returned = -8
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> send_asm_topology
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> send_audtable
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
12-08 22:11:23.169 2966 3463 D : Failed to fetch the lookup information of the device 0000002B
12-08 22:11:23.169 2966 3463 E ACDB-LOADER: Error: ACDB audproc returned = -1
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> send_audvoltable
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
12-08 22:11:23.169 2966 3463 D : Failed to fetch the lookup information of the device 0000002B
12-08 22:11:23.169 2966 3463 E ACDB-LOADER: Error: ACDB AudProc vol returned = -1
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
12-08 22:11:23.169 2966 3463 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
12-08 22:11:23.169 2966 3463 D audio_route: Apply path: voice-speaker-dmic-ef
12-08 22:11:23.173 2966 3463 D ACDB-LOADER: ACDB -> send_voice_cal, acdb_rx = 15, acdb_tx = 43, feature_set = 0
12-08 22:11:23.173 2966 3463 D : ACDBFILE_MGR: CmnDevinfo for the devid 0000002B not found
12-08 22:11:23.173 2966 3463 D : ACDB_COMMAND: Failed to fetch the device pair info for devid 0000002B
12-08 22:11:23.173 2966 3463 E ACDB-LOADER: Error: failure to vaildate the device pair = -1
12-08 22:11:23.173 2966 3463 E ACDB-LOADER: Error invalid device pair
12-08 22:11:23.173 2966 3463 D audio_route: Apply path: voice-call speaker
12-08 22:11:23.317 2966 3463 D audio_hw_primary: select_devices: done

It's trying to run platform_send_audio_calibration on device ID 43, but then: ACDBFILE_MGR: CmnDevinfo for the devid 0000002B not found
[Xperia Z3 Compact Original Android Development] Piospi:
[MENTION=8746471]NeoArian[/MENTION]

Did you turn down the volume during phone calls?
[Xperia Z3 Compact Original Android Development] 0LDST4R:
Switched from unofficial LOS 14.1 to this nice LOS 16, GApps super, Magisk 20.1 one week ago, daily driver.

Smooth, fast, stable Rom, nothing more to say. Battery life as ever - good, normal usage during my work day. Losing about 25% power in 10 - 12 hours, some calls, WhatsApp, Google Maps to look for some streets and house numbers ( truck driving ) , GPS fast. Naptime installed to prevent the device to be permanent online.

Deep sleep works, but the mysterious mmc0:0001:2 wakelock is present, but nothing serious, like in all other custom Roms for our Z3C. It does'nt affect battery life.

I had some problems with activated " Ok Google " voice detection ( also a known issue ) and a resulting mic mute during calls, the other person could'nt hear me. I need some experiences from other users if the problem occurs too. I did some personal fixes for the Z2 CarbonROM Pie, and our Z3C LOS 14.1 in the past, and the bug was gone. Tried ( and error :p ) some things, and it seems phone calls are fine now, had no mute mic since yesterday evening with enabled " Ok Google " voice detection.

[MENTION=8746471]NeoArian[/MENTION]

My Z2 is semi bricked, i must say good bye there. In my endless stupidness i destroyed the SIM slot while changing the SIM card. Z2 - micro , Z3C nano - and i put the the frame from the adapter back in my Z2. It's out again, but 2 Pins too. It's sad. If you want the device anyways, i'd send it to you.

Greetz,

0LDST4R
[Xperia Z3 Compact Original Android Development] davestuarts:
Hi, Ok I'm having a issue. I'm using the phone via a MHL adapter and works fine, but when I disconnect cable from the phone, it either crashes and restarts or screen freezes and goes black. There is no response what so ever without a restart.

Any clues?

Thx
[Xperia Z3 Compact Original Android Development] NeoArian:
Hy,

I do not have GApps on my z3c installed currently. I might try it sometimes. Sad to hear that about your Z2. Currently I am pretty busy, just passed my driving license yesterday :victory:. If you don't need your Z2 anymore and want to get rid of it I would take it, SIM is not required for me. It shouldn't be hard to bring lineage 16/17 on it based on z3c stuff anyway. Also my z3c's touchscreen is just working sporadically. Got a really unlucky replacement I guess...
[Xperia Z3 Compact Original Android Development] Sissfighter:
Am I the only idiot who can't get this rom installed? Right now my phone has omni-8.1.0-20180616-z3c-nailyk. Install twrp-3.3.1-z3c-20191107, wipe cache, dalvik cache, data and system, install [OFFICIAL] LineageOS 16.0 for Xperia Z3 Compact, wipe cache and dalvik cache, reboot and phone is completely dead. Neither the power button nor the power and vol buttons do anything. The notification LED blinks slowly when I connect the usb cable. It doesn't matter if the cable is on the charger or on the computer, blinks the same way. When I try to enter the fastboot by pressing vol- and connecting the usb cable, windows does not recognize the device. The same story is with unofficial lineageos 17.0.

*CARBON-CR-7.0-OPAL-UNOFFICIAL-z3c-20190819-2110 works fine and lineage-16.0-20190105-UNOFFICIAL-z3c (first build) works fine but lineage-16.0-20191111-UNOFFICIAL-z3c (last build) also kills phone.

I get my phone working by installing kitkat 4.4.4 with flashtool.

Can anyone tell me what I am doing wrong or what I am not doing or what I am doing too much?

And phone is Sony Xperia Z3 Compact.
[Xperia Z3 Compact Original Android Development] NeoArian:
You should try to also format data, not just wipe it. You should do that to get rid of old encryption footers.
[Xperia Z3 Compact Original Android Development] pawloland:
If nothing works try installing android 6.0 using flashtool from sony also known as emma. It helped me.
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening,

since some of you seem to have problems with echo during calls i have digged through patches developer previously applied to our devices. I have tranfsformed them into two magisk modules and would ask the ones who have the problems to test both of the modules. In the first row please test them one by one and then you can also combine them (just install both). Good luck!

Don't get irritated from the OTA for Lineage 17 text during installation, i just missed to change that from my template.
[Xperia Z3 Compact Original Android Development] Sissfighter:
Thank you for replying but it didn't help
[Xperia Z3 Compact Original Android Development] Sissfighter:
It really did help. Thank you and everyone who thought along.
[Xperia Z3 Compact Original Android Development] 0LDST4R:
Flashed only your mixer paths module and my personal module with a few other props, to fix the mic mute while calling with enabled Ok Google voice detection. No more echo for me atm, clean, nice and really loud voice without noise.

I provide you my module with some props from the SGS4 LOS 16.0, i never had problems with it since LOS 14.1, on my Shinano devices i allways had this Ok Google bug. Test and report please.

And please, don't ask why and how it works - i don't know. :confused:
[Xperia Z3 Compact Original Android Development] NeoArian:
I will take a look into your module. Just to clarify, without the mixer paths module you had an echo at the other end while speaker mode was activated on z3c and with the module it disappeared?

That would mean that we can keep using fluence for speaker mode/ https://review.lineageos.org/c/LineageOS/android_device_sony_shinano-common/+/265583 shouldn't be needed, that would be great.
[Xperia Z3 Compact Original Android Development] 0LDST4R:
Speaker mode not tested, i had an echo during normal calls, seems the mic was too sensitive or whatever - this is gone, on both sides. I never used speaker mode, but i'll test it. I also never changed fluence for speaker or totally disabled it.

Would be nice when other users report their experience.too :good:
[Xperia Z3 Compact Original Android Development] craftyguy:
I tried each of these, and both together, and still experience all of the call audio issues I described earlier :(

I also tried this one, and it didn't resolve anything for me.
[Xperia Z3 Compact Original Android Development] craftyguy:
After some more testing, I'm pretty sure the echo that the person on the other end of the phone call hears is from the absurdly loud in-ear speaker on the z3c feeding back to the microphone. If I mute the z3c, there is no echo.
[Xperia Z3 Compact Original Android Development] 0LDST4R:
Just to clarify, the echo is only in speaker Mode for you, not while normal calls? My priority ever was to fix the " Ok Google " bug, that was more important for me, i very rarely used my phones in speaker mode. Sorry.
[Xperia Z3 Compact Original Android Development] craftyguy:
The volume when *not* in loud speaker mode is extremely high, you cannot comfortably put your ear to it. The echo happens in either mode, but doesn't happen if I hit the mute button in the phone app.
[Xperia Z3 Compact Original Android Development] Bore1:
I think its just that default in call vol is set at max if i adjust it to middle or so its fine , maybe change deafult to middle ?
[Xperia Z3 Compact Original Android Development] craftyguy:
I considered that, but the volume is all the way down. The audio quality is also still terrible (fuzzy, stuttering),and still sounds fine when the phone call is routed through headphone speakers.

The in-ear speaker config for this phone is still broken for me. I can take a video showing this in a few if that would be more helpful..
[Xperia Z3 Compact Original Android Development] craftyguy:
Here's a video I took showing the audio problem with when *not* using speakerphone mode. The attached zip file has a mp4 in it.

I cannot figure out how to make a video showing the echo problem since I used my other phone to record the video.
[Xperia Z3 Compact Original Android Development] BigBrother84:
Hello

There is problem with Bluetooth audio calls in car (there is an echo and second person cannot hear me when I'm driving). Maybe the problem is that mobile phone microphone is working instead of cars microphone. On previous unofficial LOS and stock OS it was working. Please take a look at it ;).
[Xperia Z3 Compact Original Android Development] 0LDST4R:
Ok. Another try for the echo problem. Please try this Magisk Module, uninstall the first one if allready installed. I tested these props in 3 calls, with speaker on and off, and i ( believe ) i can't hear an echo, the other caller doesn't either. Feedback please, and sorry if it doesn't work, i dunno exactly what i'm doing, just playing around with various values from different ROMs, i read a lot ( again ) in the last days about mic problems.

Ok Google voice detection on every screen is enabled in my device, and mic doesn't mute during calls. Values taken from an OPPO thread on reddit.
[Xperia Z3 Compact Original Android Development] craftyguy:
Thanks for helping, I appreciate it. Unfortunately there's no change on my end with this module installed :(

The output speaker is still messed up (extremely loud + really bad audio quality) and I still get the mic echo. I don't use Google voice detection stuff at all (not sure if that would matter or not..)

TBH, I'm not even sure this magisk stuff is even applying. I am using the Magisk Manager, add the module, reboot, and it shows a checkmark next to it like it is applied. I wish there was a more direct way to apply this, e.g. the old school .zip you could flash in recovery after mounting /system and then read back the files that were modified to confirm.

If all this module does is apply the following changes to /vendor/system/build.prop, then I can apply these manually on the phone so I can be sure that your settings are being used:

ro.vendor.audio.sdk.ssr=false
persist.vendor.audio.fluence.mode=endfire
persist.vendor.audio.handset.mic=digital
persist.vendor.audio.voicecall.mic=0
persist.vendor.voice.clarity=none
persist.vendor.aanc.enable=false
persist.vendor.handset_rx_type=DEFAULT
persist.vendor.audio.nsenabled=ON
persist.vendor.audio.spkcall_2mic=OFF
persist.vendor.audio.fluence.audiorec=true
persist.vendor.audio.fluence.speaker=true
persist.vendor.audio.fluence.voicecall=true
persist.vendor.audio.fluence.voicerec=false
audio.offload.disable=1
mm.enable.smoothstreaming=true
vendor.dedicated.device.for.voip=true
vendor.voice.path.for.pcm.voip=false
[Xperia Z3 Compact Original Android Development] 0LDST4R:
You can check if the settings have bewn applied in a terminal window with

su ( enter )

getprop ( enter )

So you must not edit your build prop directly...
[Xperia Z3 Compact Original Android Development] craftyguy:
Ok, I don't currently have root enabled, but I can try this in a few to verify.

I flashed the latest android ROM from Sony to confirm this is a build prop/LOS issue, and the audio quality on the z3c was fine. There was an intermittent echo on the calling device though, it would echo for a few seconds, then stop. So right now I'm building a build.prop that uses all audio settings from the stock ROM that I can find. We'll see if that works or not..
[Xperia Z3 Compact Original Android Development] craftyguy:
Well that was a total failure. I tried several options straight from the Sony ROM (23.5.A.1.291) that I have on hand, and nothing improved the quality to what it was when I flashed that ROM. Maybe the problem is not with some magic combination of crap in the build.prop, but something more fundamental (e.g. some missing driver or device config or ??? in LOS 16.0)?
[Xperia Z3 Compact Original Android Development] 0LDST4R:
You don't really need the su command, it works without it too.

For the values from Stock - i allready used this props - no effect.
[Xperia Z3 Compact Original Android Development] DaveyJC:
I've got two Xperia Z3 Compact, one white that I've used for a year and one new black I've just bought for my father. The first thing I did when it arrived was flashing official LineageOS 16.0. Surprise came when on a call my interlocutor heard himself with severe echo. At first I thought it was surely the other person's phone fault. But after trying with other phones it was Xperia Z3 compact fault.

It is weird since my white Z3C with the latest unofficial LineageOS 16.0 doesn't create echo on the other end [edit: later I noticed my white Z3C also created echo]. So I flashed latest unofficial LOS 16.0 to my black father's phone. Same echo again.

Then I flashed it with unofficial LineageOS 17.0. Same echo again.

Then I flashed it with latest Sony FW with Android 6.0.1 - 23.5.A.1.291. Same echo again, but touching settings (lowering all frequencies in play music equalizer principally) I almost got it working normally. Then I read this was normal with certain Z3C phones with this FW in Sony's forum (search for "talk sonymobile mic problem returned after update 6.0.1" since I can't post links), but this was the latest Sony FW for this phone and it seems Sony left it unsolved.

Then I read that this doesn't happen in old official and original Sony 4.4 firmwares for this phone but I haven't checked it myself.

I thought telling you my experience may help us all in making this phone usable. I hope so.

Maybe when I have time I'll reflash official LOS 16.0 and play with props settings and stuff.

Thank you for this otherwise great rom.
[Xperia Z3 Compact Original Android Development] 0LDST4R:
This is f*cking crazy. Mine is a white device too, and my only problem was the Ok Google bug, like in every ROM for the Shinano family. I'm absolutely out of ideas now.
[Xperia Z3 Compact Original Android Development] craftyguy:
[MENTION=9129635]0LDST4R[/MENTION] what was the last Sony ROM version you had on your z3c before installing LOS on it? On my Nexus 5X, there's a 'vendor partition' which seems to affect the behavior of certain devices on the phone, and can only be updated by flashing 'official' ROMs from the manufacturer. At one time I had to flash a ROM from the manufacturer to update it before something worked in LOS. I could be totally off base here, but is there something similar on the z3c, and maybe some more recent Sony ROM broke something that causes some (all?) of these issues with audio?
[Xperia Z3 Compact Original Android Development] 0LDST4R:
I understand your rumours, believe me. My last version was .291 unbranded Germany, i flashed it a few times, sometimes it was necesarry, re- and unlocked my bootloader, with a TA backup of course. ;)

During the change from LOS 14.1 to this official LOS 16.0 i didn't went back to stock, just wiped the required partitions, updated my TWRP, and that's all.

I had various problems with newer versions of Flashtool than 0.9.18 with the Z3C, Z3, Z2, Z1, Z - the .291 stock ftf was flashed correctly, but ended in 99% in a bootloop. I'm using the version above, i suggest you to flash first a KK firmware, boot into system, after this step flash the .291 ftf - that's my procedure. I relock my bootloader with the command line based tool " TA Backup ".

Additional info about my second posted Magisk Module - in speaker mode there's no echo, but i noticed a low volume. But no other problems in calls, no mute ( Ok Google active ) no noise, no crackling.

Edit:

A very crazy theory :

I ever flashed an older stock FW ( KK, maybe LP, i don't remember exactly ) BEFORE i was going to the last FW .291, because i had problems with Flashtool. It could be necessary to avoid such big problems with audio. The post from [MENTION=2180312]DaveyJC[/MENTION] underlines this. I wouldn't say i had no problems with audio ( Ok Google, echo in speaker mode ) but in my case it's fixed, and the quality in calls is normal. As said before, i'm not a pro, i only " try and error ". And i read. A lot. :D :D :D
[Xperia Z3 Compact Original Android Development] craftyguy:
I am not able to find and versions of stock firmware for this other than the last one that any released, so I'm not sure I can roll back and test your theory :(

Edit: TIL about XperiFirm. I found some update 23.5.A.0.570, I have no idea what it is, but it seems older than what I had before so I'll try flashing that to see if the echo and call audio quality are fixed. If they are, then I can compare the props to LOS and maybe get somewhere :confused:
[Xperia Z3 Compact Original Android Development] DaveyJC:
Search "xperia z3 compact 4.4 firmware" (again I can't link) and you'll find a link to a thread on this forum with the official 4.4.4 Sony firmware.

I wish u success!
[Xperia Z3 Compact Original Android Development] DaveyJC:
Well, I just tried 4.4.4 official firmware on my father's black Z3C and it makes the same echo on the other person's phone.

Besides, I've noticed my white Z3C also makes echo on the other end, but I hadn't noticed until now...

So I have echo on both of my Z3C.
[Xperia Z3 Compact Original Android Development] craftyguy:
Well, I think that pretty much convinces me to give up on this device. Unfortunately the z3c is the only device to run LOS 16.0 that isn't gigantic in size :(
[Xperia Z3 Compact Original Android Development] DaveyJC:
I've installed CarbonROM 6.1 in my black Z3C and the echo seemed similar. Then i've been playing with the build.prop settings and after commenting "ro.qc.sdk.audio.fluencetype=fluence" I've noticed another setting in the same block with "anc" in it (I think it means "Active Noise Canceling/Control"), I've disabled it and it seems way better now. Could you try?
[Xperia Z3 Compact Original Android Development] craftyguy:
What's the exact prop name?

The LOS 16.0 build.prop doesn't have anything with 'anc' in the name. I see the following in some random sony build.prop I have laying around:

persist.aanc.enable=false
persist.vendor.aanc.enable=false

I don't know if those are the same thing you see, or if they are different, or even if they are both the same option with two different names..
[Xperia Z3 Compact Original Android Development] craftyguy:
It would be helpful if you could post the exact build.prop you have where the echo is resolved too :)
[Xperia Z3 Compact Original Android Development] Mr.Tom_Tom:
Call Echos

I do also think that there is an audio issue during calls for some LineageOS 16/17 ROMs. Besides that I also have some echo issues on two out of four Shinano devices (1 Z3 and 1 Z3c has such an issue). My personal theory is that there might be another (hardware related) issue contributing to the echo problem.

To help me to understand the root cause, I'd like to know from those of you who experience this issue:

a) Does the echo occur during normal phone calls or only when you use the "hands-free" speaker mode?

b) Has your phone ever been repaired (display/touchscreen/frame change)?

Why I ask for this: Echos during calls, especially when using speaker mode, may be related to a microphone hardware issue, at least that is my best guess. There are two mics for active noise cancellation. If one does not work correctly, this might create strange echo effects. I guess that if a physical repair has happened sometimes such repairs damage a microphone or at least an acoustic waveguide, these tiny little plastic things with a hole in it, or at least change the acoustic properties of the device. As a result, the anc calibration does not match the expected acoustic properties anymore. Then, when the sound of its own speaker is recorded again through these mics, this sometimes is not correctly filtered out by the anc algorithms.​

c) Which version of the ROM are you using?

d) Did the echo also occur on other ROMs than this (LOS16) one?

Thanks for your support! I am optimistic that we will be able to hunt down the issue and improve at least the in-call volume to reduce the echos.
[Xperia Z3 Compact Original Android Development] craftyguy:
a) It happens in both for me.

b) No repairs

c) LOS 16.0, the first time I installed LOS on this device was lineage-16.0-20191213-nightly

d) When I went back to the .291 stock ROM, there was still an echo. I guess this is a known issue, per the thread on sony's forum that someone linked to here earlier.
[Xperia Z3 Compact Original Android Development] DaveyJC:
I can't say there ain't echo anymore, but it has improved enough for my father. This is with CarbonROM 6.1 (Android 8.1). Could you try these on LOS 16.0?

[IMG="ANC"]https://i.ibb.co/NSNxPV3/anc.jpg[/IMG]
[Xperia Z3 Compact Original Android Development] craftyguy:
Thanks. I gave that a try, and a (strong) echo is still there :(

I mentioned this previously but will repeat in case it was missed: when in a call on the z3c, the echo *goes away* if I mute the mic on the z3c (using phone app). This makes it seem like audio from the speaker is being routed to the mic internally somehow, and isn't when the mic is muted. can the mixer_paths.xml be to blame?