[Solved] Equalizer

Get help for Volumio here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Equalizer

Postby marcoc1712 » Tue Dec 09 2014 17:44

Hi all,

since Volumio could run squeezelite, is possible use every feature in LMS, give a try to InguzEQ plugin.

Marco.
User avatar
marcoc1712
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Fri Dec 05 2014 21:21

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Equalizer

Postby MobeyDuck » Tue Dec 09 2014 20:16

Are you sure you selected the correct audio output?
Did you upgrade packages during installation? this could trigger some errors
User avatar
MobeyDuck
Moderator
 
Posts: 482
Joined: Sun Jan 05 2014 20:28
Location: The Netherlands


Equalizer

Postby tom1502 » Wed Dec 10 2014 10:19

not by intention... i just installed caps and the alsaequal package...
Random avatar
tom1502
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Wed Dec 03 2014 11:24


Equalizer

Postby tom1502 » Fri Dec 12 2014 16:34

nobody an idea what i could do in order to troubleshoot?
Random avatar
tom1502
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Wed Dec 03 2014 11:24


Equalizer

Postby tom1502 » Fri Dec 12 2014 22:21

ok gents,
as soon as i modify the mpd.conf i have silence.
Can anyone tell me what is going on with the logs in volumio?!
/var/log/ messages or syslog are emtpy and ./mpd/mpd.log is just logging the 127.0.0.1 connects...

Cheers,
Tom
Random avatar
tom1502
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Wed Dec 03 2014 11:24


Equalizer

Postby tom1502 » Fri Dec 12 2014 22:39

hm, what i did not mention is, that as soon as i change the audio_output section to
Code: Select all
audio_output {

                 type           "alsa"
                 #name          "Output"
                 name           "equal"
                 #device        "hw:0,0"
                 device         "plug:plugequal"
                 mixer_control  "Master"
                 mixer_device   "hw:0"
                 mixer_index    "0"
                 dop    "no"

}

i cannot even "play" a song via volumio.local. it does not start...
Random avatar
tom1502
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Wed Dec 03 2014 11:24


Equalizer

Postby tom1502 » Sat Dec 13 2014 08:32

Hello alltogether,

i dont know why, but now it works :-) so - but lets start from scratch, for others to follow :-)
I own a Raspberry Pi and a HifiBerry Amp. In order to tweak the sound of this little combo, i wanted an equalizer, so this is how i did it:
First, a fresh install of volumio, then
Refresh the RPi stuff:
Code: Select all
rpi-update

then, go to your volumio.local via a webbrowser.
Start with the Menu->system part and choose the "Hifiberry Amp" and klick on "Apply".
Then, do a reboot, either via the Menu in your browser or
Code: Select all
shutdown -r now


Unfortunately the mixer is not set properly in the mpd.conf, so you will not be able to adjust volume via the webinterface - it will always jump back to 100. if not, check the Menu->Playback part in the webinterface and make sure you choose "Mixer type" "Hardware"! Otherwise, the sound-quality will be poor. we will fix the Volume thing in a minute ;-)

Update the package chache
Code: Select all
apt-get update


Install alsaequal (this will also install caps
Code: Select all
apt-get install libasound2-plugin-equal


Find out which soundcard you want to output to:
Code: Select all
aplay -l

for me, the output looks like this:
Code: Select all
root@volumio:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_amp], device 0: HifiBerry AMP HiFi tas5713-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Remember the card*

Set the configuration for alsa - i decided to do that system-wide via asound.conf (you can do that user-specific via /home/*username*/.asoundrc, but as i was a little confused that mpd is running as user "mpd" and i did not have a mpd home dir, i thought, "why not system-wide") :
Code: Select all
nano -w /etc/asound.conf

In the file, past the following:
Code: Select all
ctl.equal {
  type equal;
}

pcm.plugequal {
  type equal;
  slave.pcm "plughw:0,0";
#this is where you have to input the number of your soundcard, so card0 = plughw:0,0 - card1 would be plughw:1,0 etc.
}

pcm.equal {
  # Or if you want the equalizer to be your
  # default soundcard uncomment the following
  # line and comment the above line.
# pcm.!default {
  type plug;
  slave.pcm plugequal;
}


Then i thought its a good idea to backup the configuration of mpd ;-)
Code: Select all
cp /etc/mpd.conf /etc/mpd.conf_bak


then you have to edit the mpd configuration, specifically the audio_output section:
Code: Select all
nano -w /etc/mpd.conf

Code: Select all
audio_output {

                 type           "alsa"
                 #name          "Output"
                 name           "equal"
                 #device        "hw:0,0"
                 device         "plug:plugequal"
                 mixer_control  "Master" #This is all the magic to fix the volume issue ;-)
                 mixer_device   "hw:0" #this would have to be adapted in case your soundcard is not card0
                 mixer_index    "0"
                 dop    "no"

}


So, now your system is configured to use alsaequal. now reboot:
Code: Select all
shutdown -r now


once the system is back, play a music file via the webinterface.
then run
Code: Select all
sudo -H -u mpd alsamixer -D equal

and configure your sound as you want it to be...

If all that did not work out, try to add the user mpd to the audio group. I did that at some point during my fiddling:
Code: Select all
usermod -aG audio mpd


What is rather strange, volumio refused to play anything in the beginning, so i stopped for a few minutes. without changing anything it suddenly started working - no clue why. Would be glad to hear if it works for you!

Cheers,
Thomas
Last edited by tom1502 on Sat Dec 13 2014 13:08, edited 1 time in total.
Random avatar
tom1502
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Wed Dec 03 2014 11:24


Equalizer

Postby MobeyDuck » Sat Dec 13 2014 12:49

Thanks for this guide Tom1502,
I just followed it to test it and it works. I didn't had to add mpd to the music group and i didn't had to wait before it worked.
I'm just using a simple usb upnp soundcard so it could be a hifiberry thing...

Now im going to disable this all, i hate equalizers :mrgreen: Im only able to make it all sound worse no matter what type of equalizer :oops:
User avatar
MobeyDuck
Moderator
 
Posts: 482
Joined: Sun Jan 05 2014 20:28
Location: The Netherlands


[Solved] Equalizer

Postby bbabich » Thu Jan 08 2015 12:58

Thanks for the guide too; works perfectly on my HiFiberry amp+
Random avatar
bbabich
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Thu Jan 08 2015 12:53


[Solved] Equalizer

Postby tom1502 » Thu Jan 08 2015 13:26

bbabich wrote:Thanks for the guide too; works perfectly on my HiFiberry amp+

As this is your First Post here, you registered just to say thanks? A pleasure ;)
Random avatar
tom1502
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Wed Dec 03 2014 11:24

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests