SM8250 audio fixes

This commit is contained in:
rocknix
2025-09-13 13:19:33 +00:00
parent efb0514f47
commit 536f99c581
4 changed files with 29 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2025 ROCNIX (https://github.com/ROCKNIX)
# Set quantom audio hack
. /etc/profile
pw-metadata -n settings 0 clock.min-quantum 32
pw-metadata -n settings 0 clock.force-quantum 1023
pw-metadata -n settings 0 clock.force-quantum 1024

View File

@@ -27,7 +27,7 @@ new file mode 100644
index 0000000..4a6c0a7
--- /dev/null
+++ b/ucm2/Qualcomm/sm8250/HiFi-RP.conf
@@ -0,0 +1,67 @@
@@ -0,0 +1,65 @@
+# Use case configuration for RetroidPocket 5 and Mini.
+# Author: Teguh Sobirin <teguh@sobir.in>
+
@@ -39,8 +39,6 @@ index 0000000..4a6c0a7
+ cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
+ ]
+
+ Include.wsae.File "/codecs/wsa881x/DefaultEnableSeq.conf"
+
+ Value {
+ TQ "HiFi"
+ }
@@ -80,12 +78,12 @@ index 0000000..4a6c0a7
+ }
+}
+
+SectionDevice."Mic" {
+SectionDevice."Headset" {
+ Comment "Headphone Microphone"
+
+ Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
+ Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
+ Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf"
+ Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicEnableSeq.conf"
+ Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/HeadphoneMicDisableSeq.conf"
+
+ Value {

View File

@@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2025 ROCNIX (https://github.com/ROCKNIX)
# Set quantom audio hack on wake
. /etc/profile
/usr/sbin/quantom

View File

@@ -45,3 +45,7 @@ amixer -c 0 -q sset "Master" 100%
### Now set the pipewire mixer volume
/usr/bin/volume ${VOLUME}
### Run quantom audio hack if exists.
if [ -n "/usr/sbin/quantom" ]; then
/usr/sbin/quantom
fi