• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[AINUR AUDIO] SAURON MK III [paused] | NARSIL MK I [upd 09.09.2021]

Search This thread

black_file

Senior Member
Jun 1, 2018
173
146
Toulouse
Google Pixel 5
Hey all,
I see all time People don't know if narsil is processing with this command :

Code:
su -c dumpsys audio.audio_flinger

If it's possible can someone give the real output we need to know if it's working ?

Thx all [emoji6]

Envoyé de mon unknown en utilisant Tapatalk
 

drejck

Member
Jan 25, 2011
6
0
hi!
I have a samsung note 4 910c, and even with some modifications instaled still not happy with sound output,so can anyone help me , i am trynig to modify defoult mixer gain file,but unsexsessfouly .something i am not doing correct. so what are max values for incall volume (normal phone deafult speaker) and max gain for headphones music output . all the rest settings are ok.
dont know how to attach defult_gain.config file. sorry.
 

poisonofchoice

Senior Member
Oct 18, 2012
220
26
While flashing Sauron via twrp I get this error: Updater process ended with ERROR: 123

Android version: 8.1

Here's a log file for the error.

Code:
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/sdcard/Download/Audio Mods/AINUR SAURON [MK III] (12.08).zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
- Mounting /system
unzip: can't open /sdcard/Download/Audio[.zip]
! Unable to extract zip file!
- Unmounting partitions
Updater process ended with ERROR: 123
I:Install took 0 second(s).
Error installing zip file '/sdcard/Download/Audio Mods/AINUR SAURON [MK III] (12.08).zip'
Updating partition details..
 
Last edited:

poisonofchoice

Senior Member
Oct 18, 2012
220
26
While flashing Sauron via twrp I get this error: Updater process ended with ERROR: 123

Android version: 8.1

Try renaming the zip file so that there's no spaces anywhere in the name (or path).

Thanks, it worked.

---------- Post added at 08:52 PM ---------- Previous post was at 08:42 PM ----------

Could anyone please tell me if Saunor audio modifications are working?

Here's what I got after running the dumpsys command. I don't know how to interpret this data.

Code:
$ su -c dumpsys media.audio_flinger
Libraries NOT loaded:
Libraries loaded:
 Library audio_pre_processing
  path: /vendor/lib/soundfx/libqcomvoiceprocessing.so
  Noise Suppression / Qualcomm Fluence
    UUID: 1d97bb0b-9e2f-4403-9ae3-58c2554306f8
    TYPE: 58b4b260-8e06-11e0-aa8e-0002a5d5c51b
    apiVersion: 00020000
    flags: 00020203
  Acoustic Echo Canceler / Qualcomm Fluence
    UUID: 0f8d0d2a-59e5-45fe-b6e4-248c8a799109
    TYPE: 7b491460-8d4d-11e0-bd61-0002a5d5c51b
    apiVersion: 00020000
    flags: 00020203
 Library loudness_enhancer
  path: /vendor/lib/soundfx/libldnhncr.so
  Loudness Enhancer / The Android Open Source Project
    UUID: fa415329-2034-4bea-b5dc-5b381c8d1e2c
    TYPE: fe3199be-aed0-413f-87bb-11260eb63cf1
    apiVersion: 00020000
    flags: 00000008
 Library downmix
  path: /vendor/lib/soundfx/libdownmix.so
  Multichannel Downmix To Stereo / The Android Open Source Project
    UUID: 93f04452-e4fe-41cc-91f9-e475b6d1d69f
    TYPE: 381e49cc-a858-4aa2-87f6-e8388e7601b2
    apiVersion: 00020000
    flags: 00000008
 Library visualizer
  path: /vendor/lib/soundfx/libvisualizer.so
  Visualizer / The Android Open Source Project
    UUID: d069d9e0-8329-11df-9168-0002a5d5c51b
    TYPE: e46b26a0-dddd-11db-8afd-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000008
 Library reverb
  path: /vendor/lib/soundfx/libreverbwrapper.so
  Insert Preset Reverb / NXP Software Ltd.
    UUID: 172cdf00-a3bc-11df-a72f-0002a5d5c51b
    TYPE: 47382d60-ddd8-11db-bf3a-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000048
  Auxiliary Preset Reverb / NXP Software Ltd.
    UUID: f29a1400-a3bb-11df-8ddc-0002a5d5c51b
    TYPE: 47382d60-ddd8-11db-bf3a-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000001
  Insert Environmental Reverb / NXP Software Ltd.
    UUID: c7a511a0-a3bb-11df-860e-0002a5d5c51b
    TYPE: c2e5d5f0-94bd-4763-9cac-4e234d06839e
    apiVersion: 00020000
    flags: 00000048
  Auxiliary Environmental Reverb / NXP Software Ltd.
    UUID: 4a387fc0-8ab3-11df-8bad-0002a5d5c51b
    TYPE: c2e5d5f0-94bd-4763-9cac-4e234d06839e
    apiVersion: 00020000
    flags: 00000001
 Library bundle
  path: /vendor/lib/soundfx/libbundlewrapper.so
  Volume / NXP Software Ltd.
    UUID: 119341a0-8469-11df-81f9-0002a5d5c51b
    TYPE: 09e8ede0-ddde-11db-b4f6-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000050
  Equalizer / NXP Software Ltd.
    UUID: ce772f20-847d-11df-bb17-0002a5d5c51b
    TYPE: 0bed4300-ddd6-11db-8f34-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000048
  Virtualizer / NXP Software Ltd.
    UUID: 1d4033c0-8557-11df-9f2d-0002a5d5c51b
    TYPE: 37cc2c00-dddd-11db-8577-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000250
  Dynamic Bass Boost / NXP Software Ltd.
    UUID: 8631f300-72e2-11df-b57e-0002a5d5c51b
    TYPE: 0634f220-ddd4-11db-a0fc-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000248
 Library mot_speaker_helper
  path: /vendor/lib/soundfx/libspeakerbundle.so
  Mot Speaker Helper: Notification / Motorola Mobility, LLC
    UUID: bce61ec2-eca4-445c-9dcb-91cc7cce01ae
    TYPE: 15823d06-dd4a-11db-ba77-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000284
  Mot Speaker Helper: Ring / Motorola Mobility, LLC
    UUID: bce61ec2-eca4-445c-9dcb-91cc7cce01ad
    TYPE: 94823d06-dd4a-11db-ba77-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000284
  Mot Speaker Helper: Voice / Motorola Mobility, LLC
    UUID: bce61ec2-eca4-445c-9dcb-91cc7cce01ac
    TYPE: 84823d06-dd4a-11db-ba77-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000284
 Library mmieffects
  path: /vendor/lib/soundfx/libmmieffectswrapper.so
  MMI Effects / Motorola Mobility
    UUID: bce61ec2-eca4-445c-9dcb-91cc7cce01ba
    TYPE: 74823d06-dd4a-11db-ba77-0002a5d5c51b
    apiVersion: 00020000
    flags: 00000210
 Library proxy
  path: /vendor/lib/soundfx/libeffectproxy.so
  Mot Speaker Helper: Music / Motorola Mobility, LLC
    UUID: 00905020-4e52-11e4-83aa-0002a5d5c51b
    TYPE: 74823d06-dd4a-11db-ba77-0002a5d5c51b
    apiVersion: 00020000
    flags: 00400284
