Subtitle Studio

Audio Compatibility Patch Magisk Module Link

tinycap /sdcard/test.wav -D 0 -d 1 -c 2 -r 48000

User can enable/disable specific fixes by editing: audio compatibility patch magisk module

/data/adb/modules/audio_compatibility_patch/config.sh

Example options:

Many custom ROMs suffer from "low volume syndrome" or distorted bass because the mixer_paths.xml file doesn't match the specific hardware revision of the device. tinycap /sdcard/test

detect_audio_issues() 
  if ! grep -q "HDMI" /vendor/etc/audio_policy_configuration.xml; then
    apply_hdmi_patch
  fi
  if getprop ro.vendor.build.version.sdk -lt 30 && [ "$ROM" = "LineageOS" ]; then
    apply_voip_mic_routing
  fi
  if ! test -e /dev/input/event* (headphone detection); then
    write /sys/class/switch/h2w/state "1"
  fi