Skip to content

Commit 713b474

Browse files
authored
Add files via upload
* Nullifying the volume listener for no compressing audio (maybe a peak limiter) on Motorola devices * Changed an error message for no Magisk mirrors
1 parent 739c864 commit 713b474

6 files changed

Lines changed: 78 additions & 75 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ For maximizing the audio fidelity, this module reduces less than 50 Hz (longer t
9696
| 120 | 35 | (97) | 110 | ES9038PRO (Fast roll-off N-fold over-sampling) |
9797
| vary 50 ~ 118 | 34 | 96 | (398) | ES9039PRO (Fast roll-off N-fold over-sampling) |
9898
| 110 | 40 | (96) | 109 | CS43131 (Fast roll-off N-fold over-sampling) |
99+
| 110 | 40 | (96) | 109 | CS43198 (Fast roll-off N-fold over-sampling) |
99100
| 98 | 130 | 98.5 | | MacOS Leopard (guess) |
100101
| 159 | 240 | | 99 | iZotope, No-Alias (guess) |
101102
| 100 | 64 | | 99 | SoX HQ linear phase (guess) |

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Change logs
22

3+
# v2.5.13
4+
* Nullifying the volume listener for no compressing audio (maybe a peak limiter) on Motorola devices
5+
* Changed an error message for no Magisk mirrors
6+
37
# v2.5.12
48
* Tuned for POCO F3 and other "kona" board devices by adjusteding their core control parameters
59
* Improved and fixed GPU boosting for recent Qcomm and Mtk SoC's

customize.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
if ! isMagiskMountCompatible; then
88
abort ' ***
9-
Aborted by no Magisk-mirrors:
10-
try again either
11-
a.) with official Magisk v27.0 (mounting mirrors), or
12-
b.) after installing "Compatible Magisk-mirroring" Magisk module and rebooting
9+
Aborted by no magisk-mirrors (even including kernelSUs):
10+
Try again after reawaking the mirrors
11+
by installing my another magisk/kernelSU module
12+
"Compatible Magisk-mirroring" and rebooting
13+
1314
***'
1415
fi
1516

jitter-reducer-functions.shlib

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,53 +1472,53 @@ function getSchedulerValues()
14721472
"boost" )
14731473
case "`getSocModelName`" in
14741474
sm[6-8]* )
1475-
echo "127 0 36 516 0"
1475+
echo "133 0 36 516 0"
14761476
;;
14771477
sdm8[5-9]* | sdm9* )
1478-
echo "127 0 36 516 0"
1478+
echo "133 0 36 516 0"
14791479
;;
14801480
gs* )
1481-
echo "127 0 36 516 0"
1481+
echo "133 0 36 516 0"
14821482
;;
14831483
sdm8* )
1484-
echo "127 0 36 516 0"
1484+
echo "133 0 36 516 0"
14851485
;;
14861486
sdm* | msm* | sd* | exynos* )
1487-
echo "127 0 38 517 0"
1487+
echo "133 0 38 517 0"
14881488
;;
14891489
mt68* )
1490-
echo "127 0 36 516 0"
1490+
echo "134 0 36 516 0"
14911491
;;
14921492
mt67[7-9]? )
1493-
echo "127 0 36 516 0"
1493+
echo "133 0 36 516 0"
14941494
;;
14951495
* )
1496-
echo "127 0 36 516 0"
1496+
echo "133 0 36 516 0"
14971497
;;
14981498
esac
14991499
;;
15001500
"medium" | *)
15011501
case "`getSocModelName`" in
15021502
sm[6-8]* | sdm8[5-9]* | sdm9* )
1503-
echo "96 0 36 516 0"
1503+
echo "127 0 36 516 0"
15041504
;;
15051505
gs* )
1506-
echo "96 0 36 516 0"
1506+
echo "127 0 36 516 0"
15071507
;;
15081508
sdm8* )
1509-
echo "96 0 36 516 0"
1509+
echo "127 0 36 516 0"
15101510
;;
15111511
sdm* | msm* | sd* | exynos* )
1512-
echo "96 0 38 517 0"
1512+
echo "127 0 38 517 0"
15131513
;;
15141514
mt68* )
1515-
echo "96 0 36 516 0"
1515+
echo "127 0 36 516 0"
15161516
;;
15171517
mt67[7-9]? )
1518-
echo "96 0 36 516 0"
1518+
echo "127 0 36 516 0"
15191519
;;
15201520
* )
1521-
echo "96 0 36 516 0"
1521+
echo "127 0 36 516 0"
15221522
;;
15231523
esac
15241524
;;
@@ -1530,10 +1530,10 @@ function getSchedulerValues()
15301530
# slice_async_us slice_idle slice_sync target_latency
15311531
case "$2" in
15321532
"light" )
1533-
echo "1 3 3 0 1 1 3 34 3000 0 3 3"
1533+
echo "1 3 3 0 1 1 3 46 3000 0 3 3"
15341534
;;
15351535
"m-light" )
1536-
echo "1 3 3 0 1 1 3 46 3000 0 3 3"
1536+
echo "1 3 3 0 1 1 3 51 3000 0 3 3"
15371537
;;
15381538
"boost" )
15391539
case "`getSocModelName`" in
@@ -1548,10 +1548,10 @@ function getSchedulerValues()
15481548
"medium" | * )
15491549
case "`getSocModelName`" in
15501550
sm[6-8]* | sdm* | mt68* | gs* | sd* | exynos* )
1551-
echo "1 1 1 0 1 1 0 66 901 0 1 1"
1551+
echo "1 1 1 0 1 1 0 77 877 0 1 1"
15521552
;;
15531553
* )
1554-
echo "1 3 3 0 1 1 3 51 3000 0 3 3"
1554+
echo "1 3 3 0 1 1 3 59 3000 0 3 3"
15551555
;;
15561556
esac
15571557
;;
@@ -1582,13 +1582,13 @@ function getSchedulerNrRequests()
15821582
"mq-deadline" | "kyber" | "bfq" )
15831583
case "`getSocModelName`" in
15841584
sm[6-8]* )
1585-
echo "2047"
1585+
echo "2031"
15861586
;;
15871587
gs* )
1588-
echo "2047"
1588+
echo "2031"
15891589
;;
15901590
mt68* )
1591-
echo "2047"
1591+
echo "2031"
15921592
;;
15931593
* )
15941594
echo "2031"
@@ -1652,7 +1652,7 @@ function getSchedulerNrRequests()
16521652
echo "86179"
16531653
;;
16541654
sdm8* )
1655-
echo "86179"
1655+
echo "86183"
16561656
;;
16571657
sdm* | msm* | sd* | exynos* )
16581658
echo "86179"
@@ -1671,22 +1671,22 @@ function getSchedulerNrRequests()
16711671
"medium" | * )
16721672
case "`getSocModelName`" in
16731673
sm[6-8]* | sdm8[5-9]* | sdm9* | gs* )
1674-
echo "86170"
1674+
echo "86179"
16751675
;;
16761676
sdm8* )
1677-
echo "86164"
1677+
echo "86179"
16781678
;;
16791679
sdm* | msm* | sd* | exynos* )
1680-
echo "86172"
1680+
echo "86179"
16811681
;;
16821682
mt68* )
1683-
echo "86174"
1683+
echo "86179"
16841684
;;
16851685
mt67[6-9]? )
1686-
echo "86172"
1686+
echo "86179"
16871687
;;
16881688
* )
1689-
echo "86172"
1689+
echo "86179"
16901690
;;
16911691
esac
16921692
;;
@@ -1708,10 +1708,10 @@ function getSchedulerNrRequests()
17081708
"m-light" )
17091709
case "`getSocModelName`" in
17101710
sm[6-8]* | sdm* | msm* | sd* | exynos* | gs* )
1711-
echo "86117"
1711+
echo "86164"
17121712
;;
17131713
* )
1714-
echo "86117"
1714+
echo "86164"
17151715
;;
17161716
esac
17171717
;;
@@ -1728,10 +1728,10 @@ function getSchedulerNrRequests()
17281728
"medium" | * )
17291729
case "`getSocModelName`" in
17301730
sm[6-8]* | sdm* | msm* | sd* | exynos* | gs* )
1731-
echo "86164"
1731+
echo "86172"
17321732
;;
17331733
* )
1734-
echo "86164"
1734+
echo "86172"
17351735
;;
17361736
esac
17371737
;;
@@ -1753,10 +1753,10 @@ function getSchedulerNrRequests()
17531753
"m-light" )
17541754
case "`getSocModelName`" in
17551755
sm[6-8]* | sdm* | msm* | sd* | exynos* | gs* )
1756-
echo "86021"
1756+
echo "86164"
17571757
;;
17581758
* )
1759-
echo "86021"
1759+
echo "86164"
17601760
;;
17611761
esac
17621762
;;
@@ -1773,10 +1773,10 @@ function getSchedulerNrRequests()
17731773
"medium" | * )
17741774
case "`getSocModelName`" in
17751775
sm[6-8]* | sdm* | msm* | sd* | exynos* | gs* )
1776-
echo "86164"
1776+
echo "86172"
17771777
;;
17781778
* )
1779-
echo "86164"
1779+
echo "86172"
17801780
;;
17811781
esac
17821782
;;
@@ -1829,7 +1829,7 @@ function reduceIoJitter()
18291829
if [ "$sched" = "none" ]; then
18301830
echo "31" >"/sys/block/$i/queue/nr_requests"
18311831
else
1832-
echo "2047" >"/sys/block/$i/queue/nr_requests"
1832+
echo "2031" >"/sys/block/$i/queue/nr_requests"
18331833
fi
18341834
fi
18351835