XML effect configuration failed to load.
Clients:
  pid: 1348
  pid: 4899
  pid: 8558
  pid: 9024
Notification Clients:
  pid: 1348
  pid: 1349
  pid: 1362
  pid: 1580
  pid: 4899
  pid: 5146
  pid: 6047
  pid: 6810
  pid: 8558
  pid: 9024
Global session refs:
  session   pid count
       65  4899     1
      105  8558     2
      105  1362     1
      105  1348     1
      105  9024     1
Hardware status: 0
Standby Time mSec: 3000

Output thread 0xac083480, name AudioOut_D, tid 1878, type 0 (MIXER):
  I/O handle: 13
  Standby: yes
  Sample rate: 48000 Hz
  HAL frame count: 192
  HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
  HAL buffer size: 768 bytes
  Channel count: 2
  Channel mask: 0x00000003 (front-left, front-right)
  Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
  Processing frame size: 8 bytes
  Pending config events: none
  Output device: 0 (AUDIO_DEVICE_NONE)
  Input device: 0 (AUDIO_DEVICE_NONE)
  Audio source: 0 (default)
  Normal frame count: 960
  Last write occurred (msecs): 341587
  Total writes: 159
  Delayed writes: 0
  Blocked in write: no
  Suspend count: 0
  Sink buffer : 0xad979000
  Mixer buffer: 0xad977000
  Effect buffer: 0xad90a000
  Fast track availMask=0xfc
  Standby delay ns=3000000000
  AudioStreamOut: 0xad9347d8 flags 0x6 (AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_FAST)
  Frames written: 152640
  Suspended frames: 0
  PipeSink frames written: 152640
  Hal stream dump:
      Standby: yes
      Frames written: 154368
      Errors: 0
  Thread throttle time (msecs): 0
  AudioMixer tracks: 0x00000001
  Master mono: off
  FastMixer thread 0xac00c200 tid=1877  FastMixer command=COLD_IDLE writeSequence=1608 framesWritten=154368
            numTracks=1 writeErrors=0 underruns=0 overruns=0
            sampleRate=48000 frameCount=192 measuredWarmup=211 ms, warmupCycles=6
            mixPeriod=4.00 ms
  Simple moving statistics over last 3.2 seconds:
    wall clock time in ms per mix cycle:
      mean=4.00 min=3.48 max=4.57 stddev=0.09
    raw CPU load in us per mix cycle:
      mean=177 min=0 max=533 stddev=55
  Fast tracks: sMaxFastTracks=8 activeMask=0x1
  Index Active Full Partial Empty  Recent Ready    Written
      0    yes  791       0     7    full   960     151680
      1     no   47       1     5   empty     0       9065
      2     no    0       0     0    full     0          0
      3     no    0       0     0    full     0          0
      4     no    0       0     0    full     0          0
      5     no    0       0     0    full     0          0
      6     no    0       0     0    full     0          0
      7     no    0       0     0    full     0          0
  Stream volumes in dB: 0:0, 1:-25, 2:-6.4, 3:-17, 4:-12, 5:-9.5, 6:0, 7:-25, 8:-25, 9:0, 10:-17, 11:0, 12:0
  Normal mixer raw underrun counters: partial=0 empty=7
  1 Tracks of which 0 are active
    T Name Active Client Session S  Flags   Format Chn mask  SRate ST  L dB  R dB  VS dB   Server FrmCnt  FrmRdy F Underruns  Flushed Main Buf  Aux Buf
    FS   1     no   4899      65 S  0x601 00000001 00000003  48000  1  -inf  -inf     0  00002369   9065       0 f         0        0 AD979000 00000000
  0 Effect Chains
  Local log:
   07-21 12:08:29.660 CFG_EVENT_CREATE_AUDIO_PATCH: old device 0x2 (AUDIO_DEVICE_OUT_SPEAKER) new device 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
   07-21 12:09:12.820 AT::add       (0xac27d000) FS   1     no   4899      65 A  0x000 00000001 00000003  48000  1    -6    -6     0  00000000   9065    9065 F         0        0 AD979000 00000000
   07-21 12:09:13.265 AT::remove    (0xac27d000) FS   1     no   4899      65 A  0x601 00000001 00000003  48000  1  -inf  -inf     0  00002369   9065       0 F         0        0 AD979000 00000000
   07-21 12:09:16.241 threadLoop_standby: framesWritten:152640  suspendedFrames:0  monoPipeWritten:152640  monoPipeLeft:768
   07-21 12:09:16.241 threadLoop_standby: BOOTTIME offset 0
