yashsingh1/xdaforums huggingface dataset:
[Android Software Development] goludr:
Where is download link ????
[Android Software Development] NPina:
Hello, first of all thank for this amazing mod, but i need to boost ear volume in call, already try in /sbin/.magisk/mirror/vendor/etc and /sbin/.magisk/modules/ainur_sauron/vendor/etc, where are the correct path, for editing mixer_paths.xml?

Thanks
[Android Software Development] NPina:
I found it, its are in /sbin/.magisk/modules/ainur_sauron/vendor/etc

Problem solved

Thanks
[Android Software Development] a g bell:
That link has been broken for ages
[Android Software Development] cybugz:
The new version of narsil is not working on note4 n910c. Always installation failed due to detected other audio mod even i have no other mods installed in my device. Older version still working perfectly on my device without any failed error.
[Android Software Development] kopikodeku:
latest Ainur Sauron MK make Xiaomi RN5 Oreo 8.1 stuck logo. After disable from magisk manager be normally again
[Android Software Development] joegenegreen2:
Sauron/Narsil to AVR Distortion

Hey everyone - is there any specific reason why when I have either Ainur Sauron or Ainur Narsil flashed as my only audio mod (one or the other, never both at the same time) my AV receiver can't accept 24-bit-padded 44100 Hz audio?

I have an H918 LG V20, rooted, on a mostly stock Oreo 8.0 (I still use the Alpha-Omega ROM), and I'm using a MK2000 2.2 kernel (but a C-Language variant.) I use Etymotic ER4XR in-ear monitors for my regular listening, and they work with 24-bit-padded 44100 Hz audio beautifully. No weird distortion whatsoever. I use Neutron as my music application, but I redownloaded UAPP just to test against for sanity check(s). Both apps produce the same behavior.

I have 3 different Yamaha AV receivers in my house - anytime I try to use a 3.5 mm stereo cable from the V20 to the AVR's, I get this terrible loud buzzing sound. I thought the buzzing was the only sound being produced, but after I started fiddling with pre-amp gain and standard gain, I actually heard some lyrics/music getting through. But it's still horribly distorted and actually sounds like it's being slowed down - so even if I was able to clear out the buzzing, what I was hearing underneath all the buzzing is still very, very obviously wrong.

I had an idea last night/this morning to dig up the manual(s) for my AVR(s) and tried hooking the V20 up to the 'DIRECT' analog connections, so there would be no signal processing done by the AVR(s). Unfortunately, my idea didn't work and it still produced the same, distorted/buzzing behavior.

I also have a 'dumb' little portable mono speaker that I tried this morning, and it was a buzz factory, too.

I have a little ground-loop noise isolator from Amazon (Mpow, AMZ product id: B019393MV2) from back when I had a car with a stereo input jack. I tried that, too, and it didn't help whatsoever.

I also dug through a lot of various forums, YouTube videos, this thread, etc. etc. and saw some suggestions of using a resistor in-line would help? I haven't tried that, but one guy mentioned trying a headphone splitter with the in-ear monitors hooked in while trying playback on an AVR (the idea was that the monitors that actually work would somehow bring the noise down for the other half of the split connection to the AVR.) Not only did that not work, but it actually reproduced the terrible audio in my IEMs!

