diff --git a/spa/plugins/alsa/90-pipewire-alsa.rules b/spa/plugins/alsa/90-pipewire-alsa.rules index 8c986d070..a6cae4daa 100644 --- a/spa/plugins/alsa/90-pipewire-alsa.rules +++ b/spa/plugins/alsa/90-pipewire-alsa.rules @@ -139,6 +139,10 @@ ATTRS{idVendor}=="9886", ATTRS{idProduct}=="0038", ENV{ACP_PROFILE_SET}="usb-gam # ID 9886:0045 is for the Astro A20 Gen2 ATTRS{idVendor}=="9886", ATTRS{idProduct}=="0045", ENV{ACP_PROFILE_SET}="usb-gaming-headset.conf" +# ID 1532:0532 is for the Razer Leviathan V2 +ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0532", ENV{ACP_PROFILE_SET}="razer-leviathan-v2.conf" +# ID 1532:054a is for the Razer Leviathan V2 X +ATTRS{idVendor}=="1532", ATTRS{idProduct}=="054a", ENV{ACP_PROFILE_SET}="razer-leviathan-v2.conf" # ID 1532:0520 is for the Razer Kraken Tournament Edition ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0520", ENV{ACP_PROFILE_SET}="usb-gaming-headset.conf" # ID 1532:0579 is Razer BlackShark v3 (usb direct to headset) diff --git a/spa/plugins/alsa/mixer/paths/razer-leviathan-output.conf b/spa/plugins/alsa/mixer/paths/razer-leviathan-output.conf new file mode 100644 index 000000000..fc60bbf12 --- /dev/null +++ b/spa/plugins/alsa/mixer/paths/razer-leviathan-output.conf @@ -0,0 +1,29 @@ +# This file is part of PulseAudio. +# +# PulseAudio is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2.1 of the +# License, or (at your option) any later version. +# +# PulseAudio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with PulseAudio; if not, see . + +; Steelseries Arctis 5 USB headset stereo chat path. The headset has two +; output devices. The first one is meant for voice audio, and the second +; one meant for everything else. The purpose of this unusual design is to +; provide separate volume controls for voice and other audio, which can be +; useful in gaming. + +[General] +description = Razer Leviathan Output + +[Element PCM,1] +volume = merge +switch = mute +override-map.1 = all +override-map.2 = all-left,all-right diff --git a/spa/plugins/alsa/mixer/profile-sets/razer-leviathan-v2.conf b/spa/plugins/alsa/mixer/profile-sets/razer-leviathan-v2.conf new file mode 100644 index 000000000..02d5c94a3 --- /dev/null +++ b/spa/plugins/alsa/mixer/profile-sets/razer-leviathan-v2.conf @@ -0,0 +1,27 @@ +# This file is part of PipeWire/PulseAudio. +# +# Razer Leviathan V2 / V2 X soundbar audio profile. +# These soundbars have two ALSA PCM controls: +# - PCM,0: Fake mute control (only 0% / 1-100%, no real volume change) +# - PCM,1: Real hardware volume amplifier control +# This profile maps volume to the real PCM,1 control. +# +# Works with: +# Razer Leviathan V2 (USB ID 1532:0532) +# Razer Leviathan V2 X (USB ID 1532:054a) +# +; See default.conf for an explanation on the directives used here. + +[General] +auto-profiles = yes + +[Mapping stereo] +description-key = soundbar-stereo +device-strings = hw:%f,0,0 +channel-map = left,right +paths-output = razer-leviathan-output +intended-roles = audio + +[Profile output:stereo] +output-mappings = stereo +priority = 5100