[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:hardware:sound_problems_on_slackware [2012/12/22 03:32 (UTC)] – [Sources] added needs_attention tag mfillpothowtos:hardware:sound_problems_on_slackware [2018/02/15 15:10 (UTC)] – [Sound Problems on Slackware] Add SBo link to alsaequal 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 -->
 +
 +**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======
  
Line 15: Line 20:
      aplay -l      aplay -l
  
-Most likely, alsa is loading the correct modules. Typically, alsa sets the wrong sound device as default.+Most likely, alsa is loading the correct modules but setting the wrong sound device as default.
  
 3) Test sound devices to see which one(s) work: 3) Test sound devices to see which one(s) work:
  
-     alsamixer+     alsamixer 0
      <F6>      <F6>
      <select a card(s)>      <select a card(s)>
Line 25: Line 30:
      <ESC>      <ESC>
            
-     atest -D hw0,0 test.wav   (WHERE 0,0 is card/slot 0, device 0 and test.wav is a sound file.) +     aplay -D plughw:0,0 test.wav   (WHERE 0,0 is card/slot 0, device 0 and test.wav is a sound file e.g. /usr/share/sounds/alsa/Noise.wav
-     atest -D hw0,1 test.wav +     aplay -D plughw:0,1 test.wav 
-     atest -D hw1,0 test.wav +     aplay -D plughw:1,0 test.wav 
-     atest -D hw1,1 test.wav+     aplay -D plughw:1,1 test.wav
  
  
Line 34: Line 39:
  
  
-**PROBLEM:** alsa is setting the wrong device as the default soundyou can force the correct default by the following:+**PROBLEM:** alsa is setting the wrong device as the default soundyou can force the correct default as follows:
  
 **FIX:** Create /etc/asound.conf and add an entry for the working card/slot and device: **FIX:** Create /etc/asound.conf and add an entry for the working card/slot and device:
  
-     pcm.!default { +    defaults.pcm.card 1 
-          type hw +    defaults.pcm.device 0 
-          card 1 +    defaults.ctl.card 1 
-          device 0 + 
-     +-or- 
-     ctl.!default { + 
-          type hw +    pcm.!default { 
-          card 1 +      type hw 
-          device 0 +      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:** Volume is low even with all controls at max.
  
 +**FIX:** Enable the alsa pre-amp.
  
 +1) Edit/Create /etc/asound.conf and add
 +    pcm.!default {
 +       type plug
 +       slave.pcm "softvol"
 +       }
 +       
 +    pcm.softvol {
 +       type softvol
 +       slave {
 +          pcm "dmix:1,0"
 +          }
 +       control {
 +          name "Pre-Amp"
 +          card 1
 +          }
 +       min_dB -5.0
 +       max_dB 20.0
 +       resolution 6
 +       }
 +**WHERE: "dmix:1,0" is  card 1 and device 0**
  
 +2) Reboot
 +
 +3) After you reboot a PREAMP control is supposed to appear in your mixer controls but, it doesn't due to a quirk. To get it to appear, open and close a media player (mplayer, dragon player or etc.).  After you do this, it should appear in the mixer (you may have to SELECT CONTROLS to see it).  When you reboot, it will disappear again until you open a media player.  To make it 'stick', set your alsa volumes to where you want and run "alsactl store" The PREAMP controls should appear normally after that.
 +
 +-----
 +
 +**PROBLEM:** No equalizer.
 +
 +**FIX:** Enable the equalizer \\ <note>the ''alsaequal'' plugin is not part of Slackware. You can build it from source using [[https://slackbuilds.org/result/?search=alsaequal&sv=|slackbuilds.org]]</note>
 +
 +Output can either be from the audio device or the mixer. For the device use the following:
 +
 +1) Edit/Create /etc/asound.conf and add
 +   ctl.equal {
 +      type equal;
 +      }
 +      pcm.plugequal {
 +        type equal;
 +        slave.pcm "plughw:1,0";
 +        }
 +      pcm.!default {
 +        type plug;
 +        slave.pcm plugequal;
 +        }
 + 
 +**WHERE: "plughw:1,0" is card 1 and device 0 - modify this for a different card or device (default is 0,0 and does not have to be entered) **
 +
 +Should you wish to play from more than one application simultaneously via the mixer (dmix), use the below:
 +
 +   ctl.equal {
 +      type equal;
 +      }
 +      pcm.plugequal {
 +        type equal;
 +        slave.pcm "plug:dmix";
 +        }
 +      pcm.!default {
 +        type plug;
 +        slave.pcm plugequal;
 +        }
 +
 +
 +To access the equalizer, run "alsamixer -D equal"
 ====== Sources ====== ====== Sources ======
 +AlienBOB's webpages and ALOT of Googling.
 +
 <!-- 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://some.website.org/some/page.html]] --> <!-- * Original source: [[http://some.website.org/some/page.html]] -->
Line 64: Line 144:
 <!-- 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 "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos hardware sound alsa audio needs_attention author_arfon}}+{{tag>howtos hardware sound alsa audio author_arfon}}
 howtos:hardware:sound_problems_on_slackware ()