[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 [2012/12/24 11:47 (UTC)] – [Sound Problems on Slackware] hazel | 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 2018-02-15 alienbob --> | ||
+ | |||
+ | **NOTE: on my systems, my default card is 1 and default device is 0 so I will use 1,0 through out this page** | ||
+ | |||
+ | |||
======Sound Problems on Slackware====== | ======Sound Problems on Slackware====== | ||
**Investigate the problem** | **Investigate the problem** | ||
- | 1) See which kernel modules are loaded: | + | - See which kernel modules are loaded: |
+ | lsmod | grep snd | ||
+ | </ | ||
+ | - See which sound devices are detected by alsa:< | ||
+ | aplay -l | ||
+ | </ | ||
+ | - Test sound devices to see which one(s) work:< | ||
+ | alsamixer 0 | ||
+ | < | ||
+ | <select a card(s)> | ||
+ | <adjust volumes and make sure they aren't muted> | ||
+ | < | ||
+ | |||
+ | 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 | ||
+ | </ | ||
- | lsmod | grep snd | + | ---- |
- | Use this information along with your motherboard sound chipset to verify that the correct sound drivers are loading. | ||
+ | **PROBLEM: | ||
- | 2) See which sound devices are detected by alsa: | + | **FIX:** Create / |
- | aplay -l | + | defaults.pcm.card 1 |
+ | defaults.pcm.device 0 | ||
+ | defaults.ctl.card 1 | ||
- | Most likely, alsa is loading the correct modules but setting the wrong sound device as default. | + | -or- |
- | 3) Test sound devices to see which one(s) work: | + | pcm.!default { |
+ | type hw | ||
+ | card 1 | ||
+ | device 0 | ||
+ | } | ||
+ | ctl.!default { | ||
+ | type hw | ||
+ | card 1 | ||
+ | } | ||
- | | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | |||
- | atest -D hw0,0 test.wav | ||
- | atest -D hw0,1 test.wav | ||
- | atest -D hw1,0 test.wav | ||
- | atest -D hw1,1 test.wav | ||
- | ---- | + | 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: | + | **PROBLEM: |
- | **FIX: | + | **FIX: |
- | pcm.!default { | + | 1) Edit/Create / |
- | type hw | + | |
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | pcm.softvol { | ||
+ | type softvol | ||
+ | slave { | ||
+ | pcm " | ||
+ | } | ||
+ | | ||
+ | name " | ||
card 1 | card 1 | ||
- | | + | } |
- | } | + | min_dB -5.0 |
- | ctl.!default { | + | max_dB 20.0 |
- | type hw | + | resolution 6 |
- | card 1 | + | } |
- | | + | **WHERE: " |
- | } | + | |
- | 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... | + | 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:// | ||
Line 64: | Line 137: | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
- | {{tag> | + | {{tag> |