yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Guides, News, & Discussion] sourbear:
[MENTION=3044858]DrakenFX[/MENTION] [MENTION=4911249]Unjustified Dev[/MENTION]

Okay, so I'm running 4.1 patch on LOS 4/10 and this is what's happening...

I had an incoming call from a friend. I answer. Phone is unlocked. I put him on speakerphone and it turns on the top speaker but the audio is still very low.

I press the power button to turn the screen off while I'm talking to him because it's become a lengthy call, no sense in keeping my screen on. Call audio still very low and only playing in the top speaker.

Then I press the power button again, my phone lights up, showing my lockscreen but also>>>>>>> all of a sudden the speakerphone volume increases to loud like it should be and it's playing through both speakers!

But as soon as I slide to unlock (I have SmartLock via location enabled so I don't have to key in my PIN when I'm at home), my phone unlocks, goes to my homescreen, the call stops playing through both speakers and returns to just playing in the top speaker and the audio volume goes back down to real low.

Hope this gets fixed before it's merged into LOS officially.
[ZTE Axon 7 Guides, News, & Discussion] Misux:
Hello! I have already paid the donation!
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Gotcha. Thanks.
[ZTE Axon 7 Guides, News, & Discussion] warBeard_actual:
So, is this issue 100% fixed?
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
100%? Nope. But pretty damn good.

https://xdaforums.com/axon-7/how-to/sound-fix-los-los-base-roms-t3587373

It's being baked into ROMs. Next LOS release will have it include. Not stock quality but very good. Most agree it met the bounty qualifications (stereo with little to no distortion).
[ZTE Axon 7 Guides, News, & Discussion] ((RayDar)):
I just paid. :laugh:

Now if we could just get the Daydream VR stuff fully working.
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Thanks. I totally agree with the VR situation.
[ZTE Axon 7 Guides, News, & Discussion] BlazingBullets:
Camera Would be better than daydream IMO
[ZTE Axon 7 Guides, News, & Discussion] norgan:
Sorry I had forgotten about this. What's the best way for me to get this pledge to you?
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
If you look at DragenFX profile page. He has a donate button, says something about buying a tea or something. Make sure you let him know in the comment section what it is for. He will forward said donation to our anonymous Savior.

Link to to DrakenFX is in OP
[ZTE Axon 7 Guides, News, & Discussion] norgan:
Paid 95T1157865517580P sorry for the delay, I found myself out of work for a while.
[ZTE Axon 7 Guides, News, & Discussion] vishnoo:
lol forgot bout xda for couple months... payment number: 7VM52559KA3124333 cheers :good:
[ZTE Axon 7 Guides, News, & Discussion] :
$10 from me as well.
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
So, is anyone actively working on this?

How's it going?
[ZTE Axon 7 Guides, News, & Discussion] 0Kajuna0:
[MENTION=4127455]azpatterson3[/MENTION] One entry is missing in the original post, [MENTION=1988027]((RayDar))[/MENTION] 's $50

https://xdaforums.com/showpost.php?p=71383495&postcount=17

I'm guessing you are opening the thread on the phone app, and the amount is not visible there, for some reason :)
[ZTE Axon 7 Guides, News, & Discussion] ГАСООП:
Well the dac software is property of akm. Contacting them and getting to cooperation is the only way to get DACs working properly.
[ZTE Axon 7 Guides, News, & Discussion] ashishv:
DAC for headphones work flawlessly on custom roms.
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
I think so too, the speakers are the issue here.
[ZTE Axon 7 Guides, News, & Discussion] ephexxis:
i don't think this is true. everything needed to get this working exists in the stock rom, i don't see any reason why LOS (or any custom rom) couldn't be expanded/adapted with the necessary components once we know all the critical pieces. don't lose hope!

---------- Post added at 03:59 AM ---------- Previous post was at 03:56 AM ----------

