From a57df2f29095d4df936deb336a51539c91b7714f Mon Sep 17 00:00:00 2001 From: yzyhk904 <86816519+yzyhk904@users.noreply.github.com> Date: Wed, 11 Dec 2024 23:17:17 +0900 Subject: [PATCH] Add files via upload Added an exception for Asius Zenfone 9 to change its Bluetooth HAL form "bluetooth" to "bluetooth_qti" --- changelog.md | 5 ++++- customize.sh | 12 +++++++++++- module.prop | 4 ++-- service.sh | 4 ++-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 6775516..6c51cb8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,11 @@ ## Change logs +# v1.1.2 +* Added an exception for Asius Zenfone 9 to change its Bluetooth HAL form "bluetooth" to "bluetooth_qti" + # v1.1.1 * Tuned I/O scheduler tunables for Kernel 5.x and 6.x -* Added a workaround for a DRC inverted bug of POCO F6 crDroid 14.0 (Nov. 27, 2024 and later) ROM's +* Added a workaround for a DRC inverted bug of POCO F6 crDroid 10.x (Nov. 27, 2024 and later) ROM's # v1.1.0 * Moved to Magisk-Module-Alt-Repo diff --git a/customize.sh b/customize.sh index ebb4475..3fddffb 100644 --- a/customize.sh +++ b/customize.sh @@ -67,7 +67,7 @@ case "`getprop ro.board.platform`" in ;; "pineapple" ) # POCO F6 cannot output AOSP "bluetooth" driver, but "bluetooth_qti" driver can except its offload driver - if [ "$BT_module" = "bluetooth" ]; then + if [ -e "/vendor/lib64/hw/audio.bluetooth_qti.default.so" ]; then BT_module="bluetooth_qti" fi # Workaround for a DRC inverted bug of POCO F6 crDroid 14.0 (Nov. 27, 2024 and later) ROM's @@ -80,6 +80,16 @@ case "`getprop ro.board.platform`" in SampleRatePrimary="48000" ;; * ) + case "`getprop ro.product.board`" in + " taro" ) + # for Asus Zenfone 9 + if [ -e "/vendor/lib64/hw/audio.bluetooth_qti.default.so" ]; then + BT_module="bluetooth_qti" + fi + ;; + * ) + ;; + esac ;; esac diff --git a/module.prop b/module.prop index 7ce0ed8..500f948 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=audio-samplerate-changer name=Audio samplerate changer -version=v1.1.1 -versionCode=1101 +version=v1.1.2 +versionCode=1102 author=zyhk description=A Magisk module changing audio samplerates at the system-wide mixer for the best Hi-Fi experience. diff --git a/service.sh b/service.sh index cda6306..76882e8 100644 --- a/service.sh +++ b/service.sh @@ -44,13 +44,13 @@ if [ \( -e "${MODDIR%/*/*}/modules/resampling-for-cheapies" -a ! -e "${MODDIR% resetprop ro.audio.resampler.psd.halflength 520 # If you feel your LDAC earphones or "cheapie" DAC wouldn't become to sound well or loses mellowness at all, - # try replacing "85" (below) with "86" or "87" for appropriately cutting off ultrasonic noise causing intermodulation + # try replacing "85" (below) with "84", "86" or "87" for appropriately cutting off ultrasonic noise causing intermodulation # resetprop ro.audio.resampler.psd.cutoff_percent 85 # Uncomment the following resetprop lines if you intend to replay only 44.1 kHz & 16 and 24 bit tracks; # If you feel your LDAC earphones or "cheapie" DAC wouldn't become to sound well or loses mellowness at all, - # try replacing "93" (below) with "94" or "95" for appropriately cutting off ultrasonic noise causing intermodulation + # try replacing "93" (below) with "92", "94" or "95" for appropriately cutting off ultrasonic noise causing intermodulation # #resetprop ro.audio.resampler.psd.stopband 179 #resetprop ro.audio.resampler.psd.cutoff_percent 93