[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:hardware:sound_problems_on_slackware [2015/01/25 19:28 (UTC)] – dugan | howtos:hardware:sound_problems_on_slackware [2018/02/15 15:15 (UTC)] – Show how syntax elements can be used to beautify the page and make maintenance easier. alienbob | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
<!-- Reviewed 2012-12-24 hazel --> | <!-- Reviewed 2012-12-24 hazel --> | ||
- | ======Sound Problems on Slackware====== | + | <!-- Reviewed 2018-02-15 alienbob --> |
- | **Investigate the problem** | + | **NOTE: on my systems, my default card is 1 and default device is 0 so I will use 1,0 through out this page** |
- | 1) See which kernel modules are loaded: | ||
- | lsmod | grep snd | + | ======Sound Problems on Slackware====== |
- | Use this information along with your motherboard sound chipset to verify that the correct sound drivers are loading. | + | **Investigate |
- | + | ||
- | + | ||
- | 2) See which sound devices are detected by alsa: | + | |
- | aplay -l | + | - See which kernel modules are loaded: < |
- | + | lsmod | grep snd | |
- | Most likely, alsa is loading the correct modules but setting the wrong sound device as default. | + | </ |
- | + | - See which sound devices are detected by alsa:< | |
- | 3) Test sound devices to see which one(s) work: | + | aplay -l |
- | + | </ | |
- | alsamixer | + | |
- | | + | alsamixer |
- | | + | < |
- | | + | <select a card(s)> |
- | | + | <adjust volumes and make sure they aren't muted> |
+ | <ESC> | ||
- | aplay -D plughw:0,0 test.wav | + | aplay -D plughw:0,0 test.wav |
- | | + | aplay -D plughw:0,1 test.wav |
- | | + | aplay -D plughw:1,0 test.wav |
- | | + | aplay -D plughw:1,1 test.wav |
+ | </ | ||
---- | ---- | ||
Line 42: | Line 39: | ||
defaults.pcm.device 0 | defaults.pcm.device 0 | ||
defaults.ctl.card 1 | defaults.ctl.card 1 | ||
+ | |||
+ | -or- | ||
+ | |||
+ | pcm.!default { | ||
+ | type hw | ||
+ | card 1 | ||
+ | device 0 | ||
+ | } | ||
+ | ctl.!default { | ||
+ | type hw | ||
+ | card 1 | ||
+ | } | ||
+ | |||
OR, if you just want the changes for a single user create ~/.asoundrc in the user's home directory and put the above in it... | OR, if you just want the changes for a single user create ~/.asoundrc in the user's home directory and put the above in it... | ||
+ | ----- | ||
+ | **PROBLEM: | ||
+ | **FIX:** Enable the alsa pre-amp. | ||
+ | 1) Edit/Create / | ||
+ | pcm.!default { | ||
+ | type plug | ||
+ | | ||
+ | } | ||
+ | |||
+ | pcm.softvol { | ||
+ | type softvol | ||
+ | slave { | ||
+ | pcm " | ||
+ | } | ||
+ | | ||
+ | name " | ||
+ | card 1 | ||
+ | } | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | **WHERE: " | ||
+ | |||
+ | 2) Reboot | ||
+ | |||
+ | 3) After you reboot a PREAMP control is supposed to appear in your mixer controls but, it doesn' | ||
+ | |||
+ | ----- | ||
+ | |||
+ | **PROBLEM: | ||
+ | |||
+ | **FIX:** Enable the equalizer \\ < | ||
+ | |||
+ | Output can either be from the audio device or the mixer. For the device use the following: | ||
+ | |||
+ | 1) Edit/Create / | ||
+ | | ||
+ | type equal; | ||
+ | } | ||
+ | pcm.plugequal { | ||
+ | type equal; | ||
+ | slave.pcm " | ||
+ | } | ||
+ | pcm.!default { | ||
+ | type plug; | ||
+ | slave.pcm plugequal; | ||
+ | } | ||
+ | |||
+ | **WHERE: " | ||
+ | |||
+ | Should you wish to play from more than one application simultaneously via the mixer (dmix), use the below: | ||
+ | |||
+ | | ||
+ | type equal; | ||
+ | } | ||
+ | pcm.plugequal { | ||
+ | type equal; | ||
+ | slave.pcm " | ||
+ | } | ||
+ | pcm.!default { | ||
+ | type plug; | ||
+ | slave.pcm plugequal; | ||
+ | } | ||
+ | |||
+ | |||
+ | To access the equalizer, run " | ||
====== Sources ====== | ====== Sources ====== | ||
+ | AlienBOB' | ||
+ | |||
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
<!-- * Original source: [[http:// | <!-- * Original source: [[http:// |