you guys may simply be mistaken, after all its not as if the SoC DAC "sounds bad" (im referring to the amp as well as that's honestly the bit that makes the biggest difference in this phone), it's just significantly less powerful, and more prone to crosstalk i suppose (though that bit is likely negligible). IIRC LOS based roms have no DAC toggle and its surely not always on, so...
[ZTE Axon 7 Guides, News, & Discussion] kevinmcmurtrie:
At least by my ears, the speaker sound is remarkably crappy. Play a 440Hz sine wave and adjust the volume up and down. It squeals, hisses, and buzzes loudly on stock. It could be mistaken for a brushless motor driver. If you look in the stock kernel, there's some convoluted code controlling it.

I've done some tests on the headphone amp and it's not correct to call one high-end and one standard. The two amps have different impedance. The normal one is best for standard headphones and the "Super" amp is better for high impedance headphones.
[ZTE Axon 7 Guides, News, & Discussion] ГАСООП:
Because snapdragon 820 itself has a pretty decent audio controller, that's why sound works at all. You see, Qualcomm shares all the sources that's why only snapdragon based phones rceives custom ROMs. I still doubt the akm or zte would share the sources of propetiary DACs drivers. You really think the devs of los wouldn't fix it already if it was possible? As i said, currently customs use sd820 dac and i doubt it's going to change.
[ZTE Axon 7 Guides, News, & Discussion] norgan:
I'll throw in 20
[ZTE Axon 7 Guides, News, & Discussion] KyJelly69:
count me in for $10 US!
[ZTE Axon 7 Guides, News, & Discussion] aLexzkter:
I don't understand this thread...

Only owners of this phone will likely see it, or am I wrong?
[ZTE Axon 7 Guides, News, & Discussion] hgelpke:
I'm in for $10
[ZTE Axon 7 Guides, News, & Discussion] KyJelly69:
Only owners of this phone would care about it.
[ZTE Axon 7 Guides, News, & Discussion] 0Kajuna0:
[MENTION=4127455]azpatterson3[/MENTION] There's still a mistake in the OP list. My name is there twice. The second time should be [MENTION=1988027]((RayDar))[/MENTION] 's $50

https://xdaforums.com/showpost.php?p=71383495&postcount=17
[ZTE Axon 7 Guides, News, & Discussion] aLexzkter:
Exactly. So maybe this thread is not the right approach for our goal and we're waiting for nothing?
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Oops. So you don't want to offer $100?

I fixed it in the list. Thanks for the heads up
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Any suggestions are welcome. A bounty on a developer forum is not a new approach. I just got tired of waiting and doing nothing. I did email AKM and pleaded with them a bit. Besides that, this was the next best thing I could think of. At the very least it is trying something and not hurting anybody
[ZTE Axon 7 Guides, News, & Discussion] bkores:
Wrong company. The speaker issues are because of Dolby, not AKM. AKM is responsible for the headphone audio, which is flawless.
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Will email dolby too. Not being a developer, it gets confusing with conflicting info. I will keep trying. Thanks for the info.
[ZTE Axon 7 Guides, News, & Discussion] bkores:
I don't think they'll be too willing to do anything. Because if you think about it, why would they want to recalibrate the speakers without their own technology? Our best chance is either ZTE or a developer who really knows their s**t.

You should still try though, just in case by some miracle they'll be willing to help.
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Exactly. Probably won't produce results but can't hurt. I'm hoping a developer ends up breaking this or someone has a friend that knows a dude (that kind of thing). Just looking for something to give.
[ZTE Axon 7 Guides, News, & Discussion] rambo8987:
Try devs at nexus it galaxy devices. We used to always have issues we couldn't work around but shaggy one of the lead devs there used to always find solutions. Him and chainfire
[ZTE Axon 7 Guides, News, & Discussion] moosefist:
I got $20 on this.

I really wish that there was a sticky or thread from one of the devs dedicated to specifically the audio issue. Ie what the issue is, what's been tried, or ideas to fix it.

I've dug through the Los thread and it's hard to find the information.
[ZTE Axon 7 Guides, News, & Discussion] xDaDeevellopar:
Let's ask everyone to email Dolby to at least try to get the code and stuff.
[ZTE Axon 7 Guides, News, & Discussion] jawz101:
Lol. Not gonna happen.

Maybe if you write the letter in crayon, include a picture of you walking on crutches, and sign it "Tiny Tim."

Dolby is a company which makes fancy sound effects. Literally, that's all they do. They have patents and sell manufacturers licences to use their sound effects.

I doubt they'll give out code.
[ZTE Axon 7 Guides, News, & Discussion] ephexxis:
setting aside the fact that I'm a DTS guy for a moment, i just have to say that dolby doesn't just make audio effects, they're also pioneers of both multichannel and high quality audio formatting technology as well as the hw/sw codecs in use by a huge number of playback capable electronics. it's not as if they're the worlds leading software equalizer developer who swindled their way into millions of devices; diffused surround wouldn't be what it is today without dolby
[ZTE Axon 7 Guides, News, & Discussion] benny3:
Has anyone collected yet ? Count it up i'm coming after it !!!!
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
I really hope you will be the one who achieves this, none has collected afaik.
[ZTE Axon 7 Guides, News, & Discussion] pelelademadera:
is not possible to use stock kernel and drivers and a custom rom to use the speakers?
[ZTE Axon 7 Guides, News, & Discussion] 0Kajuna0:
Does anyone know why changes made to system/etc/audio_policy_configuration.xml do not stick after a reboot? Do they have to be made somewhere else? Thanks
[ZTE Axon 7 Guides, News, & Discussion] KyJelly69:
there is some command i've seen people use that makes changes stick after reboot. disableemp or something...
[ZTE Axon 7 Guides, News, & Discussion] misterz100:
Put me down for 30 USD

You will be messaging everyone when its ready to collect right?
[ZTE Axon 7 Guides, News, & Discussion] Teet1:
reboot disemmcwp
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
I will gladly do that.
[ZTE Axon 7 Guides, News, & Discussion] 0Kajuna0:
Oh, I ended up replacing the file in TWRP, but the fact is that the file should change the audio config, but it doesn't.
[ZTE Axon 7 Guides, News, & Discussion] _phk_:
Hi,

which kernel .ko module is responsible for sound?

Is it necessary to define a kernel module parameter or to load a fw file with the ko module?
[ZTE Axon 7 Guides, News, & Discussion] Gachmuret:
Any news till now?
[ZTE Axon 7 Guides, News, & Discussion] Druboo666:
its near the Phone Price !lol! !lol! !lol! !lol!
[ZTE Axon 7 Guides, News, & Discussion] tolymatev:
Its ONLY near phone price. I'm surprised, i see a lot of people complaining about this but not much are interested to get someone involved. I remember when i had note4 on Verizon the bounty was 6k or 7k. You know people tried to figure out a way for that kind of money. And a year after the phones release the bootloader was unlocked to everyone's surprise.
[ZTE Axon 7 Guides, News, & Discussion] Gachmuret:
Well I guess people that can afford a note 4 top notch device are better suited to invest in such things then people going for a low budget flag ship device
[ZTE Axon 7 Guides, News, & Discussion] SilentEYE:
And there is a huge difference in the number of users.

The note series is in custom rom delevelopement since the first galaxy note.

I doubt that the new note 8 with a Samsung cpu will have the same bounty like the note 4.

Different times and different expectations.
[ZTE Axon 7 Guides, News, & Discussion] :
No promises, but I'll take a look at our audio issue.
[ZTE Axon 7 Guides, News, & Discussion] vishnoo:
ok, so 25$ from me also to make it work.
[ZTE Axon 7 Guides, News, & Discussion] XBlackChaosX:
I pledge to give $15 to whomever can do this....

Btw I'm definitely a man if my word but how can we be sure that other people are... Is there a way to send the money to an actual fund to then give it to the person who is able to do so? The reason I ask is Just because people have said that they will give a certain amount it doesn't mean that they truly will when/if the time comes.
[ZTE Axon 7 Guides, News, & Discussion] ГАСООП:
Noone is giving anything, as this issue is not possible to solve. You could claim to donate 10000 and still be safe as nobody is going to achieve anything on his own. The only way is to get sources from zte or akm. Anyone who says "I'll try to look at it" is trying to get easy money "for trying". Don't be naive. It's obvious thing, and if you are silly just trust experienced developers.
[ZTE Axon 7 Guides, News, & Discussion] adromn:
I will also give 15$.
[ZTE Axon 7 Guides, News, & Discussion] padule:
The official source code from ZTE should be useful for this task?

http://opensource.ztedevice.com/
[ZTE Axon 7 Guides, News, & Discussion] jim262:
Has Unjustified Dev left?
[ZTE Axon 7 Guides, News, & Discussion] BlazingBullets:
might as well throw down $10
[ZTE Axon 7 Guides, News, & Discussion] HansWursT619:
No, but he has very limited time. There have been no real changes for a few weeks now.

Also, he says that audio can't be fixed without help from ZTE. So he is not working on it. :(
[ZTE Axon 7 Guides, News, & Discussion] :
Yea, audio has to go through the audio amp for any sounds to come out.
[ZTE Axon 7 Guides, News, & Discussion] _phk_:
Then we should all contact ZTE Orr make a petition
[ZTE Axon 7 Guides, News, & Discussion] Yanlux:
I'm pledging 25$ too.

Hope someone will be able to fix this.
[ZTE Axon 7 Guides, News, & Discussion] padule:
As I already pointed out in a previous reply: ZTE released the full source code for Nougat for the Axon 7 (as open source even).

http://opensource.ztedevice.com/

What else should ZTE do to give its help? Is something else needed?
[ZTE Axon 7 Guides, News, & Discussion] runderekrun:
That's just kernel sources. That isn't everything. Of course something else is needed.
[ZTE Axon 7 Guides, News, & Discussion] padule:
Oh I wouldn't expect it to have the whole MiFavor proprietary code, but I thought that it would include the various drivers. My bad.
[ZTE Axon 7 Guides, News, & Discussion] jim262:
Sounds like this won't ever happen and we will be having to run stock roms if you want good quality sound.
[ZTE Axon 7 Guides, News, & Discussion] dbekan%5:
i added 5$ - if there is a fix i will add some more :)
[ZTE Axon 7 Guides, News, & Discussion] azpatterson3:
Check your PayPal. ☺️
[ZTE Axon 7 Guides, News, & Discussion] Misux:
I"ll also add 15$ :)
[ZTE Axon 7 Guides, News, & Discussion] Tahvok:
$30

