System-wide equalizer with alsa.

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
r1tz
Posts: 162
Joined: Thu 09 Sep 2010, 05:19
Location: In #puppylinux (IRC)

System-wide equalizer with alsa.

#1 Post by r1tz »

Image

Download and install

Download alsaequal from the website :)
http://www.thedigitalmachine.net/alsaequal.html

It needs this dependecy.
http://quitte.de/dsp/caps_0.4.5.tar.gz
install it with:

Code: Select all

$ tar xvfz caps_0.4.5.tar.gz 
# cd caps-0.4.5 
# python configure.py
# make
# make install
#ln -s /usr/local/lib/ladspa /usr/lib/ladspa
------------------------------------------------------------------------------------------

Configuring

After you install those, you need to edit your alsamixer's configuration.
Open /usr/share/alsa/alsa.conf and add this behind:

Code: Select all

pcm.!default {
  type hw
  card 0
}

ctl.!default {
  type hw
  card 0
}

ctl.equal {
  type equal;
}

pcm.plugequal {
  type equal;
  slave.pcm "plug:dmix";
}

pcm.!default {
  type plug;
  slave.pcm plugequal;
}
You might need to change this to suit your system. I am using card 0. You can see what card you are using with

Code: Select all

aplay -l
Another thing you might need to change is

Code: Select all

slave.pcm "plug:dmix";
you might need to change it to something like

Code: Select all

slave.pcm "plughw:0,1";
again, this depends on your configuration.

-------------------------------------------------------------------------------------------

Using it

There are 2 ways to call out the equalizer.

1)
- Go into alsamixer.
- Press f6
- Type "equal"

2)
- Call alsamixer with

Code: Select all

alsamixer -D equal
---------------------------------------------------------------------------------------

Good luck.

Cheers!

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post by jamesbond »

Haven't tried this, but this is a good find :D I'm sure a lot of people will appreciate it, I remember several people asking for it in the past. I went through google a while ago and ended up in a page of unfinished project in sourceforge (3-band only) . Your find looks much better! Image
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

Post Reply