4,461
edits
ALSA |
|||
Line 153: | Line 153: | ||
| 7 | | 7 | ||
|} | |} | ||
= Audio = | |||
== ALSA (Advanced Linux Sound Architecture) == | |||
=== Setting default output device === | |||
Ref: [https://superuser.com/questions/626606/how-to-make-alsa-pick-a-preferred-sound-device-automatically StackExchange/superuser: How to make Alsa pick a preferred sound device automatically?] | |||
List all audio cards you have: | |||
<source lang="bash"> | |||
$ cat /proc/asound/cards | |||
0 [PCH ]: HDA-Intel - HDA Intel PCH | |||
HDA Intel PCH at 0xf7530000 irq 41 | |||
1 [NVidia ]: HDA-Intel - HDA NVidia | |||
HDA NVidia at 0xf7080000 irq 17 | |||
2 [SoundBar ]: USB-Audio - Dell AC511 USB SoundBar | |||
Dell Dell AC511 USB SoundBar at usb-0000:00:14.0-4, full speed | |||
</source> | |||
Get ALSA identifiers of those: | |||
<source lang="bash"> | |||
$ aplay -l | awk -F \: '/,/{print $2}' | awk '{print $1}' | uniq | |||
PCH | |||
NVidia | |||
SoundBar | |||
</source> | |||
Update /etc/asound.conf: | |||
<source lang="ini"> | |||
pcm.!default { | |||
type hw | |||
card SoundBar | |||
} | |||
ctl.!default { | |||
type hw | |||
card SoundBar | |||
} | |||
</source> | |||
= Miscellaneous = | = Miscellaneous = |