ExtendedTimestamp[0]  position: 0  time: -1
ExtendedTimestamp[1]  position: 152640  time: 156395109729
ExtendedTimestamp[2]  position: 150672  time: 156412754156
ExtendedTimestamp[3]  position: 152640  time: 156395109729
ExtendedTimestamp[4]  position: 150096  time: 156400756344
   07-21 12:10:24.370 CFG_EVENT_RELEASE_AUDIO_PATCH: old device 0x2 (AUDIO_DEVICE_OUT_SPEAKER) new device 0 (AUDIO_DEVICE_NONE)

Output thread 0xabe83800, name AudioOut_15, tid 1879, type 0 (MIXER):
  I/O handle: 21
  Standby: no
  Sample rate: 48000 Hz
  HAL frame count: 1920
  HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
  HAL buffer size: 7680 bytes
  Channel count: 2
  Channel mask: 0x00000003 (front-left, front-right)
  Processing format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
  Processing frame size: 4 bytes
  Pending config events: none
  Output device: 0x4 (AUDIO_DEVICE_OUT_WIRED_HEADSET)
  Input device: 0 (AUDIO_DEVICE_NONE)
  Audio source: 0 (default)
  Normal frame count: 1920
  Last write occurred (msecs): 3
  Total writes: 5908
  Delayed writes: 0
  Blocked in write: yes
  Suspend count: 0
  Sink buffer : 0xad97b000
  Mixer buffer: 0xac07b000
  Effect buffer: 0xad97d000
  Fast track availMask=0xfe
  Standby delay ns=3000000000
  AudioStreamOut: 0xad934810 flags 0x8 (AUDIO_OUTPUT_FLAG_DEEP_BUFFER)
  Frames written: 11343360
  Suspended frames: 0
  Hal stream dump:
      Standby: no
      Frames written: 11343360
      Errors: 0
  Thread throttle time (msecs): 0
  AudioMixer tracks: 0x00000001
  Master mono: off
  No FastMixer
  Stream volumes in dB: 0:-5.8, 1:-33, 2:-42, 3:-19, 4:-16, 5:-42, 6:0, 7:-40, 8:-27, 9:0, 10:-16, 11:0, 12:0
  Normal mixer raw underrun counters: partial=0 empty=0
  1 Tracks of which 1 are active
    T Name Active Client Session S  Flags   Format Chn mask  SRate ST  L dB  R dB  VS dB   Server FrmCnt  FrmRdy F Underruns  Flushed Main Buf  Aux Buf
         0    yes   8558     105 A  0x000 00000001 00000003  44100  3     0     0     0  009F05D0  22050   14994 A         0        0 AF2BA000 00000000
  1 Effect Chains
    2 effects for session 105
        In buffer    Out buffer                 Active tracks:
        0xaf2ba000   0xaf2d1000 -> 0xad97d000   1
        Effect ID 11:
                Session Status State Engine:
                00105   000    003   0xad9202f0
                Descriptor:
                - UUID: 00905020-4e52-11e4-83aa-0002a5d5c51b
                - TYPE: 74823d06-dd4a-11db-ba77-0002a5d5c51b
                - apiVersion: 00000001
                - flags: 00400284 (conn. mode: postproc, insert pref: any, volume mgmt: requires indication, device indication: requires updates, input mode: not set, output mode: not set, offloadable)
                - name: Mot Speaker Helper: Music
                - implementor: Motorola Mobility, LLC
                - Input configuration:
                        Frames  Smp rate Channels Format Buffer
                        01920   48000    00000003      1 (AUDIO_FORMAT_PCM_16_BIT) 0xaf2ba000
                - Output configuration:
                        Buffer     Frames  Smp rate Channels Format
                        0xaf2ba000 01920   48000    00000003 1 (AUDIO_FORMAT_PCM_16_BIT)
                1 Clients:
                          Pid Priority Ctrl Locked client server
                         1348        0  yes    yes      0      0
        Effect ID 19:
                Session Status State Engine:
                00105   000    003   0xad9204d0
                Descriptor:
                - UUID: bce61ec2-eca4-445c-9dcb-91cc7cce01ba
                - TYPE: 74823d06-dd4a-11db-ba77-0002a5d5c51b
                - apiVersion: BE950C24
                - flags: 00000210 (conn. mode: insert, insert pref: last, volume mgmt: none, device indication: requires updates, input mode: not set, output mode: not set)
                - name: MMI Effects
                - implementor: Motorola Mobility
                - Input configuration:
                        Frames  Smp rate Channels Format Buffer
                        01920   48000    00000003      1 (AUDIO_FORMAT_PCM_16_BIT) 0xaf2ba000
                - Output configuration:
                        Buffer     Frames  Smp rate Channels Format
                        0xaf2d1000 01920   48000    00000003 1 (AUDIO_FORMAT_PCM_16_BIT)
                1 Clients:
                          Pid Priority Ctrl Locked client server
                         9024        0  yes    yes      0      0
  Local log:
   07-21 12:08:29.665 CFG_EVENT_CREATE_AUDIO_PATCH: old device 0x2 (AUDIO_DEVICE_OUT_SPEAKER) new device 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
   07-21 12:10:24.373 CFG_EVENT_RELEASE_AUDIO_PATCH: old device 0x2 (AUDIO_DEVICE_OUT_SPEAKER) new device 0 (AUDIO_DEVICE_NONE)
   07-21 12:11:00.642 CFG_EVENT_CREATE_AUDIO_PATCH: old device 0 (AUDIO_DEVICE_NONE) new device 0x4 (AUDIO_DEVICE_OUT_WIRED_HEADSET)
   07-21 12:11:00.679 AT::add       (0xab8a0000)      0     no   8558     105 A  0x000 00000001 00000003  44100  3     0     0     0  00000000  22050       0 f         0        0 AF2BA000 00000000
   07-21 12:14:55.248 removeTrack_l (0xab8a0c00)      1     no   8558     105 T  0x000 00000001 00000003  44100  3     0     0     0  00000000  22050       0 I         0        0 AF2BA000 00000000

