Hi again i have seen a patch for axon 7 to use akm chip in custom roms. Is there a way to enable Hi-Fi sound in axon 7 mini's custom roms? Can we make a patch for it?
Maybe we can port axon 7 patch for us but axon 7's chip is different from mini version.
It has already been proved that aokp and lineage use the hifi chip by default - no patch required
k500zm said:
It has already been proved that aokp and lineage use the hifi chip by default - no patch required
Click to expand...
Click to collapse
Oh thats cool but i have some issues with sound there is some cracklings but i couldnt find why is that happening
k500zm said:
It has already been proved that aokp and lineage use the hifi chip by default - no patch required
Click to expand...
Click to collapse
Any proof of this? I use Neutron for playing flac files. Does it go up to 32bit/192khz?
As a music producer and obviously a sound engineer this makes me laugh there is no point in playing back your music in such rates unless it was recorded in that state in the first place which I know for a fact it was not.
---------- Post added at 02:52 AM ---------- Previous post was at 02:48 AM ----------
Open up a terminal and enter this
Su
And then either
tinymix 826 LowPower
tinymix 826 HiFi
Each of these commands put the phone into the state of either using the external chip for sound or the internal chip on the motherboard try it out for yourself and you will hear that the default is hi-fi
k500zm said:
As a music producer and obviously a sound engineer this makes me laugh there is no point in playing back your music in such rates unless it was recorded in that state in the first place which I know for a fact it was not.
---------- Post added at 02:52 AM ---------- Previous post was at 02:48 AM ----------
Open up a terminal and enter this
Su
And then either
tinymix 826 LowPower
tinymix 826 HiFi
Each of these commands put the phone into the state of either using the external chip for sound or the internal chip on the motherboard try it out for yourself and you will hear that the default is hi-fi
Click to expand...
Click to collapse
It's not that I play files with that high sampling rate/bit depth. It's just that that's how I'm able to verify whether I'm on the Snapdragon DAC vs the AKM DAC (without checking system settings).
You use your ears to hear the difference in sound quality using each of these states and you can hear that hifi sounds much better as it uses the external chip.
k500zm said:
You use your ears to hear the difference in sound quality using each of these states and you can hear that hifi sounds much better as it uses the external chip.
Click to expand...
Click to collapse
Alright. Thanks for the information. I'll take note of the commands you mentioned once I feel like trying custom roms.
To check sampling rate/bit, you need in terminal emulator enter this:
dumpsys media.audio_flinger
And search output with a string < Standby: no >.
You will see parametrs youre music streame.
Good luck!
k500zm said:
As a music producer and obviously a sound engineer ...
Click to expand...
Click to collapse
Hi k500xm. I want to ask you about installing Dolby Atmos on the Axon 7 Mini (LineageOS 14.1); I know that you use AOKP. I also have Magisk installed and there is a module for Dolby Atmos but it's for the Axon 7. Will it work on the Mini? I think in previous posts you mentioned that there is another method for installing Dolby Atmos on the Axon 7 Mini.
Thanks in advance.
Regards
******************
I found your post:
https://forum.xda-developers.com/showpost.php?p=77769526&postcount=15
I think the necessary steps are clearly explained there.
Related
Hi, I'm almost new here
Since this is my first post, I cannot post in the development section, I hope this do not cause problems.
A few days ago I got my first android phone and started to do some low-level development and I needed to record both the input from the headset mic and the internal mic at the same time. I searched a lot on the net and did not find anything useful for the Galaxy S (Vodafone european I9000), so I decided to add this feature to the wm8994 driver included in the samsung kernel source for the Galaxy S.
Since I've never worked with this kind of device, I do not know if this is the correct way to do it, but it seems to work great.
Basicly I've enabled both input at the same time and routed left adc channel output to left audio interface channel and right adc channe output to right audio interface channel. Everything else is on default settings (as configured by MAIN and SUB path, in fact I've just used the same code).
The code also adds a new enum entry for the capture path, called "DUAL", which now is after "MIC OFF", but its just an hack, I'll clean it up later. Using the command "amix" will dump all the mixer channel:
Code:
...
7 MIXER 0 0 0 1 rw ENUM Capture MIC Path { Main Mic=0, Hands Free Mic=1, BT Sco Mic=2, MIC OFF=3, Dual=4 }
...
It can be tested using the pcm_* and mixer_* routines taken from samsung's libaudio, you just need to call pcm_open without specifying PCM_MONO but just PCM_IN, since now both left and right channels will be populated. If you have access to Cyanogen Mod repository, just grab the arec.c source from there and remove the PCM_MONO flag. Beside this I suggest you to dump raw pcm audio and load it into something like Audacity, arec.c seems to produce a wrong riff header.
Now for the questions...
Any ideas on how to correctly setup the gain on both channels? Currently the gain of the headset mic is set to +15 dB on the input PGA and +0 dB on the adc channel while the gain of the internal mic is set to +10.5 dB on the input PGA and +0 dB on the adc channel. I also tried to use the same settings from Voodoo Sound high sensitivity path (with drc enabled), but no results so far... The default gain is far too low, I must talk very near to the headset mic.
Beside this, I've also noticed a strange behavior when recording from both mic. If they're very near, the audio recorded from the headset mic channel will be highly suppressed, if they're far apart, no suppression occurs. As far as I know, wm8994 do not perform noise cancellation on device, any clues on this? Anyway this is not a big deal, since the two microphones will be quite far during normal usage. By far the biggest problem is on the gain for the headset mic.
I hope someone might be interested on this extension to wm8994, this device is really powerful, it's a shame that samsung is using 1/10 of its power...
Attached to this post is the patch file, I've worked on the 2.6.35-12 (recently switched to -13) kernel from teamhacksung, you can get it on github (cannot post the link for the 8 post limit...), just apply the patch from the root kernel directory and rebuild the kernel image as usual.
Any help is highly appreciated
Thanks.
Bye!
EDIT: OPS I'm sorry but I forgot to mention that to enable dual mic recording, you have to activate its path of course through alsa_mixer, like this:
ctl = mixer_get_control(mixer, "Capture MIC Path", 0);
printf("ctl: %x\n", ctl);
if(ctl)
{
int r;
r = mixer_ctl_select(ctl, "Dual");
printf("res: %d\n", r);
}
Click to expand...
Click to collapse
forgive me
i think you should contact supercurio ( https://twitter.com/#!/supercurio )
he's a real badass when it comes to tweaking WM8994 driver
also you might want to check out his app called "voodoo control (plus)"
Welcome to xda! .... That's a great first post!
Sorry to not have any info to help you, but I hope you find what you are looking for and get this working how you want.
I agree that Supercurio is probably the most clued up on audio for these phones. But you probably already knew that since you mention Voodoo Sound (which is his work).
Good luck
Mike
Quake2 said:
Hi, I'm almost new here
Since this is my first post, I cannot post in the development section, I hope this do not cause problems.
A few days ago I got my first android phone and started to do some low-level development and I needed to record both the input from the headset mic and the internal mic at the same time. I searched a lot on the net and did not find anything useful for the Galaxy S (Vodafone european I9000), so I decided to add this feature to the wm8994 driver included in the samsung kernel source for the Galaxy S.
Since I've never worked with this kind of device, I do not know if this is the correct way to do it, but it seems to work great.
Basicly I've enabled both input at the same time and routed left adc channel output to left audio interface channel and right adc channe output to right audio interface channel. Everything else is on default settings (as configured by MAIN and SUB path, in fact I've just used the same code).
The code also adds a new enum entry for the capture path, called "DUAL", which now is after "MIC OFF", but its just an hack, I'll clean it up later. Using the command "amix" will dump all the mixer channel:
Code:
...
7 MIXER 0 0 0 1 rw ENUM Capture MIC Path { Main Mic=0, Hands Free Mic=1, BT Sco Mic=2, MIC OFF=3, Dual=4 }
...
It can be tested using the pcm_* and mixer_* routines taken from samsung's libaudio, you just need to call pcm_open without specifying PCM_MONO but just PCM_IN, since now both left and right channels will be populated. If you have access to Cyanogen Mod repository, just grab the arec.c source from there and remove the PCM_MONO flag. Beside this I suggest you to dump raw pcm audio and load it into something like Audacity, arec.c seems to produce a wrong riff header.
Now for the questions...
Any ideas on how to correctly setup the gain on both channels? Currently the gain of the headset mic is set to +15 dB on the input PGA and +0 dB on the adc channel while the gain of the internal mic is set to +10.5 dB on the input PGA and +0 dB on the adc channel. I also tried to use the same settings from Voodoo Sound high sensitivity path (with drc enabled), but no results so far... The default gain is far too low, I must talk very near to the headset mic.
Beside this, I've also noticed a strange behavior when recording from both mic. If they're very near, the audio recorded from the headset mic channel will be highly suppressed, if they're far apart, no suppression occurs. As far as I know, wm8994 do not perform noise cancellation on device, any clues on this? Anyway this is not a big deal, since the two microphones will be quite far during normal usage. By far the biggest problem is on the gain for the headset mic.
I hope someone might be interested on this extension to wm8994, this device is really powerful, it's a shame that samsung is using 1/10 of its power...
Attached to this post is the patch file, I've worked on the 2.6.35-12 (recently switched to -13) kernel from teamhacksung, you can get it on github (cannot post the link for the 8 post limit...), just apply the patch from the root kernel directory and rebuild the kernel image as usual.
Any help is highly appreciated
Thanks.
Bye!
EDIT: OPS I'm sorry but I forgot to mention that to enable dual mic recording, you have to activate its path of course through alsa_mixer, like this:
forgive me
Click to expand...
Click to collapse
@Quake2 : DO you have datasheet /pin diagram of wm8994
I would like to insert digital data on mic instead reading from analog input
Anyone know of a rom or music player that finally takes full advantage of the ESS dac? I know the LG Music Player plays Hi Rez files correctly but plays 16/44.1 tracks as 16/48. Anyone know of something that plays everything correctly through the ESS?
Use DAC fix from the market if u have problems on aosp otherwise it works on stock ROMs
pbedard said:
Use DAC fix from the market if u have problems on aosp otherwise it works on stock ROMs
Click to expand...
Click to collapse
Think he's talking about that other thread that supposedly found out that the DAC is capable of up to 192kz or whatever the measurement is and there is no way to play a 192 file through Android as it always down samples to 96.
Basically there is no way to take complete full advantage of the DAC because of limitations.
Has anyone gotten AptX to work with their Nexus 6p? I know that Google has not officially added support for AptX to the Nexus 6p within Android Oreo, but they did add this support for the Pixel phones. I also read various articles on how people have been able to enable AptX on developer preview builds of Oreo (for the Nexus 6p) and in some cases within LineageOS. A few weeks ago I tried all the methods listed online, but the information is sparse and it wasn't successful.
1) Has anyone gotten AptX to work within any version of Android on the Nexus 6P?
2) Has anyone been able to flash the necessary blob or drivers to enable AptX within any Rom of Oreo for the Nexus 6p?
If you have this working and could write me a step by step, I'd appreciate it immensely !
I don't have a pair of AptX headphones, otherwise I'd like to test it out, with the new Oreo rom from SuperXE, I remember seeing an option for bluetooth codecs and I saw AptX and AptX HD in the list?
Oreo brings an aptX codec selector option to Developer Settings.
But it does not work on the 6P as there is no aptX codec installed.
I know, because I'm an aptX enthusiast (see my signature) and I just tested it a few minutes ago with my Velodyne aptX headphones.
aptX does not get engaged, so I didn't even bother looking at the logcats since those won't indicate anything without aptX engaging.
I'll probably try hacking aptX into my new/used 6P that I just bought today.
But I don't think it'll work, since recent aptX success stories have all been with Lineage OS 14+ ROM's and I plan to stay with Marshmallow.
But I'll give it a shot over the next week and let ya'll know what I find out.
CZ Eddie said:
Oreo brings an aptX codec selector option to Developer Settings.
But it does not work on the 6P as there is no aptX codec installed.
I know, because I'm an aptX enthusiast (see my signature) and I just tested it a few minutes ago with my Velodyne aptX headphones.
aptX does not get engaged, so I didn't even bother looking at the logcats since those won't indicate anything without aptX engaging.
I'll probably try hacking aptX into my new/used 6P that I just bought today.
But I don't think it'll work, since recent aptX success stories have all been with Lineage OS 14+ ROM's and I plan to stay with Marshmallow.
But I'll give it a shot over the next week and let ya'll know what I find out.
Click to expand...
Click to collapse
@CZ Eddie - any success on this?
I'd really like to get atpX working on my Nougat ROM...
orangekid said:
@CZ Eddie - any success on this?
I'd really like to get atpX working on my Nougat ROM...
Click to expand...
Click to collapse
Yeah, it works fine on my Nougat Resurrection Remix.
Just unzip the attached zip.
Copy the two lib files to /system/vendor/lib
Make them rw-r-r- for permissions.
Reboot and you should be good to go.
CZ Eddie said:
Yeah, it works fine on my Nougat Resurrection Remix.
Just unzip the attached zip.
Copy the two lib files to /system/vendor/lib
Make them rw-r-r- for permissions.
Reboot and you should be good to go.
Click to expand...
Click to collapse
Bad ass man!
I am on RR too so this is cool, after this the headphones just pick up the codec automatically?
edit: would be good to make a flashable zip too.
orangekid said:
Bad ass man!
I am on RR too so this is cool, after this the headphones just pick up the codec automatically?
edit: would be good to make a flashable zip too.
Click to expand...
Click to collapse
Yep, just reboot and you're done. aptX compatible receiver devices (such as headphones) will automatically connect via aptX now.
You know, I've had the worst luck trying to create flashable zips.
The last time any of mine worked was on Marshmallow.
I gave up on them. But if someone points me to a working flashable zip that puts items in /system then I'll mod it for aptx.
CZ Eddie said:
Yep, just reboot and you're done. aptX compatible receiver devices (such as headphones) will automatically connect via aptX now.
You know, I've had the worst luck trying to create flashable zips.
The last time any of mine worked was on Marshmallow.
I gave up on them. But if someone points me to a working flashable zip that puts items in /system then I'll mod it for aptx.
Click to expand...
Click to collapse
I have always just taken an existing zip and modded the contents honestly. But this is fine too, not hard to manually add the libs.
@CZ Eddie
How do you know for sure if your phone is using apt-x codec or not when connected to headphones? Is there an app or something that can tell?
orangekid said:
@CZ Eddie
How do you know for sure if your phone is using apt-x codec or not when connected to headphones? Is there an app or something that can tell?
Click to expand...
Click to collapse
My headset flashes blue a certain amount of times (four) if aptX is online.
But you can also run a logcat. Connect to the headset, then play some music (or aptX won't start). Then stop the logcat and ctrl+f it for "aptx".
If you see it mentioned anywhere at all, then it's working. :good:
Sorry for the dumb question but is it possible to push these files via ADB without Magisk?
Lol there's a magisk module I found that works for enabling AptX on the most recent Oreo Build, it was intended for Oreo beta but it works ! I can't find the thread even though I know it's still out there. Credit goes out to them. Just flash with Magisk and connect a pair to see if it works.
Tested this on Nexus6P with Lg tone Pro using AptX.
https://mega.nz/#!akxSnJAS!-rOJJLFz90V4L_SozcDXQMcR2MmQHEuEba2QPXNaSRY
Hello, Just want to ask is there any method/chance to activate mi sound enhance mode in custom rom like LOS? I know dolby atmos or viper may available but its effect depends upon person to person or it may vary . Personally i tested both but none of them are good as my hearing experiences. Currently I'm using Fiio Ex2 2nd Gen Headphone and good enough for mi sound enhance mode. So my question is there any chances/ method to activate mi enhance mode in custom OS?
gsvbdwn said:
Hello, Just want to ask is there any method/chance to activate mi sound enhance mode in custom rom like LOS? I know dolby atmos or viper may available but its effect depends upon person to person or it may vary . Personally i tested both but none of them are good as my hearing experiences. Currently I'm using Fiio Ex2 2nd Gen Headphone and good enough for mi sound enhance mode. So my question is there any chances/ method to activate mi enhance mode in custom OS?
Click to expand...
Click to collapse
Install ainur sairon from magisk repo and listen the diffy. I use dolby atmos on top of that.
kopitalk said:
Install ainur sairon from magisk repo and listen the diffy. I use dolby atmos on top of that.
Click to expand...
Click to collapse
Thank you for ur Valuable Information
Official update came in yesterday, build No. A5000_23_200601, worked without problem from previous version. Phone rooted with Magisk, so the usual procedure of flashing a twrp recovery and Magisk.
I've just recorded myself playing the piano and what used to be a real strength of the OP5 is gone. Video is fine, but the audio is mono, not stereo. To me, that's a disaster. This is both with the OP5 camera as well as Open Camera. There has to be a way to restore the previous functionality of using the two internal microphones.
While I've found a way to use external stereo microphones via OTG and a separate audio interface, I really want stereo recording vor quick video of a practice session.
This is what today's audio sounds like:
https://www.youtube.com/watch?v=q4P5Pm_ilfw
And this is what the same phone with the previous OOS version sounded like:
https://www.youtube.com/watch?v=qAVxpMDr6Vk
How can I go back to a previous version or get stereo audio back?
...
...
Pho3nX said:
Reason: Don't deserve any help...
Click to expand...
Click to collapse
Wasn't helpful anyway, because different regions in the world get different update versions at different times.
Never mind.