[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 revision | ||
howtos:hardware:sound_problems_on_slackware [2015/01/25 19:28 (UTC)] – dugan | howtos:hardware:sound_problems_on_slackware [2018/12/07 01:15 (UTC)] (current) – Add caveat to not apply alsa fixes to pulse-based systems bassmadrigal | ||
---|---|---|---|
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 | + | <note important> |
- | 1) See which kernel modules are loaded: | + | **NOTE: on my systems, my default card is 1 and default device is 0 so I will use 1,0 through out this page** |
- | lsmod | grep snd | ||
- | Use this information along with your motherboard sound chipset to verify that the correct sound drivers are loading. | + | ======Sound Problems on Slackware====== |
+ | **Investigate the problem** | ||
- | 2) See which sound devices are detected by alsa: | + | - See which kernel modules are loaded: < |
- | + | lsmod | grep snd | |
- | aplay -l | + | </ |
- | + | - See which sound devices are detected by alsa:< | |
- | Most likely, alsa is loading the correct modules but setting the wrong sound device as default. | + | aplay -l |
- | + | </ | |
- | 3) Test sound devices to see which one(s) work: | + | |
- | + | 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 41: | ||
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:// |