Crossing fingers that someone knowledgeable might get into this
[ZTE Axon 7 Guides, News, & Discussion] jawz101:
Random thoughts: if this is relevant you may want to update the OP with notes if someone is indeed looking into this.

I've been sifting through github, the stock ROM's file system, and a few tidbits from @Unjustified Dev from a while ago. Something to do with acdbdata and ID's. Anyways, on the stock ROM there's a few extra folders and files in

\system\etc\acdbdata\

\Fluid

\Liquid

\QRD (stands for Qualcomm Reference Design)

Bouncing around:

axon7 acdbdata folder only has \etc\acdbdata\MTP

axon7 vendor.mk file - missing a bunch of references to copying Liquid, Fluid stuff to /system/etc

...compared to the Leeco Le Max 2 (which also supports Dolby Atmos) and their cm14.1 thread...

Le Max 2 acdbdata folder

which looks a lot like our stock ROM acdbdata folder

and the vendor.mk for the Leeco Le Max 2 copies a bunch of fluid and liquid files over to system/etc/acdbdata folder

hopping over to the Haxon repo of the original work on the Axon 7 it looks like they were never present

... some stuff also switched to open source stuff...

https://github.com/Hax-on/proprietary_vendor_zte/commit/b640b2bda6b388bb2edbf4658daf96ec918f6a89

