Revision 2 of 2026-11-25 20:31 UTC by tux, the current one. Current version - History

Equalizer SliTaz 5.1

alsaequal is a 10-band equalizer for ALSA. It uses the Eq10 plugin of the CAPS suite (a LADSPA plugin). Programs that play through ALSA, such as mpg123, moc or aplay, go through it, and you move the bands with alsamixer.

SliTaz Core plays sound through ALSA directly. In SliTaz Firefox, Firefox plays through PulseAudio: its sound does not go through this equalizer.

Install

# spk-add alsaequal

It brings caps with it. The plugin goes to /usr/lib/alsa-lib/, and CAPS to /usr/lib/ladspa/caps.so.

Set it up

As your user, create ~/.asoundrc:

ctl.equal {
	type equal
	library "/usr/lib/ladspa/caps.so"
}

pcm.plugequal {
	type equal
	library "/usr/lib/ladspa/caps.so"
	slave.pcm "plug:dmixed"
}

pcm.equal {
	type plug
	slave {
		pcm plugequal
		rate 48000
	}
}

Three things matter here:

equal is now a sound device. The settings of the bands are kept in ~/.alsaequal.bin.

Play through it

With mpg123 (spk-add mpg123):

$ mpg123 -a equal track.mp3

In a second terminal, open the mixer of the equalizer:

$ alsamixer -D equal

The ten bands go from 31 Hz to 16 kHz. amixer sets one from a script:

$ amixer -D equal sset '05. 1 kHz' 80%

moc

Copy the example configuration, then set the ALSA device:

$ mkdir -p ~/.moc
$ cp /usr/share/doc/moc-2.5.2/config.example ~/.moc/config

In ~/.moc/config, change the line #ALSADevice = default to:

ALSADevice = equal

Then start moc again.

mpd SliTaz 4.0

In the audio_output section of the mpd configuration file:

audio_output {
	type	"alsa"
	name	"equal"
	device	"equal"
}

Restart mpd. The bands are read from ~/.alsaequal.bin in the home of the user mpd runs as.

For every program

To send all ALSA sound through the equalizer, name the last block pcm.!default instead of pcm.equal. The bands are still set with alsamixer -D equal. Remove the block, or the file, to go back.

Troubleshooting

Failed to load plugin "caps.so": the library line is missing in one of the two blocks.

Device or resource busy: the equalizer and the other programs use two different mixers. Use plug:dmixed as in the example, not dmix or plughw:0,0.

Problem with control file, or .alsaequal.bin is the wrong length: the settings file does not match the plugin, for example after a change of module or channels. Remove ~/.alsaequal.bin: it comes back flat.