diff --git a/Makefile b/Makefile index 43ef895..6144beb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.1 +VERSION=0.2 .PHONY: all build-deb @@ -8,9 +8,11 @@ clean: rm -rf build/* build-deb: - mkdir -p build/deb/DEBIAN build/deb/lib/udev/rules.d build/deb/usr/share/pulseaudio/alsa-mixer/profile-sets + mkdir -p build/deb/DEBIAN build/deb/lib/udev/rules.d build/deb/usr/share/pulseaudio/alsa-mixer/profile-sets build/deb/usr/share/pulseaudio/alsa-mixer/paths cp control build/deb/DEBIAN/ cp 91-pulseaudio-steelseries-arctis-5.rules build/deb/lib/udev/rules.d/ cp steelseries-arctis-5-usb-audio.conf build/deb/usr/share/pulseaudio/alsa-mixer/profile-sets/ + cp steelseries-arctis-5-output-game.conf build/deb/usr/share/pulseaudio/alsa-mixer/paths/ + cp steelseries-arctis-5-output-chat.conf build/deb/usr/share/pulseaudio/alsa-mixer/paths/ dpkg-deb --build build/deb build/pulseaudio-steelseries-arctis-5_${VERSION}_all.deb diff --git a/control b/control index 56fac19..96a33ff 100644 --- a/control +++ b/control @@ -1,5 +1,5 @@ Package: pulseaudio-steelseries-arctis-5 -Version: 0.1 +Version: 0.2 Maintainer: Bert Hekman Homepage: https://github.com/DemonTPx/steelseries-arctis-5-pulseaudio-profile Architecture: all diff --git a/steelseries-arctis-5-output-chat.conf b/steelseries-arctis-5-output-chat.conf new file mode 100644 index 0000000..86ee555 --- /dev/null +++ b/steelseries-arctis-5-output-chat.conf @@ -0,0 +1,28 @@ +# 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] +priority = 50 + +[Element Com Speaker] +switch = mute +volume = merge + diff --git a/steelseries-arctis-5-output-game.conf b/steelseries-arctis-5-output-game.conf new file mode 100644 index 0000000..7ca3abb --- /dev/null +++ b/steelseries-arctis-5-output-game.conf @@ -0,0 +1,28 @@ +# 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] +priority = 99 + +[Element PCM] +switch = mute +volume = merge + diff --git a/steelseries-arctis-5-usb-audio.conf b/steelseries-arctis-5-usb-audio.conf index 00fe6b0..fe353c3 100644 --- a/steelseries-arctis-5-usb-audio.conf +++ b/steelseries-arctis-5-usb-audio.conf @@ -6,13 +6,13 @@ description = Chat device-strings = hw:%f,0,0 channel-map = left,right paths-input = analog-input-mic -paths-output = analog-output +paths-output = steelseries-arctis-5-output-chat [Mapping analog-game] description = Game device-strings = hw:%f,1,0 channel-map = left,right -paths-output = analog-output +paths-output = steelseries-arctis-5-output-game direction = output [Profile output:analog-chat+output:analog-game+input:analog-chat]