Skip to content

Commit fce0f4a

Browse files
authored
Add files via upload
* Tuned the USB period size for many devices (2500 usec to 2250 usec) * Added checking incompatible Magisk variants
1 parent 50d2027 commit fce0f4a

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#v1.3.6
44
* Tuned the USB period size for SDM845 devices (2500 usec to 2250 usec)
55
* Tuned the USB period size for other devices (to 2250 usec)
6+
* Added checking incompatible Magisk variants
67

78
# v1.3.5
89
* Changed the re-sampling parameters for Galaxy S4 to the general purpose ones (optimized for 3.5mm jack; not USB DAC's)

customize-functions.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
#!/system/bin/sh
22

3+
# Check whether Magisk magic mount compatible or not
4+
function isMagiskMountCompatible()
5+
{
6+
local tmp="$(magisk --path)"
7+
if [ -z "$tmp" ]; then
8+
return 1
9+
elif [ -d "${tmp}/.magisk/mirror/vendor" ]; then
10+
return 0
11+
else
12+
return 1
13+
fi
14+
}
15+
316
# Get the active audio policy configuration fille from the audioserever
417
function getActivePolicyFile()
518
{

customize.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
. "$MODPATH/customize-functions.sh"
44

5+
if ! isMagiskMountCompatible; then
6+
abort " *** Aborted by an incompatible Magisk variant detection. Try again with pure Magisk! ***"
7+
fi
8+
59
REPLACE=""
610

711
# making patched ALSA utility and Tensor's offload libraries for "ro.audio.usb.period_us"

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=audio-misc-settings
22
name=Audio misc. settings
3-
version=v1.3.5
4-
versionCode=1305
3+
version=v1.3.6
4+
versionCode=1306
55
author=zyhk
66
description=Setting audio misc. configuration values (e.g. 100 volume steps, raising the resampling quality, disabling the effects framework, etc.)

0 commit comments

Comments
 (0)