If I allow Neutron or UAPP to play 48000 Hz music, the audio is accepted universally and plays back as it should - just not at 44100 Hz like I want. :(

I feel like this is either an edge-case or a no-brainer, and it's driving me crazy trying to figure it out on my own. Anyone have any help/suggestions/ideas?

Note:

I do use "su -c dumpsys media.audio_flinger" directly on the device (through Termux) to be sure of what frequency is actually being served up.

[Link to the kernel in case anyone needs to see it => https androidfilehost dot com forward-slash question-mark w=files & flid=292539 (no spaces.)]
[Android Software Development] UltraM8:
Navigate to ainur mod folder under magisk, find /etc folder & try deleting mixer_paths files there. This is the first thing that comes to my mind. In recent update JohnFawkes added switch in UO that disables high impedance mode, but I can't imagine why that might cause any delay. Wonder what is considered normal behavior without mods.
[Android Software Development] joegenegreen2:
Thanks so much for being the first to reply - I honestly appreciate it a lot.

I’m out of the house for the next 5-ish hours, but this will be the first thing I do when I step in.

I tried removing all audio mods, and then my receivers (if I remember correctly, it was several Hail Marys ago) seemed to accept 24-bit-padded at 44100 Hz. I will reconfirm that when I get home, too, if it’s something you’d like for me to check; I wrote that off as more of a diagnostic than an actual solution. I really appreciate the work you guys have done and I would much rather have Ainur (Narsil now, but Sauron the last year or so) on my device than not.

If you want to know non-rooted behavior, I’m afraid I can’t provide that info - I use the V20 as a music player almost exclusively, so rooting it was the first thing I did (since I don’t depend on it as a phone.)
[Android Software Development] joegenegreen2:
Unfortunately, nullifying the mixer_paths file at /data/adb/modules/ainur_narsil/system/etc seems to have resulted in no change. I didn’t delete it, but I did append “.bak” - I assume that was okay, right?

I rebooted to recovery and did the file renaming there (from TWRP) - I’m also assuming I wouldn’t need a second reboot for the change to be applied, but please tell me if I’m mistaken.
[Android Software Development] DingoDingo:
Same behavior on my LG V20, just to add, when playing through high impedance headphones (I have one 400 ohm and one 600 ohm) there is same distortion as when conected to preamp with 3.5 mm jack. Everything is fine with 32 ohm IEMs.
[Android Software Development] UltraM8:
Mixers are in vendor/etc for oreo+. Another thing to try is removing system.prop file from the root of ainur_narsil folder. If you didn't touch policy patching in UO - thats the last thing I might suggest (though again, it's to weird to mess the delay. It's too strange that both player apps having their own 41khz force playback having issues with mod params - that's a rare prob, I'll ask v35 & g7 guys to test similar behavior, maybe there is something going on on v20.
[Android Software Development] joegenegreen2:
Okay, I didn’t have much time to tinker today, but I uninstalled Narsil and deleted my user options files for both Sauron and Narsil.

When I rebooted, I went and tested the V20 on my bedroom AVR and it worked. It played clear, 24-bit-padded 44100 Hz audio.

My initial plan was to reinstall Narsil, but it’s the end of the day for me and I’ve got to doze for a bit. Also wanted to wait and see if you wanted to know anything else about the audio (mod-less) system while I have audio mods uninstalled?

---------- Post added at 10:34 PM ---------- Previous post was at 10:23 PM ----------

Thanks for making me feel less crazy! I’m just glad that we’re narrowing down the problem a bit more.

And I looked up the specs for my Etymotic ER4XR IEM’s and I think they’re about 45 ohm. When I plugged the V20 into my AVR(s), I checked a few times and they were reported by the device as “High Impedence” and I think it said 50 ohm.

My Etymotic monitors have never been seen as “High Impedence” by the V20. Now I’m wondering if the problem is directly linked to high impedence connections triggering whatever it is that LG’s “High Impedence” mode does, or tries to do.

Edit:

Then again, like I mentioned before, my little cheap mono speaker reproduced the same behavior as the AVR(s). Would something like that (little battery-powered speaker that fits in the palm of your hand) be generalized as a high ohm device?
[Android Software Development] DingoDingo:
Any sample/bit rate played as Bitperfect through UAPP or Neutron is distorted when attached to high impedance device (at least 400 ohm and more).

It is defenetly something with impedance and Narsil combination on LG V20.
[Android Software Development] bbcastro:
Hey,

I installed the latest Sauron, audio compatibility patch, aml and v4a on my oneplus 7. I love it for my headphones but I feel the sound coming out of my speakers is murky and distorted, so I uninstalled everything. But it keeps sounding a bit distorted, and I want to make sure I am back to orginial factory configuration.

So I can I make sure I completely eliminated all sound effects (without factory reseting ideally)?

Thank you
[Android Software Development] joegenegreen2:
If you definitely uninstalled everything - reflashed the installation .zips so that they stated they were uninstalling during execution instead of installing - I think you did all you can do. There are user-option configs for the Ainur mods (not sure about how Viper works, I’ve never used it) - but they don’t do anything as far as I know without the mod(s) installed to go with them.
[Android Software Development] ShadoV90:
Hi guys. I am using LG G7. I tried to recreate that behavior on my phone.

I installed Ainur Narsil in clean mode, so no User Options has been edited.

I set UAPP to Direct mode, and played song through Tidal.

Song has been played in 44100 Hz and 24_3LE (or 24 bit packed) mode.

I was listening through Superlux HD668B headphones. They have 56 ohm impedance, which forces High Impedance Mode.

Results: Songs were played clearly. No distortions. Clean sound unfortunately. Unfortunately, because if it will behave strangely, then i will do some tests and find a solution. Now i can only guess what happen.

And if you are rooted and have terminal app then you can check impedance of headphones typing su-c tinymix and check HPHL Impedance and HPHR Impedance if they are implemented.
[Android Software Development] joegenegreen2:
Thanks for checking it out on your device - and also, big thanks for the terminal command to check detected impedance - that will help me at least get some more accurate ideas of what each AVR and that mono speaker are working with.
[Android Software Development] RafaEl.Zgz:
Hi there, I don't have the original UsbC to Jack adapter that Xiaomi includes and I am looking a way to connect my Jack headphones to the Mi9. Any suggestions ? I have a budget of 20 $ more or less. I like to have a "pro" DAC and connect it via OTG but I think all are too expensive, anyone can recommend a good and cheap dongle UsbC to Jack?

Thanks
[Android Software Development] jcmm11:
Just looking through some Amazon listings I think one of these should do the trick

https://www.amazon.com/dp/B07S33GV3V/ref=cm_sw_r_cp_apa_i_vkWxDbK6SK0YE

https://www.amazon.com/dp/B07PT6P4K6/ref=cm_sw_r_cp_apa_i_vHWxDb0KJH3FM
[Android Software Development] RafaEl.Zgz:
Thanks 4 ur answer, both seems pretty good options.
[Android Software Development] Nicolia:
Hi all,i have LG G7 and stock Pie and i installed Narsil from,but it not worked,i mean volume not increases like on Oreo,i mean that mixer do not turn on to High independence mode.What can i do to repair this ?Thx for yours answers
[Android Software Development] ShadoV90:
The problem is, you must install terminal app and (while not listening anything) type in it: su -c killall audioserver and all audio files will be loaded again.

I have LG G7 too and i don't know what LG does, but with every reboot only default settings are loaded. So every reboot you must type it in terminal.
[Android Software Development] Nicolia:
It's worked,thank you very much for your helpful answer:):good:
[Android Software Development] UltraM8:
We gonn add this for next update
[Android Software Development] Frugipon:
[SAURON/NARSIL] Resample user option for Exynos (N_ESMPL) not applying

Hello,

I'm on international Galaxy S7 (SM-G930F, with Exynos 8890 and CS47L91 integrated audio chip), running LineageOS 16 (build 20 09.07.2019).

If I set the sample rate to 44.1kHz in the EXYNOS OPTIONS section of narsil_useroptions or sauron_useroptions as:

N_ESMPL=[B]44.1kHz[/B]

it does not have any effect (verified with Neutron MP or with V4AFX).

Whether I set this in Sauron or Narsil as the only mod (only one at a time obviously and reflashing the selected mod to apply the change) or with other audio mods (AML + V4AFX), it's the same result: Android keeps resampling everything to 48kHz :confused:.

Meanwhile, the android option to change the

Bluetooth

sample rate in the developper options works as intended (verified with Neutron MP or V4FX).

I also changed the number of volume steps in the same useroptions files and it does apply. So my issue is limited to changing android sample rate.

I have attached both ainur_narsil-debug.log and narsil_useroptions files.

I am looking for guidance on how to troubleshoot the fact that the chosen sample rate is not applied.

Thanks
[Android Software Development] flyl0:
It doesn't work anymore .. the app has totally disappeared lol
[Android Software Development] Hellboy4:
After you install this mod. How do you know if this mod working ? Thanks

---------- Post added at 05:12 AM ---------- Previous post was at 05:10 AM ----------

After I install this mod. How I know if this mod working ?

Thanks
[Android Software Development] a g bell:
Asking again are they any plans for Dirac zip to flash on customs roms as the links don't work https://xdaforums.com/showpost.php?p=71401673&postcount=1291 the dirac2 test zip l found causes havoc when flashing on op5 with the latest firmware

??
[Android Software Development] jay-em-ass:
I have a Xiaomi Mi 9 SE and every AOSP rom I flash on this device wont boot any more as soon as I Install NARSIL (tried Magisk and TWRP).

I just clean flashed two roms and just installed NARSIL -> stuck in boot logo.

Just with crDroid I get it to boot but afterwards there is no sound from the speaker any more.

Is there anything I can do or any hint I can give to the rom developers?
[Android Software Development] AgnishRoy:
The nougat link is giving Error 404
[Android Software Development] a g bell:
Flashing this breaks sound from my headphone jack on op5 with audio library mod zip and viper legacy zip flashed ?
[Android Software Development] aL_09:
How do I know it's working perfectly?
[Android Software Development] Santhonius:
If it sounds different it's working. If you don't like it then you can tweak on the settings AFTER RESEARCH
[Android Software Development] cybugz:
Guys.. is there anyone here has a download link or copy of old version of narsil.?. New version of narsil is not working on my galaxy note 4 exynos.
[Android Software Development] BlackCashmire:
Which mod is the best for OnePlus 7 Pro?

Wysłane z mojego GM1913 przy użyciu Tapatalka
[Android Software Development] JaylanPHNX:
Assuming they both work (no compatibility issues) then it's a matter of taste. It's pretty easy to try them both. It only costs you a little listening time and a few reboots.
[Android Software Development] Cygnuss:
I installed Ainur Sauron a few days ago, today i remove it and tried Ainur Narsil and the difference is like night and day much better sound.

Thanks for this project and all the effort you guys put on this great mod :good:
[Android Software Development] wawanRedblack:
Which one is better? Sauron or narsil?
[Android Software Development] Keule-Tm:
This post is pretty useless if you don't at least state the hardware you're running it on.
[Android Software Development] :
Try both. It's depends on your taste.
[Android Software Development] Cygnuss:
Sorry you are right though is in my sig, Redmi Note 7 Custom rom Lineage (RR Pie) and Aln Kernel :good:
[Android Software Development] serpent android:
Was using viper but the sound seemed heavy and hard.tried narsil and it seems to be great with the internal dac.using lg v20 alpha omega rom oreo,mk2000 kernel,xposed. I wish we could get some sort of a graphical UI for narsil...
[Android Software Development] serpent android:
Hi.after setting the 24 bit option do u have to reflash narsil?or just with a text editor save the new value and reboot...
[Android Software Development] Sukhwinder449:
You need to reflash so that Narsil can patch things with new value.
[Android Software Development] serpent android:
Thanks alot.any idea about the optimum values for lg v20 ..
[Android Software Development] joandarc:
I am using a Samsung g900f with RR Nougat.

With Magisk I combined V4 Android, Ainur James DSP and Sauron. James DSP was installed AFTER Viper just to replace the driver with the god like "Bit Perfekt" Driver. So I can use the UI from Viper4A with the driver of Ainur. The same combination should be posible with Narsil. I have with "Bit Perfect" a realy room filling bas, warm and flashing, combined with crispy highs
[Android Software Development] UltraM8:
Hey people, so finally after a month of wait and after couple months before that new device is here. I want to thank all people who donated back in early summer once again, with your help I have now a new device with up-to-date specs to play around with. Not only for audio, but to learn new stuff on kernel & rom deving.

Regarding the device itself - surprisngly this ain't nubia, it's k20 pro. Now to me both are kinda equal ****, with basic specs being same (which were main goal), just one is from metal & the other retarded glass that I hate so much. On the other hand zte never updates their red magic lineup to newer android, nor ever updates sources after initial push. So when money finally got to me from campaign and prices on nubia went up, I had to make a quck decision in the last minute. From deving perspective k20 is much better as it already has andro10 beta, will def have sources updated for 10 officially (maybe even official 11, or at least partial sources update). Will have to wait a week more for bootloader unlock, before new device gets usable now.

Once again - thx everyone for the support! Mordor will always remember you guys!
[Android Software Development] ekha24:
hello guys, i have a little question.

how to playback 44.1 khz after installing narsil? i've got no sound when playback on that frequency.

everything is fine before narsil installed..

i tried to set audio_policy and audio_output_policy to be true on UO file but nothing change.. still no sound.

any solution guys?
[Android Software Development] serpent android:
Anyone out there who has enabled 32 bit audio in narsil user options. I have a lgv20 oreo mk2000 kernel.what difference is there in audio and does enabling 32 bit audio have any distortions aur sound.breaking.?
[Android Software Development] ShadoV90:
In addition you can choose wchich route your phone will take:

In my LG G7 in file "audio_policy_configuration_lge.xml" i must do these changes because when you are changing bitrate or bit depth in deep_buffer, speaker stops working.

So i deleted compressed offload for headphones, and deleted deep buffer for speaker. Now it's working like a charm:

- Headphones will work with first direct mode if app support it or deep buffer but without compress offload (personal choice, i am using 176400 Hz [44100x4] and 32 bit with deep buffer)

- Speaker will work with compressed_offload or primary output, but without deep buffer, so speaker is working perfectly

<routes>
<route type="mix" sink="Earpiece"
sources="primary output,direct_pcm,compressed_offload,voip_rx,BT SCO Headset Mic,mmap_no_irq_out,incall_music"/>
<route type="mix" sink="Speaker"
sources="primary output,direct_pcm,compressed_offload,voip_rx,BT SCO Headset Mic,mmap_no_irq_out,incall_music"/>
<route type="mix" sink="Wired Headset"
sources="primary output,deep_buffer,direct_pcm,voip_rx,BT SCO Headset Mic,mmap_no_irq_out,incall_music,dop"/>
<route type="mix" sink="Wired Headphones"
sources="primary output,deep_buffer,direct_pcm,voip_rx,BT SCO Headset Mic,mmap_no_irq_out,incall_music,dop"/>
<route type="mix" sink="Line"
sources="primary output,deep_buffer,direct_pcm,voip_rx,mmap_no_irq_out,incall_music"/>
<route type="mix" sink="HDMI"
sources="primary output,deep_buffer,multichannel,direct_pcm,compressed_offload,compress_passthrough,voip_rx,dual_audio"/>
<route type="mix" sink="Proxy"
sources="primary output,deep_buffer,multichannel,direct_pcm,compressed_offload,dual_audio"/>
<route type="mix" sink="BT SCO All"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,incall_music"/>
<route type="mix" sink="USB Device Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback,incall_music"/>
</routes>
[Android Software Development] Sir_gpm:
I just got my Mi 9T unlocked so start flashing everything that I need and Narsil is one of those things, tried to flash with Recovery with no luck, got error. But then tried with Magisk and the magic happend installed without a problem.
[Android Software Development] Lord. Tech:
I flashed both narcil and MKIII in magisk and rebooted, i get an icon called james dsp but it keeps crashing.

I'm new to this n can't seem to get it to work. I did not touch the user file which is set to default.

Should i change something?

Any suggestions?

Ps im on oneplus 6, crdroid rom, in case that's important.
[Android Software Development] derders:
Where do you read that you have to flash both at the same time?

either Narsil or MKIII... and JamesDSP doesen't install with one of the mods...

what I mean is we have to guess how you installed it - give the exact steps + logs and you will perhaps get better help

and read and search the thread a little bit more ...
[Android Software Development] Lord. Tech:
Hey man Thanks for your reply.

Exactly what i did is just download both files from op

Open magisk, flash both, reboot.

And then an app appears called james dsp which crashes

I uninstalled both mods

James dsp icon disappeared

N now I'm here looking to install it correctly

I did read the op for installation and i guess only thing i didnt do is create an empty file for compatibility thing.

I'm sorry that OP seems a bit clustered tech-talk for someone with a bio background like me, n I'm sure most of u know the tech language but its a bit confusing to me.

Ok so these are 2 seperate mods n i can use just one of them at a time right?

Id really appreciate a few simple steps to get it to work. :o
[Android Software Development] jcmm11:
You can use either Sauron or Narsil, not both. JamesDSP is another mod.

What device, what version of Android?
[Android Software Development] derders:
okay you unistalled both mods? how do you uninstalled it? per magisk or in TWRP?

- first AINUR Mods have no APPs

- if you say JamesDSP app crashed you have installed it yourself so you have download it via Magisk OR in

JamesDSP Audio Manager thread

if you want it working with AINUR you need the Audio Modification Library

- download [Ainur SAURON] MK III OR Ainur narsil [ mk i ]

- go to your recovery TWRP and install one of them

- read the text and look again if it says installed - if you reflash the .zip it will uninstall the mod

flash AINUR than JamesDSP than AML .zips one after one
[Android Software Development] Sukhwinder449:
I turn off compressor, acdp patch, 30 volume steps only. Try and see for yourself.
[Android Software Development] serpent android:
How dod you turn off these values.. I couldnt find it in the narsil User options file
[Android Software Development] Sukhwinder449:
It's mentioned in instructions given at start of file. Put value to true to use the options you want. Leave others unchanged. I'm on another unrooted device so can't help you much atm. If I remember correctly these were values I turned on

Vtsp=30

Comp=true

Acdp=true

Oap=true

These values worked well for me without issues.