mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
alsa-mixer: add support for Astro A50 gaming headset
This commit is contained in:
parent
8482b62b0a
commit
47d811224d
4 changed files with 30 additions and 11 deletions
|
|
@ -119,6 +119,8 @@ ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1294", ENV{PULSE_PROFILE_SET}="usb-g
|
||||||
ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1730", ENV{PULSE_PROFILE_SET}="usb-gaming-headset.conf"
|
ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1730", ENV{PULSE_PROFILE_SET}="usb-gaming-headset.conf"
|
||||||
# Lucidsound LS31
|
# Lucidsound LS31
|
||||||
ATTRS{idVendor}=="2f12", ATTRS{idProduct}=="0109", ENV{PULSE_PROFILE_SET}="usb-gaming-headset.conf"
|
ATTRS{idVendor}=="2f12", ATTRS{idProduct}=="0109", ENV{PULSE_PROFILE_SET}="usb-gaming-headset.conf"
|
||||||
|
# ID 9886:002c is for the Astro A50 Gen4
|
||||||
|
ATTRS{idVendor}=="9886", ATTRS{idProduct}=="002c", ENV{PULSE_PROFILE_SET}="usb-gaming-headset.conf"
|
||||||
|
|
||||||
# ID 1038:1250 is for the Arctis 5
|
# ID 1038:1250 is for the Arctis 5
|
||||||
# ID 1037:12aa is for the Arctis 5 2019
|
# ID 1037:12aa is for the Arctis 5 2019
|
||||||
|
|
|
||||||
|
|
@ -4407,6 +4407,8 @@ static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {
|
||||||
{ "iec958-dts-surround-51", N_("Digital Surround 5.1 (IEC958/DTS)") },
|
{ "iec958-dts-surround-51", N_("Digital Surround 5.1 (IEC958/DTS)") },
|
||||||
{ "hdmi-stereo", N_("Digital Stereo (HDMI)") },
|
{ "hdmi-stereo", N_("Digital Stereo (HDMI)") },
|
||||||
{ "hdmi-surround-51", N_("Digital Surround 5.1 (HDMI)") },
|
{ "hdmi-surround-51", N_("Digital Surround 5.1 (HDMI)") },
|
||||||
|
{ "gaming-headset-chat", N_("Chat") },
|
||||||
|
{ "gaming-headset-game", N_("Game") },
|
||||||
};
|
};
|
||||||
const char *description_key = m->description_key ? m->description_key : m->name;
|
const char *description_key = m->description_key ? m->description_key : m->name;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
auto-profiles = yes
|
auto-profiles = yes
|
||||||
|
|
||||||
[Mapping analog-chat]
|
[Mapping analog-chat]
|
||||||
description = Chat
|
description-key = gaming-headset-chat
|
||||||
device-strings = hw:%f,0,0
|
device-strings = hw:%f,0,0
|
||||||
channel-map = left,right
|
channel-map = left,right
|
||||||
paths-input = analog-input-mic
|
paths-input = analog-input-mic
|
||||||
|
|
@ -10,7 +10,7 @@ paths-output = steelseries-arctis-output-chat-common
|
||||||
intended-roles = phone
|
intended-roles = phone
|
||||||
|
|
||||||
[Mapping analog-game]
|
[Mapping analog-game]
|
||||||
description = Game
|
description-key = gaming-headset-game
|
||||||
device-strings = hw:%f,1,0
|
device-strings = hw:%f,1,0
|
||||||
channel-map = left,right
|
channel-map = left,right
|
||||||
paths-output = steelseries-arctis-output-game-common
|
paths-output = steelseries-arctis-output-game-common
|
||||||
|
|
|
||||||
|
|
@ -14,36 +14,51 @@
|
||||||
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
; USB gaming headset.
|
; USB gaming headset.
|
||||||
; These headsets usually have two output devices. The first one is mono,
|
; These headsets usually have two output devices. The first one is meant
|
||||||
; meant for voice audio, and the second one is stereo, meant for everything
|
; for voice audio, and the second one is meant for everything else.
|
||||||
; else. The purpose of this unusual design is to provide separate volume
|
; The purpose of this unusual design is to provide separate volume
|
||||||
; controls for voice and other audio, which can be useful in gaming.
|
; controls for voice and other audio, which can be useful in gaming.
|
||||||
;
|
;
|
||||||
; Works with:
|
; Works with:
|
||||||
; Steelseries Arctis 7
|
; Steelseries Arctis 7
|
||||||
; Steelseries Arctis Pro Wireless.
|
; Steelseries Arctis Pro Wireless.
|
||||||
; Lucidsound LS31
|
; Lucidsound LS31
|
||||||
|
; Astro A50
|
||||||
;
|
;
|
||||||
; See default.conf for an explanation on the directives used here.
|
; See default.conf for an explanation on the directives used here.
|
||||||
|
|
||||||
[General]
|
[General]
|
||||||
auto-profiles = yes
|
auto-profiles = yes
|
||||||
|
|
||||||
[Mapping analog-mono]
|
[Mapping mono-chat]
|
||||||
|
description-key = gaming-headset-chat
|
||||||
device-strings = hw:%f,0,0
|
device-strings = hw:%f,0,0
|
||||||
channel-map = mono
|
channel-map = mono
|
||||||
paths-output = usb-gaming-headset-output-mono
|
paths-output = usb-gaming-headset-output-mono
|
||||||
paths-input = usb-gaming-headset-input
|
paths-input = usb-gaming-headset-input
|
||||||
intended-roles = phone
|
intended-roles = phone
|
||||||
|
|
||||||
[Mapping analog-stereo]
|
[Mapping stereo-chat]
|
||||||
|
description-key = gaming-headset-chat
|
||||||
|
device-strings = hw:%f,0,0
|
||||||
|
channel-map = left,right
|
||||||
|
paths-output = usb-gaming-headset-output-stereo
|
||||||
|
paths-input = usb-gaming-headset-input
|
||||||
|
intended-roles = phone
|
||||||
|
|
||||||
|
[Mapping stereo-game]
|
||||||
|
description-key = gaming-headset-game
|
||||||
device-strings = hw:%f,1,0
|
device-strings = hw:%f,1,0
|
||||||
channel-map = left,right
|
channel-map = left,right
|
||||||
paths-output = usb-gaming-headset-output-stereo
|
paths-output = usb-gaming-headset-output-stereo
|
||||||
direction = output
|
direction = output
|
||||||
|
|
||||||
[Profile output:analog-mono+output:analog-stereo+input:analog-mono]
|
[Profile output:mono-chat+output:stereo-game+input:mono-chat]
|
||||||
output-mappings = analog-mono analog-stereo
|
output-mappings = mono-chat stereo-game
|
||||||
input-mappings = analog-mono
|
input-mappings = mono-chat
|
||||||
|
priority = 5100
|
||||||
|
|
||||||
|
[Profile output:stereo-game+output:stereo-chat+input:mono-chat]
|
||||||
|
output-mappings = stereo-game stereo-chat
|
||||||
|
input-mappings = mono-chat
|
||||||
priority = 5100
|
priority = 5100
|
||||||
skip-probe = yes
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue