[pulseaudio-discuss] [PATCH] alsa-mixer: add support for Steelseries Arctis 5 headset

Tanu Kaskinen tanuk at iki.fi
Sun Jan 28 23:34:56 UTC 2018


On Sat, 2018-01-06 at 15:03 +0100, Bert Hekman wrote:
> ---
>  .../alsa/mixer/profile-sets/90-pulseaudio.rules    |  3 +-
>  .../steelseries-arctis-5-usb-audio.conf            | 45 ++++++++++++++++++++++
>  ...io.conf => steelseries-arctis-7-usb-audio.conf} |  0
>  3 files changed, 47 insertions(+), 1 deletion(-)
>  create mode 100644 src/modules/alsa/mixer/profile-sets/steelseries-arctis-5-usb-audio.conf
>  rename src/modules/alsa/mixer/profile-sets/{steelseries-arctis-usb-audio.conf => steelseries-arctis-7-usb-audio.conf} (100%)
> 
> diff --git a/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules b/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
> index 2392ca50..2cec20fe 100644
> --- a/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
> +++ b/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
> @@ -99,6 +99,7 @@ ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudi
>  ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinect-audio.conf"
>  ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"
>  ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="4014", ENV{PULSE_PROFILE_SET}="dell-dock-tb16-usb-audio.conf"
> -ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1260", ENV{PULSE_PROFILE_SET}="steelseries-arctis-usb-audio.conf"
> +ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1250", ENV{PULSE_PROFILE_SET}="steelseries-arctis-5-usb-audio.conf"
> +ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1260", ENV{PULSE_PROFILE_SET}="steelseries-arctis-7-usb-audio.conf"
>  
>  LABEL="pulseaudio_end"
> diff --git a/src/modules/alsa/mixer/profile-sets/steelseries-arctis-5-usb-audio.conf b/src/modules/alsa/mixer/profile-sets/steelseries-arctis-5-usb-audio.conf
> new file mode 100644
> index 00000000..9eeda7e0
> --- /dev/null
> +++ b/src/modules/alsa/mixer/profile-sets/steelseries-arctis-5-usb-audio.conf
> @@ -0,0 +1,45 @@
> +# 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 <http://www.gnu.org/licenses/>.
> +
> +; Steelseries Arctis 5 USB headset. The headset has a microphone and two output
> +; devices. The first output device is meant for voice audio, and the second one
> +; is 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.
> +;
> +; See default.conf for an explanation on the directives used here.
> +
> +[General]
> +auto-profiles = yes
> +
> +[Mapping analog-chat]
> +description = Chat
> +device-strings = hw:%f,0,0
> +channel-map = left,right
> +paths-input = analog-input-mic
> +paths-output = analog-output
> +
> +[Mapping analog-game]
> +description = Game
> +device-strings = hw:%f,1,0
> +channel-map = left,right
> +paths-output = analog-output
> +direction = output
> +
> +[Profile output:analog-chat+output:analog-game+input:analog-chat]
> +output-mappings = analog-chat analog-game
> +input-mappings = analog-chat
> +priority = 5100
> +skip-probe = yes
> diff --git a/src/modules/alsa/mixer/profile-sets/steelseries-arctis-usb-audio.conf b/src/modules/alsa/mixer/profile-sets/steelseries-arctis-7-usb-audio.conf
> similarity index 100%
> rename from src/modules/alsa/mixer/profile-sets/steelseries-arctis-usb-audio.conf
> rename to src/modules/alsa/mixer/profile-sets/steelseries-arctis-7-usb-audio.conf

The main difference to Arctis 7 seems to be that the "chat" device
supports stereo audio. Is there any difference in sound quality between
the "chat" and "game" devices?

Can you send the output of "amixer -c1" (replace 1 with the correct
card index if the headset card index is not 1)? Your configuration
probably doesn't handle volume correctly, because both devices have
been configured to use the analog-output path, which means that both
devices will control the same volumes in the alsa mixer. The volume
control needs to be separated for the two devices.

-- 
Tanu

https://liberapay.com/tanuk
https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list