so here is my guide to intsall the alsa-equal plugin to use ladspa based equalizers with the odroid c1+ and odroid hifi shield.
a little note first: I installed the midnight commander first, since its my favourite file manager and it makes things a lot easier but thats optional and involves some not so ok symlinking of libraries.
1: get the alsequal package:
- Code: Select all
wget https://aur.archlinux.org/cgit/aur.git/snapshot/alsaequal.tar.gz
2: create a normal user to create the package:
- Code: Select all
useradd -m -G wheel -s /bin/bash testuser
and add a password for the user
- Code: Select all
passwd testuser
3. we need some more packages installed to make the package
- Code: Select all
pacman -S base-devel
pacman -S ladspa
pacman -S swh-plugins
4. Now log in as your new user and extract the package you downloaded.
Edit the PKGBUILD and change the arch= to arch=('arm7h')
5. now build the package
- Code: Select all
makepkg
6. time to log in as root again und install the freshly build package:
- Code: Select all
pacman -U pacman -U alsaequal-0.6-13-armv7h.pkg.tar.xz
7. edit the /usr/share/alsa/alsa.conf and add the folowing lines at the end:
- Code: Select all
ctl.equal {
type equal;
controls "/home/mpd/.alsaequal.bin";
}
pcm.plugequal {
type equal;
slave.pcm "plughw:1,0"; #adjust to match your alsa device you want equalized
}
pcm.!default {
type plug;
slave.pcm plugequal;
}
8. edit the /etc/mpd.conf , remove all output devices and add alsaequal as new output devices
- Code: Select all
audio_output {
name "equal"
type "alsa"
device "plug:plugequal"
# auto_resample "no"
# auto_format "no"
enabled "yes"
}
IMPORTANT : DONT USE THE WEB INTERFACE TO EDIT YOUR CONFIGURATION, IT DOESNT WORK DONT EVER TOUCH THE MPD PART OF THE WEB INTERFACE
9. reboot
10. since mpd is a seperate user and alsaequal is stored in .alsaequal.bin in the home directory of the user create a directory /home/mpd
11. to adjust alsaequal use
- Code: Select all
sudo -H -u mpd alsamixer -D equal
and maybe you have to chown the .alsaequal.bin in /home/mpd and set the owner to mpd but i am not sure about this.
The part that really sucks is the mpd configuration is broken as hell with the web interface, so if you find that your configuration has been reset for some reason, just edit the mpd.conf manually and restart the mpd by using the /dev/ options in the web interface