... I dunno. Just taking notes but I'm wondering if the combination of comparing files present in the stock filesystem and missing in the LOS build as well as comparing to code for another phone which supports Dolby Atmos might shed some light.

I know Dolby doesn't equal stereo speakers but it's something to do with sound and I just wanted to write some stuff down somewhere. Besides, I don't know what these acdbdata files do but I know we're missing stuff from the stock ROM

... references to "liquid" and "Dolby" in the android_device_zte_axon7 repo

Axon mixer paths

(Leeco Mixer paths)

<path name="speaker-akm-off-dolby">
<path name="speaker-akm" />
</path>
<path name="speaker-fluid">
<path name="speaker" />
</path>
<path name="speaker-liquid">
<path name="speaker" />
</path>

I guess to see what I'm seeing, 1st, you have to copy the \system folder from a stock ROM to your SD card, then put it on your computer somewhere and do the same with LOS and see where they differ. I use a program like Meld or WinMerge to compare files and folders of 2 directories. Pretty crude and I'm not an Android/Linux dev so I'm just exploring
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
I hope this finding helps, I have faith in fixing the speakers.

I just never won't go back to stock after this, never.
[ZTE Axon 7 Guides, News, & Discussion] jawz101:
Honestly, stock isn't that bad. Well, there's at least 4 things I would change. Scrap there power manager, custom ui, and software bloat and add a night mode and I'd be stock. Unfortunately that none of those things will happen.

I don't understand why manufacturers need to mess with stock unless they're adding improved hardware functions. The hardware sells it for me.
[ZTE Axon 7 Guides, News, & Discussion] jim262:
I just don't like when manufacturers try to prevent you from doing what you want to do with the device you paid for. I could see their point if they retained ownership, but they don't, so you should be able to do what want with YOUR property!