@@ -1838,34 +1838,34 @@ function reduceIoJitter()
18381838
if [ -w "/sys/block/$i/queue/iosched/async_depth" ]; then
18391839
case "`getSocModelName`" in
18401840
sm[6-8]* )
1841-
echo '33' >"/sys/block/$i/queue/iosched/async_depth"
1841+
echo '32' >"/sys/block/$i/queue/iosched/async_depth"
18421842
;;
18431843
gs* )
1844-
echo '33' >"/sys/block/$i/queue/iosched/async_depth"
1844+
echo '32' >"/sys/block/$i/queue/iosched/async_depth"
18451845
;;
18461846
mt68* )
1847-
echo '33' >"/sys/block/$i/queue/iosched/async_depth"
1847+
echo '32' >"/sys/block/$i/queue/iosched/async_depth"
18481848
;;
18491849
* )
1850-
echo '37' >"/sys/block/$i/queue/iosched/async_depth"
1850+
echo '32' >"/sys/block/$i/queue/iosched/async_depth"
18511851
;;
18521852
esac
18531853
fi
18541854
if [ -w "/sys/block/$i/queue/iosched/prio_aging_expire" ]; then
18551855
case "`getSocModelName`" in
18561856
sm[6-8]* )
1857-
echo '6903164' >"/sys/block/$i/queue/iosched/prio_aging_expire"
1857+
echo '6903152' >"/sys/block/$i/queue/iosched/prio_aging_expire"
18581858
;;
18591859
gs* )
1860-
echo '6903160' >"/sys/block/$i/queue/iosched/prio_aging_expire"
1860+
echo '6903152' >"/sys/block/$i/queue/iosched/prio_aging_expire"
18611861
;;
18621862
* )
1863-
echo '6903164' >"/sys/block/$i/queue/iosched/prio_aging_expire"
1863+
echo '6903152' >"/sys/block/$i/queue/iosched/prio_aging_expire"
18641864
;;
18651865
esac
18661866
elif [ -w "/sys/block/$i/queue/iosched/aging_expire" ]; then
18671867
# for MTK Dimensity
1868-
echo '6903164' >"/sys/block/$i/queue/iosched/aging_expire"
1868+
echo '6903152' >"/sys/block/$i/queue/iosched/aging_expire"
18691869
fi
18701870
fi
18711871

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=hifi-maximizer-mod
22
name=Hifi Maximizer
3-
version=v2.5.12
4-
versionCode=2512
3+
version=v2.5.13
4+
versionCode=2513
55
author=zyhk
66
description=A module for maximizing the digital audio fidelity by reducing jitters on audio outputs (USB DACs, Bluetooth a2dp, DLNA, etc.)

service-optimizer.sh

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,28 @@ function forceIgnoreAudioEffects()
3939
setprop ctl.stop aocd
4040
force_restart_server=1
4141
fi
42-
42+
4343
# Nullifying the volume listener for no compressing audio (maybe a peak limiter)
44-
if [ "`getprop persist.sys.phh.disable_soundvolume_effect`" = "0" ]; then
45-
if [ -r "/system/phh/empty" -a -r "/vendor/lib/soundfx/libvolumelistener.so" ]; then
46-
mount -o bind "/system/phh/empty" "/vendor/lib/soundfx/libvolumelistener.so"
47-
force_restart_server=1
48-
fi
49-
if [ -r "/system/phh/empty" -a -r "/vendor/lib64/soundfx/libvolumelistener.so" ]; then
50-
mount -o bind "/system/phh/empty" "/vendor/lib64/soundfx/libvolumelistener.so"
51-
force_restart_server=1
52-
fi
53-
54-
elif [ "`getprop persist.sys.phh.disable_soundvolume_effect`" != "1" ]; then
55-
# for non- phh GSI's (Qcomm devices only?)
56-
if [ -r "/vendor/lib/soundfx/libvolumelistener.so" ]; then
57-
mount -o bind "/dev/null" "/vendor/lib/soundfx/libvolumelistener.so"
58-
force_restart_server=1
59-
fi
60-
if [ -r "/vendor/lib64/soundfx/libvolumelistener.so" ]; then
61-
mount -o bind "/dev/null" "/vendor/lib64/soundfx/libvolumelistener.so"
62-
force_restart_server=1
63-
fi
64-
44+
# for Qcomm devices only?
45+
if [ -r "/vendor/lib/soundfx/libvolumelistener.so" ]; then
46+
mount -o bind "/dev/null" "/vendor/lib/soundfx/libvolumelistener.so"
47+
force_restart_server=1
6548
fi
66-
49+
if [ -r "/vendor/lib64/soundfx/libvolumelistener.so" ]; then
50+
mount -o bind "/dev/null" "/vendor/lib64/soundfx/libvolumelistener.so"
51+
force_restart_server=1
52+
fi
53+
54+
# for Motorola devices only?
55+
if [ -r "/vendor/lib/soundfx/libdlbvol.so" ]; then
56+
mount -o bind "/dev/null" "/vendor/lib/soundfx/libdlbvol.so"
57+
force_restart_server=1
58+
fi
59+
if [ -r "/vendor/lib64/soundfx/libdlbvol.so" ]; then
60+
mount -o bind "/dev/null" "/vendor/lib64/soundfx/libdlbvol.so"
61+
force_restart_server=1
62+
fi
63+
6764
if [ "$force_restart_server" = "1" -o "`getprop ro.system.build.version.release`" -ge "12" ]; then
6865
reloadAudioServer
6966
fi

0 commit comments

Comments
 (0)