Skip to content

Instantly share code, notes, and snippets.

@curz46
Last active April 30, 2023 10:01
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save curz46/1ce42f9c59136cc812b7518963d770b4 to your computer and use it in GitHub Desktop.
Save curz46/1ce42f9c59136cc812b7518963d770b4 to your computer and use it in GitHub Desktop.
astro a50 pulseaudio /etc/pulse/default.pa
# pulseaudio defaults to only detecting Astro A50 voice and microphone, not game
# this is what i had to do to fix it, hopefully it saves someone some time
# index:subdevice may be different for you
# resources:
# https://wiki.archlinux.org/index.php/PulseAudio/Examples at "module-alsa-sink"
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h3
.nofail
load-module module-alsa-sink device=hw:3,0 sink_name=voice
update-sink-proplist voice device.description="Astro A50 Voice"
# it also incorrectly orders the channel map, i believe this is relatively correct (at least not unbalanced)
load-module module-alsa-sink device=hw:3,1 sink_name=game channel_map=left,right,fro
nt-center,rear-center,rear-left,rear-right
update-sink-proplist game device.description="Astro A50 Game"
load-module module-alsa-source device=hw:3,0
@ktosiek
Copy link

ktosiek commented Oct 28, 2020

@YannikSc which version of PA is that? It should be shown by pulseaudio --version. I've just checked, and the configuration from my gist works on Ubuntu 20.04 with pulseaudio 13.99.1.
It's also interesting you have a six channel channel-map - I though the surround support was only for DTS, can you actually use all those channels?

If you can run PA 14, this profile is already upstream. Even the new pipewire daemon has picked it up, so future looks bright for this headset :-)

Edit: we could also move the discussion of problems with my code to my gist, so we don't confuse the discussion here.

@brigs
Copy link

brigs commented Nov 28, 2020

@FennyFatal - thanks for your script, much appreciated!

HWID=aplay -l | grep 'A50' | cut -d" " -f2 | head -1 | cut -d":" -f1

should be changed to:

HWID=$(aplay -l | grep 'A50' | cut -d" " -f2 | head -1 | cut -d":" -f1)

for it to run through shellcheck :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment