From d0b321e19c65ee190962c0b945711c299a5becd5 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 30 Jul 2024 09:43:04 -0500 Subject: [PATCH] Fix audio input and output priorities for Legion Go (#1436) Currently, there's an issue with the internal mic not being default in gamemode. Also, this gives priority to HDMI/external audio if Legion Go is attached to HDMI audio. Added 2 conf files to wireplumber.conf.d. --- .../wireplumber.conf.d/51-preferHDMI.conf | 15 +++++++++++++++ .../wireplumber.conf.d/60-raise-internal-mic.conf | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/51-preferHDMI.conf create mode 100644 system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/60-raise-internal-mic.conf diff --git a/system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/51-preferHDMI.conf b/system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/51-preferHDMI.conf new file mode 100644 index 0000000000..f71603be38 --- /dev/null +++ b/system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/51-preferHDMI.conf @@ -0,0 +1,15 @@ +monitor.alsa.rules = [ + { + matches = [ + { + node.name = "alsa_output.pci-0000_c2_00.1.hdmi-stereo" + } + ] + actions = { + update-props = { + priority.driver = 1100 + priority.session = 1100 + } + } + } +] \ No newline at end of file diff --git a/system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/60-raise-internal-mic.conf b/system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/60-raise-internal-mic.conf new file mode 100644 index 0000000000..b33fed67aa --- /dev/null +++ b/system_files/deck/shared/usr/share/wireplumber/hardware-profiles/lenovo-83e1/wireplumber.conf.d/60-raise-internal-mic.conf @@ -0,0 +1,15 @@ +monitor.alsa.rules = [ + { + matches = [ + { + node.name = "alsa_input.pci-0000_c2_00.6.analog-stereo" + } + ] + actions = { + update-props = { + priority.driver = 8901 + priority.session = 8901 + } + } + } +] \ No newline at end of file