On another note, I believe the problem is with the DAC and not Dolby. From what I understood, ZTE has not been forthcoming in releasing this information.
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
I'm 100% with you on this one.
[ZTE Axon 7 Guides, News, & Discussion] Masterjuggler:
I can get why manufacturers prevent people from modifying the system at least. The phone is under warranty, and if we screw up the phone and send it in, it's entirely our fault and we just cost them money. I wish there was an option for no warranty and everything unlocked though.
[ZTE Axon 7 Guides, News, & Discussion] jawz101:
Is anyone on Badboyz ROM with root?
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
Yes, what do you need?
[ZTE Axon 7 Guides, News, & Discussion] jim262:
Honor/Huawei has long had that option. Get an unlock code from them and to get it you register your IME.
[ZTE Axon 7 Guides, News, & Discussion] jawz101:
I was going to see if someone can do a logcat with something like Matlog on the play store while changing their ringtone volume.

install Matlog and start it

click the little v button in the upper-right so it word wraps

in the search box in the upper-left search for "acdb"

go into your phone settings and lower or raise the ringtone volume so it plays your ringtone

switch back to Matlog and see if it says something like

ACDB-LOADER ACDB -> send_audio_cal, acdb_id = 207, path = 0, app id = 0x11130, sample rate = 48000

ACDB-LOADER ACDB -> send_hw_delay : acdb_id = 207 path = 0

Just curious if it's the same as what it says on LineageOS
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
Okay, gonna do this some time today.
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
[MENTION=1813256]jawz101[/MENTION]

Check it out.
[ZTE Axon 7 Guides, News, & Discussion] HansWursT619:
I add 10$ to this bounty.
[ZTE Axon 7 Guides, News, & Discussion] igbee:
I would throw in $20. I'm on stock but want to flash LineageOS in the future. I got the phone for headphone audio - is the experience the same with Lineage? Is there a Super vs. Normal output in the Sound section like there is for Stock?
[ZTE Axon 7 Guides, News, & Discussion] runderekrun:
Only audio that is ****ed is speaker audio. Headphone, bluetooth, etc all work well.
[ZTE Axon 7 Guides, News, & Discussion] roadworker:
Nope,there isn't a super vs normal setting in Lineage.

However,if you don't care about the hardware speakers,there's no reason to stay on stock for the headphone audio only.

Flash Lineage,root it and install Viper4Arise,you'd be surprised how great your headphones will sound...
[ZTE Axon 7 Guides, News, & Discussion] igbee:
well you sold me! I'm still getting the courage to do the flashing. I had a set back yesterday.
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
I fetched some logs while i opened the music app (running A2017G V1.2.0B01). I then played an mp3 and changed Volume (+1/-1).

Hopefully the attached log file will help.

*EDIT*

[MENTION=1813256]jawz101[/MENTION]

BTW: The output for the ringtone is not the same as on lineage os:

ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11130, sample rate = 48000

*EDIT2*

Ok, this seems to be defined in audio_platform_info.xml.

The STOCK one looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2014, 2016, The Linux Foundation. All rights reserved. -->
<!-- -->
<!-- Redistribution and use in source and binary forms, with or without -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- met: -->
<!-- * Redistributions of source code must retain the above copyright -->
<!-- notice, this list of conditions and the following disclaimer. -->
<!-- * Redistributions in binary form must reproduce the above -->
<!-- copyright notice, this list of conditions and the following -->
<!-- disclaimer in the documentation and/or other materials provided -->
<!-- with the distribution. -->
<!-- * Neither the name of The Linux Foundation nor the names of its -->
<!-- contributors may be used to endorse or promote products derived -->
<!-- from this software without specific prior written permission. -->
<!-- -->
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
<audio_platform_info>
<acdb_ids>
<device name="SND_DEVICE_OUT_SPEAKER" acdb_id="15"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="124"/>
</acdb_ids>
<bit_width_configs>
<device name="SND_DEVICE_OUT_SPEAKER" bit_width="24"/>
</bit_width_configs>
<config_params>
<!-- In the below value string, first parameter indicates size -->
<!-- followed by perf lock options -->
<param key="perf_lock_opts" value="4, 0x101, 0x704, 0x20F, 0x1E01"/>
</config_params>
</audio_platform_info>

Also the perf_lock_opts are different compared to: https://github.com/LineageOS/android_device_zte_axon7/blob/cm-14.1/audio/audio_platform_info.xml
[ZTE Axon 7 Guides, News, & Discussion] DrakenFX:
Well a Fix is been found by an Anonymous User and [MENTION=4911249]Unjustified Dev[/MENTION] he'll be pushing a patch very soon...

Can't freaky wait for next release. Yesssa
[ZTE Axon 7 Guides, News, & Discussion] nfsmw_gr:
whoa is this for real??
[ZTE Axon 7 Guides, News, & Discussion] DrakenFX:
I don't joke with this stuff, I just really really hope is added for Sunday's. / Monday new build