Output thread 0xabd033c0, name AudioOut_1D, tid 1881, type 0 (MIXER):
  I/O handle: 29
  Standby: yes
  Sample rate: 48000 Hz
  HAL frame count: 768
  HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
  HAL buffer size: 3072 bytes
  Channel count: 2
  Channel mask: 0x00000003 (front-left, front-right)
  Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
  Processing frame size: 8 bytes
  Pending config events: none
  Output device: 0 (AUDIO_DEVICE_NONE)
  Input device: 0 (AUDIO_DEVICE_NONE)
  Audio source: 0 (default)
  Normal frame count: 1152
  Last write occurred (msecs): 497987
  Total writes: 0
  Delayed writes: 0
  Blocked in write: no
  Suspend count: 0
  Sink buffer : 0xabef7800
  Mixer buffer: 0xabef5000
  Effect buffer: 0xad964400
  Fast track availMask=0xfe
  Standby delay ns=3000000000
  AudioStreamOut: 0xad934848 flags 0 (AUDIO_OUTPUT_FLAG_NONE)
  Frames written: 0
  Suspended frames: 0
  PipeSink frames written: 0
  Hal stream dump:
      Standby: yes
      Frames written: 0
      Errors: 0
  Thread throttle time (msecs): 0
  AudioMixer tracks: 0x00000000
  Master mono: off
  FastMixer thread 0xabc83100 tid=1880  FastMixer command=COLD_IDLE writeSequence=0 framesWritten=0
            numTracks=0 writeErrors=0 underruns=0 overruns=0
            sampleRate=0 frameCount=0 measuredWarmup=0 ms, warmupCycles=0
            mixPeriod=nan ms
  No FastMixer statistics available currently
  Fast tracks: sMaxFastTracks=8 activeMask=0
  Index Active Full Partial Empty  Recent Ready    Written
      0     no    0       0     0    full     0          0
      1     no    0       0     0    full     0          0
      2     no    0       0     0    full     0          0
      3     no    0       0     0    full     0          0
      4     no    0       0     0    full     0          0
      5     no    0       0     0    full     0          0
      6     no    0       0     0    full     0          0
      7     no    0       0     0    full     0          0
  Stream volumes in dB: 0:0, 1:-25, 2:-6.4, 3:-17, 4:-12, 5:-9.5, 6:0, 7:-25, 8:-25, 9:0, 10:-17, 11:0, 12:0
  Normal mixer raw underrun counters: partial=0 empty=0
  0 Tracks
  0 Effect Chains
  Local log:
   07-21 12:08:29.671 CFG_EVENT_CREATE_AUDIO_PATCH: old device 0x10000 (AUDIO_DEVICE_OUT_TELEPHONY_TX) new device 0x10000 (AUDIO_DEVICE_OUT_TELEPHONY_TX)
   07-21 12:10:24.377 CFG_EVENT_RELEASE_AUDIO_PATCH: old device 0x10000 (AUDIO_DEVICE_OUT_TELEPHONY_TX) new device 0 (AUDIO_DEVICE_NONE)

USB audio module:
  No output streams.

  No input streams.

Reroute submix audio module:
 route[0] rate in=0 out=0, addr=[]
 route[1] rate in=0 out=0, addr=[]
 route[2] rate in=0 out=0, addr=[]
 route[3] rate in=0 out=0, addr=[]
 route[4] rate in=0 out=0, addr=[]
 route[5] rate in=0 out=0, addr=[]
 route[6] rate in=0 out=0, addr=[]
 route[7] rate in=0 out=0, addr=[]
 route[8] rate in=0 out=0, addr=[]
 route[9] rate in=48000 out=48000, addr=[]
$
 
Last edited:

sachb_htc

Senior Member
Feb 7, 2016
93
17
DxB
Hello developers/people, I've successfully installed Ainur Narsil + Viper4android on my G7+ ThinQ, but I would like to know what the useroptions are for & how do you use them?

Also, is it better to have Ainur Narsil mod alone or should it be Ainur Narsil + Viper4android combo?
 
Last edited:

64ashg

Senior Member
May 18, 2014
548
351
Redmi K20 Pro
Hello developers/people, I've successfully installed Ainur Narsil + Viper4android on my G7+ ThinQ, but I would like to know what the useroptions are for & how do you use them?

Also, is it better to have Ainur Narsil mod alone or should it be Ainur Narsil + Viper4android combo?
For my setup,
Oneplus3t & redmi k20pro
Sony Mdr150ap,
Bass guitar heavy, warm songs,
2/6 channel movies and streaming music
Ainur narsil + viper works best. With ddc and kernel files from viper thread.

Now the question you need to ask yourself is what you listen, soundstage & genre wise, what is your equipment to listen from, streaming or flac etc. Try and experiment for yourself and report back..
 
Last edited:
  • Like
Reactions: Ibanez33
Mar 20, 2017
45
4
Hello! Ainur Narsil fails to install in Magisk manager. Downloaded the zip from the modules tab in Magisk Manager itself.
Android Kitkat 4.4.4 (Touchwiz)
This phone doesn't have custom recoveries available. Tired flashing the zip in a anykernel3 capable app but it fails to even start the flashing process.

Magisk failed install log : View attachment 5092945
Is there anything I can do to fix this ? or does this phone have a broken filesystem ?
 

phantom146

Senior Member
Apr 30, 2015
1,081
1,127
Malabon
For my setup,
Oneplus3t & redmi k20pro
Sony Mdr150ap,
Bass guitar heavy, warm songs,
2/6 channel movies and streaming music
Ainur narsil + viper works best. With ddc and kernel files from viper thread.

Now the question you need to ask yourself is what you listen, soundstage & genre wise, what is your equipment to listen from, streaming or flac etc. Try and experiment for yourself and report back..

