void-linux / void-linux/void-docs

ALSA configuration docs are misleading

Aperta
#498 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
CSS
Stelle
217
Fork
212
Merge medio
2g 21h
PR unite (30g)
1

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dalla pagina della documentazione di ALSA all’indirizzo https://docs.voidlinux.org/config/media/alsa.html e verifica le indicazioni confrontandole con il comportamento segnalato di /etc/modprobe.d/alsa.conf e alsa-base.conf. Rivedi la pagina in modo che descriva correttamente gli indici delle schede preferiti, l’ordine dei driver, più dispositivi che utilizzano lo stesso driver e le utilità elencate; il lavoro è completato quando le indicazioni di configurazione non implicano più che l’impostazione di un indice impedisca il riordinamento dei dispositivi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
linux
Ambito
documentation, operating-systems
Tipo di issue
Documentazione
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.