File fedora.patch of Package steamdeck-dsp
From 5b7b6bda17d2f8944433ac5ab834f5d596f6a4af Mon Sep 17 00:00:00 2001
From: Thomas Crider <gloriouseggroll@gmail.com>
Date: Sat, 9 Dec 2023 16:22:13 -0500
Subject: [PATCH] fedora
---
pipewire-confs/filter-chain-mic.conf | 2 +-
scripts/install_plugins.sh | 12 ++++++------
ucm2/conf.d/acp5x/HiFi-upstream.conf | 4 ++--
ucm2/conf.d/acp5x/HiFi.conf | 4 ++--
ucm2/conf.d/sof-nau8821-max/HiFi.conf | 4 ++--
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/pipewire-confs/hardware-profiles/valve-galileo/pipewire.conf.d/filter-chain.conf b/pipewire-confs/hardware-profiles/valve-galileo/pipewire.conf.d/filter-chain.conf
index 0b9fcac..0859402 100644
--- a/pipewire-confs/hardware-profiles/valve-galileo/pipewire.conf.d/filter-chain.conf
+++ b/pipewire-confs/hardware-profiles/valve-galileo/pipewire.conf.d/filter-chain.conf
@@ -14,7 +14,7 @@ context.modules = [
{
type = ladspa
name = rnnoise
- plugin = /usr/lib/ladspa/librnnoise_ladspa.so
+ plugin = /usr/lib64/ladspa/librnnoise_ladspa.so
label = noise_suppressor_stereo
control = {
"VAD Threshold (%)" = 23.0
diff --git a/scripts/install_plugins.sh b/scripts/install_plugins.sh
index 591514a..6678045 100755
--- a/scripts/install_plugins.sh
+++ b/scripts/install_plugins.sh
@@ -8,10 +8,9 @@
if [ -e "$HARDCODED_PLUGIN_DEST_1" ]; then rm -r "$HARDCODED_PLUGIN_DEST_1"; fi;
if [ -e "$HARDCODED_PLUGIN_DEST_2" ]; then rm -r "$HARDCODED_PLUGIN_DEST_2"; fi;
-
-mkdir -p "$DEST_DIR"/usr/lib/lv2
-cp -r bin/lv2/g++/valve_deck_speakers.lv2 "$DEST_DIR"/usr/lib/lv2/valve_deck_speakers.lv2
-cp -r bin/lv2/g++/valve_binaural.lv2 "$DEST_DIR"/usr/lib/lv2/valve_binaural.lv2
-cp -r bin/lv2/g++/valve_deck_microphone.lv2 "$DEST_DIR"/usr/lib/lv2/valve_deck_microphone.dsp
-# cp -r bin/svg $DEST_DIR/usr/lib/lv2/svg
-# cp version.txt $DEST_DIR/usr/lib/lv2/valve_audio_dsp_version.txt
+mkdir -p "$LIB_DIR"/lv2
+cp -r bin/lv2/g++/valve_deck_speakers.lv2 "$LIB_DIR"/lv2/valve_deck_speakers.lv2
+cp -r bin/lv2/g++/valve_binaural.lv2 "$LIB_DIR"/lv2/valve_binaural.lv2
+cp -r bin/lv2/g++/valve_deck_microphone.lv2 "$LIB_DIR"/lv2/valve_deck_microphone.dsp
+# cp -r bin/svg $LIB_DIR/lv2/svg
+# cp version.txt $LIB_DIR/lv2/valve_audio_dsp_version.txt
diff --git a/ucm2/conf.d/acp5x/HiFi-upstream.conf b/ucm2/conf.d/acp5x/HiFi-upstream.conf
index e7cecda..e58ca73 100644
--- a/ucm2/conf.d/acp5x/HiFi-upstream.conf
+++ b/ucm2/conf.d/acp5x/HiFi-upstream.conf
@@ -16,8 +16,8 @@ SectionVerb {
cset "name='BIQ Coefficients' 0x03,0x5a,0x00,0x06,0xfc,0xac,0x00,0x00,0xfe,0x58,0x00,0x00,0x03,0x50,0x00,0x06,0xfe,0x58,0x00,0x08"
cset "name='Left Analog PCM Volume' 17"
cset "name='Right Analog PCM Volume' 17"
- cset "name='Left Digital PCM Volume' 817"
- cset "name='Right Digital PCM Volume' 817"
+ cset "name='Left Digital PCM Volume' 913"
+ cset "name='Right Digital PCM Volume' 913"
cset "name='Left DSP RX1 Source' ASPRX1"
cset "name='Left DSP RX2 Source' ASPRX1"
cset "name='Right DSP RX1 Source' ASPRX2"
diff --git a/ucm2/conf.d/acp5x/HiFi.conf b/ucm2/conf.d/acp5x/HiFi.conf
index fd78ecb..35d037b 100644
--- a/ucm2/conf.d/acp5x/HiFi.conf
+++ b/ucm2/conf.d/acp5x/HiFi.conf
@@ -18,8 +18,8 @@ SectionVerb {
cset "name='BIQ Coefficients' 0x03,0x5a,0x00,0x06,0xfc,0xac,0x00,0x00,0xfe,0x58,0x00,0x00,0x03,0x50,0x00,0x06,0xfe,0x58,0x00,0x08"
cset "name='Left AMP PCM Gain' 17"
cset "name='Right AMP PCM Gain' 17"
- cset "name='Left Digital PCM Volume' 817"
- cset "name='Right Digital PCM Volume' 817"
+ cset "name='Left Digital PCM Volume' 913"
+ cset "name='Right Digital PCM Volume' 913"
cset "name='Left ASPRX1 Slot Position' 0"
cset "name='Left ASPRX2 Slot Position' 1"
cset "name='Left DSP RX1 Source' ASPRX1"
diff --git a/ucm2/conf.d/sof-nau8821-max/HiFi.conf b/ucm2/conf.d/sof-nau8821-max/HiFi.conf
index 48412ee..f0c5b82 100644
--- a/ucm2/conf.d/sof-nau8821-max/HiFi.conf
+++ b/ucm2/conf.d/sof-nau8821-max/HiFi.conf
@@ -52,7 +52,7 @@
Control "iface=CARD,name='Headset Jack'"
}
True {
- Define.JACKCONTROL "Headset Jack"
+ Define.JACKCONTROL "Headphone Jack"
}
False {
If.newjack {
--
2.43.0