May I ask what audio mods you have and what user options did you enable with redmi k20 pro? Did you use aml together with v4a? Etc.

I'm asking because I have some problems with aml and narsil with v4a together, the sound won't play with bluetooth. Has this happen to you?
 

64ashg

Senior Member
May 18, 2014
548
351
Redmi K20 Pro
May I ask what audio mods you have and what user options did you enable with redmi k20 pro? Did you use aml together with v4a? Etc.

I'm asking because I have some problems with aml and narsil with v4a together, the sound won't play with bluetooth. Has this happen to you?
Yes it has indeed. For bluetooth, after setting up everything and with narsil and v4a working with 3.5 mm jack, just goto magisk manager and in modules untick aml. Reboot and open v4a, let it install and reboot and open v4a and if required, let it install and reboot again. You should be fine then. This workaround is for android 10. Look for v4a installation in v4a by team levitt thread.
 

phantom146

Senior Member
Apr 30, 2015
1,081
1,127
Malabon
Yes it has indeed. For bluetooth, after setting up everything and with narsil and v4a working with 3.5 mm jack, just goto magisk manager and in modules untick aml. Reboot and open v4a, let it install and reboot and open v4a and if required, let it install and reboot again. You should be fine then. This workaround is for android 10. Look for v4a installation in v4a by team levitt thread.
Thanks mate, do you use acp as well?
And can you send here the user options you use for narsil?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 425
    deXo70Y.jpg

    [AINUR AUDIO] (named after John R.R Tolkien mythology) mod was conceived on 12th January 2016 at Russian 4pda forum, with an idea to create the ultimate universal tuning solution, that can help people get more from their devices in terms of audio capabilities. Ever since that time we have been aiming at achieving new heights & providing you with a set of different mods (now archived): Pandora as universal SW optimizer, Nero as coloration fx remover, Kronos & Atlant as specific variety of device dependent mods with heavy tuning for different qualcomm cpu's. This allowed us to experiment & to find limitations of what can be tuned in terms of software & hardware within different smartphone configurations.
    We were also first to successfully implement hex disassembling method for proper effects porting. Further hex investigations showed that other audio "mods" contained nothing but huge amounts of bloat files, that needlessly took up massive amounts of space on system partitions. Our disagreement with the developers of said mods at times resembled a genuine "war". The discovery of our disassembling method, proper implementation of basic mods & port addons (along with quite a bit of patience) brought you our best solution yet, to help optimize sound on your android device and reach the desired high level of quality, regardless of device manufacturer or cpu.

    To go further we now starting a new era of audio mods with a brand new SAURON modification to bring you best sound ever in the audio modding history.

    From Mordor
    With love





    Press:
    Head-Fi


    Contact & Socials
    Official website
    Telegram chat (brace yourselves - memes ahead!)
    VK group
    Facebook group
    Discord group
    Reddit discussion


    ADDITIONAL INFO:
    Android audio mods mythbusted
    FAQ


    [Ainur Audio] team
    @UltraM8 /[email protected], @stake263, @red_naxella /[email protected], @SashaSmile, @doma999, @Mostafa Wael, @Zackptg5, @defcomg, @ahrion, @AlienCreature7, @LazerL0rd, @james3460297, @Skrem339


    Like our work?
    Support us!
    Paypal


    News
    New years greetings & Sauron MK II launch
    Sauron MK III preparations. Seeking community help!
    329
    [Ainur SAURON] MK III

    PLKzgED.png
    Named after villain from Lord of the Rings mythology - SAURON, this mod automatically detects your device specs (soc/android sdk/rom/oem/proprietary stuff), and performs all of the possible audio patches that might boost sound. Sauron is system-wide modification - all of the patches are aimed to rework system components for androids audio subsystem and should work for headphones/speaker/bt. There is no app/UI.

    MOD IS ON PAUSE, IS NOT UPDATED FOR LONG TIME AND WON'T BE ANYTIME SOON


    Basic features:
    - Android 5.0 - 9.0 support
    - Unity installer by @ahrion and @Zackptg5
    - Qualcomm/Exynos/MTK/Kirin/Rockchip/Spreadtum cpu's support
    - ARM 32/64 bit support
    - Android SFX blobs eplacements (musicfx & audiofx apps might no longer work)
    - Cherry picked setprops
    - Automatic su.d/init.d/addon.d detection
    - Supported roots: Magisk 18+ /SuperSu/CMsu/PHH/LosSU/No root
    - AML addons ready
    - OTA surviving

    Advanced features:
    - Qualcomm codec mixer tunings
    - Htc u11/u11+, m9, 10, m8 speaker amps patches and additions
    - OnePlus 5/5T, Mi 8UD/EE, Mi a2. Pixel 1/XL, Pixel 2/XL, Pocophone speaker amp DSP modifications
    - Forced Hexagon DTS Headphone:X module processing, mixer controls & custom config
    - * DAC powered devices mixer edits:
    - LG v20/30/30+/g6/g7
    - LeEco x800/x900
    - Nubia z11/z9/z9m
    - Axon 7 (moved to custom kernel)
    - Lenovo vibe X3

    * Parameters forcing for DACs is achieved with mixer additions, thus either framework, or service apps can reset some values back to stock. Sorry, but it seems like device manufacturers doesen't want us to mess with these thing. There is a solution, but unfortunately it won't happen till probably next major version.

    User determined features:
    You can set these features with sauron_useroptions (UO) file, by placing it to the root of the internal storage. Installer will place the file there during the install, if it's not there already. After resetting values you have to reinstall Sauron each time you want to try/set something new. Some of the stuff there can break sound completely - there is no fix for that, you have to reset stuff back & don't use some of the features that breaks normal use of your device.
    I've commented pretty every single thing there with all the info I know by this moment, make sure not to bother me with questions like "wut is dat XXXX feature for, dude?" please :)

    - ACDB replacements
    - Universal remover for compressor SFX
    - Universal install for Fmas effect
    - Qualcomm shoebox & audiosphere effects
    - Qualcomm codec bitsize, impedance and discretization forcing
    - Compander remover
    - Aptx/hd libs, props & hexagon cappi libs install
    - Reverb effects for PCM conversions
    - Audio policy patching
    - Codec power gating remover
    - Qualcomm BT scrambler resamling
    - Exynos codec resampling
    - MTK gain setter
    - MTK Impredance setter
    - MTK high-pass filter remover


    Installation:


    !! Debugging !!​
    READ CAREFULLY​
    For an error during TWRP - get ainur_debug logs, that are generated to sdcard during install.
    Sauron is located in sbin/.magisk/img /ainur_sauron , or sbin/.core/img /ainur_sauron for magisk - this is your starting point.

    1. Make sure you don't have anything set in UO, before posting something doesn't work as intended. Check clean install (UO unset) in the first place.
    2. For bootloop you'll need to provide ADB logs
    3. For any bug after bootup (ie weird device behavior, sound loss, etc) - use matlog app to generate logs


    ALL the wrong logs for your issues will be completely IGNORED

    VERY IMPORTANT !
    Study sauron_useroptions carefully - some combinations could lead to huge sound problems (as it's mentioned in the file), that WON'T be determined as issues. You have to find and you working combo on your own!

    Installation
    Magisk users with /dsp mounting error should flash with twrp!

    MKIII archive - download and flash with TWRP/Magisk


    Changelog:
    Code:
    MK III 12.08.2019
    - Unity 4.4 update
    
    MK III 27.05.2019
    - Installer fixes
    
    MK III 03.05.2019
    - Unity 4.1 update
    
    MK III 31.03.2019
    - Unity 4.0 update
    - magisk 19 support
    - qualcomm 855 support
    - various installer fixes
    
    MK III 01.01.2019
    - Fully reworked installer (unity & aml updated)
    - Support for MTK/Kirin/Exynos mixers
    - SFX blobs rebased (including new base for MTK/Kirin/Exynos)
    - Reworked props
    - New UO features:
     - qualcomm acdb replacements, power gating disabling, bt scrambler resampling
     - Exynos codec resampling
     - MTK codec mixer edits: gain setter, impedance setter, high-pass filter remover
    - Reworked UO features:
     - Qualcomm codec bitsize & discretization forcements are deepen to support Hexagon DSP as well
    - Reworked mixer edits for qualcomm powered devices
    - Reworked kernel modules blobs & Hexagon dsp modules
    - Further experiments with aptx/hd, including better support for Pie
    - Experiments with speakers amplifiers DSPs: (Pixel 1/XL, Pixel 2/XL, Htc u11/11+/12/m9, Mi a2, Mi 8EE/UD, Oneplus 5, Pocophone)
    
    MK II.II 19.06
    - AML update & fix
    
    MK II.II 13.06
    - AML/Unity update
    
    MK II.II 02.05
    - UO detection critical fixes
    
    MK II.II 01.05
    - unity update
    - various fixes
    - UO updated
    
    MK II.II 18.04
    - installer fixes
    
    MK II.II 15.04
    - unity update
    - minor edits & fixes
    
    
    MK II.II 24.03
    - audioserver fixes
    - better Treble (Oreo & P) compatibility
    - removed policy patches for better AML compatibility
    
    MK II.II 22.03
    - Op3/t & Op5/t fixes
    - Minor Oreo edits
    - Various minor edits
    
    MK II.II 17.03
    - Various fixes & edits
    
    MK II.II 11.03
    - Android P support
    - Various fixes & edits
    - Axon7 patches moved to kernel by Skrem339
    - Sfx libs changes
    - Htc m7-m9 rt5501 & 5506 jack amplifier patches (libs hex patched by UltraM8)
    - Htc u11/u11+ speaker amp patches (beware, it blows :) )
    - Pixel devices experimental amp patches (sailfish, marlin, taimen, walleye)
    - Qualcomm RX HPH edits for HiFi mode
    - Oreo aptx/hd, ldac added by LazerL0rd
    - Fmas edits
    - UO file edited
    - Axon7 patches moved to kernel by Skrem339
    
    MK II.I 26.02
    - Unity 1.3 update
    - Various fixes
    - New UO 
    
    MK II.I 20.02
    - Critical installer fixes
    - Completely reworked core libs
    
    MK II.I 07.02-08.02
    - Unity installer
    - Critical bug fixes
    
    MK II.I 06.02
    - SFX libs install logic patches
    - Minor bug fixes
    
    MK II 13.01
    - aml 2.9
    - got rid of hw dolby
    
    MK II (beta 1 - stable) 31.12-01.01
    - Revamped installer 
    - Unity/AML v2.8
    - Added UO logic
    - Rebased SFX libs
    - Removed alsa
    - HTC U11/U11+ speaker amplifiers patches 
    - HTC m9/m8/10 amplifier drivers additions (possibly reroute headphones path with tfa amp)
    - Full Oreo (8.0+) support
    - OP5/5T speaker amp drivers additions for tfa9890
    - Added Qualcomm Shoebox 3d and Audiosphere audio effect libs, props & mixer controls
    - Added Fmas effect libs & props
    - Added UO controls for impedance, bitsize & discretization
    - Added snap 820/21/35 Speaker boost & voltage edits from Oreo
    - Added Hexagon DTS Headphone:X module, mixer switchers & controller config
    - Added Hexagon Dolby modules & mixer switcher
    - Added Qualcomm BT resampler (idk if it can even work)
    - Reworked props + added some new found by hexing
    - Set higher value for preallocated DMA memory buffer
    - Added kernel modules for QC codec
    - Added APTX/HD libs, props & hexagon cappi libs
    
    MK I.IV.II
    - Installer critical fixes
    - magisk v13 support
    - new sfx libs
    
    MK I.IV.I
    - Installer critical fixes
    
    MK I.IV
    - Installer critical fixes
    - Added [user=4544860]@osm0sis[/user] busybox
    
    MK I.III.I
    - Installer fixes
    
    MK I.III
    - Installer fixes
    - New libs base + SFX patches
    - Qualcomm dac patches from older versions
    - HTC patches from older versions
    
    MK I.II
    - Installer fixes
    - SFX patches
    
    MK I - I.I
    - New libs base
    - Survive Rom dirtyflashing
    - Bug fixes

    You are not allowed to use any parts of this mod in your own roms & mods!
    212
    Ainur narsil [ mk i ]

    pGVJ6SP.jpg

    NARSIL in Tolkien’s legendarium was the sword that defeated Sauron villain.
    This Mod cleans android sfx from both stock and OEM effects as much as possible - delivering unbound sound the way hardware (internal codecs/dacs/amps) was meant to sound by manufacturer. It’s a system-wide modification - meaning it should affect general playback outputs: headphones/speaker/bt). There is no app/UI.


    Basic features:
    - Android 4.0 - Q support
    - MMT-EX installer by @Zackptg5
    - Supports most SOCs
    - ARM 32/64 bit support
    - Cherry picked setprops
    - Automatic su.d/init.d/addon.d detection
    - Supported roots: Magisk 18+ /SuperSu/CMsu/PHH/LosSU/No root
    - AML addons ready
    - OTA surviving
    - Android SFX tract removal

    Advanced features:

    - Qualcomm/MTK/Exynos mixer patcher
    - Speaker amps calibration replacements for some devices
    - * DAC powered devices mixer edits:
    - LG v20/30/30+/g6/g7/v40
    - LeEco x800/x900
    - Nubia z11/z9/z9m
    - Axon 7 (moved to custom kernel)
    - Lenovo vibe X3

    * Parameters forcing for DACs is achieved with mixer additions, thus either framework, or service apps can reset some values back to stock. Sorry, but it seems like device manufacturers doesen't want us to mess with these thing. There is a solution, but unfortunately it won't happen till probably next major version.

    User determined features:
    You can set these features with narsil_useroptions (UO) file, by placing it to the root of the internal storage. Installer will place the file there during the install, if it's not there already. After resetting values you have to reinstall Narsil each time you want to try/set something new. Some of the stuff there can break sound completely - there is no fix for that, you have to reset stuff back & don't use some of the features that breaks normal use of your device.

    - OEM sfx restorer (in case of bugs)
    - ACDB replacements
    - Qualcomm codec bitsize, impedance and discretization forcing
    - Compander remover
    - Audio policy patching
    - Codec power gating remover
    - Qualcomm BT scrambler resamling
    - Exynos codec resampling
    - MTK gain setter
    - MTK Impredance setter
    - MTK high-pass filter remover



    Installation:


    !! Debugging !!

    READ CAREFULLY
    For an error during TWRP - get ainur_debug logs, that are generated to sdcard during install.
    Sauron is located in sbin/.magisk/img /ainur_sauron , or sbin/.core/img /ainur_sauron for magisk - this is your starting point.

    1. Make sure you don't have anything set in UO, before posting something doesn't work as intended. Check clean install (UO unset) in the first place.
    2. For bootloop you'll need to provide ADB logs
    3. For any bug after bootup (ie weird device behavior, sound loss, etc) - use matlog app to generate logs


    ALL the wrong logs for your issues will be completely IGNORED

    VERY IMPORTANT !

    Study narsil_useroptions carefully - some combinations could lead to huge sound problems (as it's mentioned in the file), that WON'T be determined as issues. You have to find and you working combo on your own!


    Installation
    Since 04.03 supports only magisk flashing


    NARSIL MK I
    download and flash with Magisk

    Narsil is not yet added to magisk repo. Will do soon!


    Changelog:
    Code:
    09.09.2021
    - MMTEX canary magisk support
    
    01.01.2021
    - Installer fixes
    - Realme fixes
    
    09.04
    - MMT-EX installer fixes
    
    27.03
    - MMT-EX installer support for magisk 20.4
    
    04.03
    - MMT-ex installer
    - aml support update
    
    MK I 27.05.2019
    - Unity update
    - Various compatibility/device specific fixes
    
    MK I 27.05.2019
    - Initial release
    210
    The ugly thruth about effects ported from other devices

    Xda's sound mods history goes deep down in ages, but there is one particular myth that stays strongly. This myth is based off idea that we can port some external software effect from one device to another. That is completely wrong & most technologies CAN'T be ported.
    Almost a year and a half i got my htc m8 drowned & I bought myself meizu m2 note. This device has the worst audio u can imagine, so i started modding it. The first idea was to use well known mods from android software development section. Still I was really unsatisfied with the audio, so I started "porting" & mixing things on my own. After a while i teamed up with several guys from 4pda, that stated "Dude, u do everything wrong. Most of the stuff u are using is not working". OK. So, instead of believing in their words I googled how to make logs, got myself a proper Disassebler & start discovering on how things are working for real.
    It's been a huge drama over this thread between me & Arise team. But they are sitting on the very top of the junkyard & there are plenty of "port" mods in this xda section, where things are even worse. I understand that users & evangelists of these mods will call me idiot & stupid, but several people that asked "hey guys, can u explain me how does *thatparticulartechnology* works?" & those people never had a chance to have clear answers. Have u ever interested why? Because people don't know. They think, they can pull several apk's, libs, jars, etc - and this makes effects to work. Well in some cases like Dolby, previous MaxxAudio builds, Am3D, Arkamys - that will work. But for most others it WON'T EVER (well there is a trick, but no one except one guy can do that).
    Now I'm gonna share with you all of my findings:

    Beats Audio. It's been a very huge history in putting beats libs & binaries into mod's. The first thing you need to consider - beats are deeply bind in HAL. Original HTC m7 flinger has special beats switchers in it, that control the whole effect. Beats API then is tied to Sense framework & several others files. If we open the original file from the M7 - we see that the effect starts with reference to 16A44 substream, and then goes on distributing to multi-channel substreams. So the only thing u need to do - port flinger from m7 to the desired device. The only way to do that - closed arm porting - that is a very tricky way I still don't understand, but Sun_dream successfully did that several times (last time he ported H/K to m9 from m8). Well, we also can replace the HTC M8 flinger with beats one entirety – it will work, but this trick works only under MM. No way to replace flinger on MM & up. All of those "dummy-binaries" like "beatsbass", "beatsnormal", renamed libraries & other stuff - is just nothing but a trash that never worked properly & never will.
    Pictures:
    Beats API in flinger lib
    dXYwQg4.jpg

    qJXIq9A.jpg


    Harman/Kardon & Jbl. Another HTC technology that people desperately want to port. H/K switcher stays in flinger just the same as Beats. The only way to fully port that - using closed arm porting, but still u would need Htc device for that. There is no other way.

    Harman/Kardon from Huawei. I never examined Huawei's pad flinger, but having "libaudioflinger.huawei.so" libs in "ports" is a real surprise. As u can see it refers to original flinger to set HiFi setup. Not every HAL has those connections, or they are written in another way, so the libs won't work on many devices. Also, note that original MediaPad has Kirin CPU, which is different from Qualcomm, MTK & Exynos - the purpose of having H/K from is highly debatable.
    Pictures:
    Hifi setup
    M4zXmPm.jpg



    SRS. From the dark ages of android, SRS was used by HTC to optimise your video experience. From 2015 Sony placed it in their XperiaX & XZ. If htc was using it for video stuff, sony uses it for speaker & virtualizer bundle. The problem behind porting it - the good all flinger & HAL. Yes, SRS is also written in flinger, so no way it will work outside original device.
    What surprises more - is edits devs make to srs configs for those devices that originally has it - like Project Yume pushes the eg compressor value to 15000. While the maximum is only 1. Even if this effect works for your device, dear devs change it so deep, that it becomes non working)


    DeeHX & LDAC. Sony’s Dseehx optimization works ONLY with proper player (Sony’s default music player & PowerAmp) that has DseeHX API. Even when you port SOMC & try to switch DseeHX you won’t hear any audible changes as this thing is also deeply integrated in the whole framework. If you take a look at Z2/Z3 threads - u can see, that before Sony made DseeHx for Z3, people tried to port it from Z5 & failed. Even when Sony finally made it working on Z3 the cap was 96 upsampling) This thing is very specific & hw dependent, so claiming that you have successfully ported - is ridiculously stupid.
    Speaking of Ldac - i didn’t examine it deeply, but my guessing is that it is tied to adtp policy, which can’t be replaced with just your wish.
    When you make a port of Sony features - you clearly can hear some noticeable changes to audio - i guess that is work of Xloud &/or Clearphase &/or ClearAudio. I didn’t found anything in logs, when i was playing with files from XZ & X. So let’s call this stuff as “partially working”.


    DTS. There are various devices having DTS - vivo, asus, acer - but none of them are truly working. For example vivo stuff relates to huge amount of files in the system which works only on vivo. Asus DTS is seeking for particular app (which devs are deleting, cause it can’t be properly porter and modified) & for special flinger that has “Icepower” switcher in it, or at least has set the “fasttrack” to “false”. I’m waiting for acer jade2 - so i can take a look at it’s implementation of DTS, but as far other phones are very hw & framework dependent, I highly doubt it can be ported.


    Audio_effects Configs. Now that is the “greatest” & the funniest part of all. I can imagine that “modders” are lazy enough, they don’t want to use disassembler & google. But writing mad configs - is a real disaster. Devs call this “method” an “engine” - what they basically do is putting a non working effect like “eagle_pipeline” (that is used in DTS effects) & trying to stick to standard proxy lib) The whole config in a typical way is written for soundfx API to take part in rendering the audio - like “preeffect” bundle is setting echo cancellation & controls gain, rewerbwrapper is controlling the amount of reverberations & is typically used for aux setup, etc. That is why most of audio_effects configs looks the same, with small integrations of other effects phone developers put into it, so that their own effect will work. But you can’t load unloadable effect (any of those i wrote above), by mixing it with standard API. HAL would appeal to particular library & particular uuid of the effect & only then, if needed will load standard API to render the sound.


    This info i was collecting for last half a year. I might be wrong in several places, but I guess you got the main idea: most of effect technologies rely much on particular frameworks & Hw stuff. I’m not sorry for being rude to several people over this thread & there are several other guys i disrespect even more for trashing the whole AD&H section with their crap (no, not Arise guys, as i said - they are just the top of the junkyard). This whole situation leads me to idea, that 90% of “modders” doesn't know what they really do. What is even worse - other people take their work & use it in their projects, so after a while everyone believes that this stuff is truly working. That huge amount of partially working “mods” are trashing your system partition with up to 200+ mb of useless files! “Modders” make ridiculously stupid mistakes, but users still admire & praise them. I don’t need to soothe my ego that much, I just want to warn users of that rubbish: please, don’t be fooled! Make your own research!
    192
    [Addons] ported audio effects & standalone DSPs

    OILsrAS.png
    These are third-party effect ports & standalone DSPs which can be used on their own, or combined with Ainur mods.
    To use multiple Ainur mods/addons magisk users have to install AML module from magisk repo


    JamesDSP ->
    DTS HPX & X Ultra ports->
    Ciaomeme audio+ mod for several xiaomi devices->


    Discontinued:

    These are old addons that are no longer updated &/or upstreamed to new unity/aml.
    Dolby->[/URL
    Bang&Olufsen icepower port [URL="https://forum.xda-developers.com/showpost.php?p=70935959&postcount=1027"]->

    Arkamys effect port ->
    Dirac effect port ->
    Fiio's V4A irs convolvers ->