Audio Samplerate Changer

zyhk

Magisk KernelSU APatch
v1.1.10
Version
43.52 KB
Size
May 9, 2026
Updated

Module Info

  • Contributors yzyhk904
  • Source Code View Repository
  • Tags
    #Audio Sample Rate #Android Audio #USB Audio #Bluetooth Audio #Magisk Module #Audio Mixer

About this module

Audio Samplerate Changer modifies Android's system-wide mixer and selected audio-driver settings to use higher sample rates and 32-bit paths where the device supports them. It targets a specific modern audio-policy layout, so hardware and ROM compatibility matter more than the Android version alone.

System-Wide Audio Rate Control

The module patches mixer policy for USB, AOSP Bluetooth, speakers, and wired outputs while applying related resampling and I/O settings.

USB Audio

Selects the maximum reported USB HAL rate up to 768 kHz at 32 bits, limited to 192 kHz on Tensor devices, and changes the USB transfer period to 2000 µs.

AOSP Bluetooth

Adjusts the AOSP Bluetooth audio driver according to the selected codec, with the goal of avoiding an additional resampling stage.

Local Outputs

Targets up to 384 kHz/32-bit for Qualcomm speaker paths and 48 kHz/32-bit on other supported platforms, subject to the actual HAL.

Compatibility Boundaries

Upstream requires a version 7.0 audio policy configuration, common on newer Android releases and present in some older custom ROMs and phh GSIs. Recent AIDL-only audio implementations, including the Pixel 9 family cited by the author, are excluded.

Testing reported by the project covers LineageOS, crDroid, and phh GSIs on Android 14 through 16 across Qualcomm, MediaTek, and Tensor devices. This is a tested set, not a guarantee for every vendor audio stack.

Rate Trade-offs and Related Modules

Some equalizers, VoIP clients, and media apps do not operate correctly above 192 kHz. The project documents lowering SampleRatePrimary in customize.sh to 192000 or 48000 and changing the patchClearLock mode from max to default when app compatibility is more important than the maximum exposed rate.

DRC Remover and USB Samplerate Unlocker are already included and should not be installed separately. Other tuning modules may override the resampling parameters, so review their interaction before stacking audio changes.