void-linux / void-linux/void-docs

ALSA configuration docs are misleading

Open
#498 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
217
Forks
212
Avg merge
2d 21h
Merged PRs (30d)
1

Description

Sorry guys, I'm trying not to make too many doc issues,
but I keep finding stuff I've been advising against for years now :/

in here, you mention setting the default index in alsa.conf

... if you have 1 and only 1 sound card, then the issue doesn't concern you
but if you have 3 or more sound cards, then you may find yourself with shuffled devices

editing /etc/modprobe.d/alsa.conf only sets the preferred card index,
it doesn't prevent your sound cards from changing order on boot.
something that does help that though is editing /etc/modprobe.d/alsa-base.conf and specifying the order you want your drivers to load in, as mentioned in this old cringe-worthy askubuntu answer here
(ignore the comment in that answer, it actually does work)

there's something though that this won't fix
if you have multiple devices using the same driver in your system, and your preferred device is one of them, specifying the driver order will not stop your devices under that driver from shuffling about every reboot...
the only thing I can think of that would stop that is to disable the devices that aren't preferred
or take the cheap solution and use a device that uses a different driver as the preferred device.

not all apps allow you to specify an alsa device, and even some that do don't always work appropriately (utox)
so you're better off relying on a preferred device under alsa. ;)


TIP: if you're like me and rely purely on alsa for audio
these utilities are very helpful:
qastools volumeicon
QasMixer provides full control over your sound devices (better than Pulse)
volumeicon adds an interactive icon that allows you to quickly control your volume (useful for xfce)

the 1 disadvantage this has from Pulse is you can't control individual app streams
but for that you gain 2 advantages:

  • if your card has separate mic-in and line-in ports, you can make use of both ports as they were intended to be used without configuration (pulse can only make use of 1 input and needs explicit loopback enable/disable)
  • you don't run the risk of dropping all audio output when your CPU gets busy (pulse requires a system reboot)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ALSA documentation page at https://docs.voidlinux.org/config/media/alsa.html and verify its guidance against the reported behavior of /etc/modprobe.d/alsa.conf and alsa-base.conf. Revise the page so preferred card indexes, driver ordering, multiple devices using one driver, and the listed utilities are described accurately; done means the configuration advice no longer implies that setting an index prevents device reordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
documentation, operating-systems
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.