mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
SM8250 audio fixes
This commit is contained in:
12
projects/ROCKNIX/devices/SM8250/filesystem/usr/sbin/quantum
Normal file
12
projects/ROCKNIX/devices/SM8250/filesystem/usr/sbin/quantum
Normal 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
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user