Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 | Equalizer for Phoniebox #862

Closed
thedipling opened this issue Mar 18, 2020 · 12 comments
Closed

🚀 | Equalizer for Phoniebox #862

thedipling opened this issue Mar 18, 2020 · 12 comments

Comments

@thedipling
Copy link

thedipling commented Mar 18, 2020

A Systemwide Equalizer based on plugequal for mpd

It would be a good thing to be able to do some equalizer Settings for the diversity of Loudspeakers to improve Soundquality

Based on
https://wiki.debianforum.de/Erweiterte_ALSA-Funktionen

I've changed the /etc/mpd.conf

#
audio_output {
        type            "alsa"
        name            "My ALSA Device"
#       device          "hw:1,0"        # optional
        device          "plug:plugequal"
#       mixer_type      "hardware"      # optional
#       mixer_device    "default"       # optional
        mixer_device    "hw:1,0"
        mixer_control   "PCM"           # optional
#       mixer_index     "0"             # optional
}

and added the /etc/asound.conf

ctl.equal {
  type equal;
  controls "/home/pi/.alsaequal.bin"
}
pcm.plugequal {
  type equal;
  slave.pcm "plughw:1,0";
  controls "/home/pi/.alsaequal.bin"
}
  pcm.equal {
  type plug;
  slave.pcm plugequal;
}

Further information that might help

Audio with my attempt is acutally working on Terminal, however I havent figured out to get the general loudness working.
However with my basic attempt the loudness is greyed out in the Website...

@ZyanKLee
Copy link
Collaborator

Is there a way to have this feature for mopidy as well?

@thedipling
Copy link
Author

Hello everyone, I've got it working! See the following Forum for information.
https://forum-raspberrypi.de/forum/thread/46718-equalizer-fuer-die-phoniebox/?postID=421069#post421305

basically the mixertype needs to be set to software in the mpd.conf.

@thedipling
Copy link
Author

Is there a way to have this feature for mopidy as well?

Hi there - sorry for the late reply...

I would say that this works system-wide

@MiczFlor
Copy link
Owner

MiczFlor commented Apr 7, 2020

Hi @thedipling
great contribution. For the time being, I added it to the wiki:

https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Equalizer_systemwide_based_on_plugequal_for_mpd

Not sure if this should go into core. What do you think?

@MiczFlor MiczFlor closed this as completed Apr 7, 2020
@ghost
Copy link

ghost commented Nov 18, 2020

Hi there

is there a working equalizer config for Phoniebox?
I am using Phoniebox+spotify with a hifiberry miniamp. So i guess i also have to adapt mopidy.conf in addition to mpd.conf and asound.conf. I tried such a lot but i didnt got it working...

does somebody has a hint or got it running?

@THorst92
Copy link

THorst92 commented Nov 26, 2020

Hi all,
I tried to activate the EQ but was not successful. This is what I've done:

  1. Install the EQ-package
  2. check which audio interface my headphone-jack is with aplay -l. It gave me device 0:0
  3. create and edit the /etc/asound.conf (also tried with ~/.asoundrc):
ctl.equal {
  type equal;
  controls "/home/pi/.alsaequal.bin"
}
pcm.plugequal {
  type equal;
  slave.pcm "plughw:0,0";
  controls "/home/pi/.alsaequal.bin"
}
  pcm.equal {
  type plug;
  slave.pcm plugequal;
}
  1. edit /etc/mpd.conf:
audio_output {
        type            "alsa"
        name            "My ALSA Device"
#       device          "hw:0,0"        # optional
        device          "plug:plugequal"       
#       mixer_type      "hardware"      # optional
        mixer_type      "software"
#       mixer_device    "default"       # optional
        mixer_device    "hw:0,0" 
#       mixer_control   "headphone"     # optional
        mixer_control   "PCM" 
#       mixer_index     "0"             # optional
}
  1. restart pi
  2. tried to change EQ while listening to music via alsamixer -D equal

Unfortunately I hear no change while changing the EQ. Does anybody got an idea or hint why?

@thedipling
Copy link
Author

Hi there, sorry for the late reply...
have you tried the decription here?
#862 (comment)

My initial try was not successful. It was a long time ago... I actually dont know what to do here...
sorry..

@ghost
Copy link

ghost commented Dec 11, 2020

I have added a few important tips and testing methods to the Wiki page. And my setup is working without any issues. But it has taken me a long, long time to figure it out.

However, my mpd.conf differs in one aspect, which is mixer_device. I leave that at "default" (by omitting it). This means ALSA will pick an appropriate mixer device. (See here https://www.musicpd.org/doc/html/plugins.html?highlight=mixer_device). I think it should be omitted, and the asound.conf file should contain a default entry. This would make it more generally usable. Can anybody confirm / disagree?

Except from Wiki

audio_output {
        type            "alsa"
        name            "My ALSA Device"
        device          "plug:plugequal"
        mixer_type      "software"      # optional
        mixer_device    "hw:1,0"
        mixer_control   "PCM"           # optional
}

My configuration

audio_output {
        type            "alsa"
        name            "HifiBerry Speakers"
        device          "hifiberry"     # optional                                                                                                                                                                                                                                                                                                                               
        auto_resample   "no"
        mixer_control   "Master"
}

@THorst92
Copy link

THorst92 commented Dec 11, 2020

Thank you for the good description. I have "just" one problem. As soon as I add this line to the /etc/asound.conf I get no sound any more from the phoniebox player:

# Make the equalizer the default playback device (optional)
pcm.!default {
  type plug
  slave.pcm plugequal;
}

The the EQ works with the soundtest speaker-test -c 2 -d plugequal.
When I remove the part and restart the phoniebox everything works, but not the EQ. Even not with the soundtest.
Is this maybe a problem with the Spotify-Edition, or did I miss something?
The rest of my configuration is like in this comment.

More info:

pi@phoniebox:~ $ amixer scontrols
Simple mixer control 'Headphone',0
pi@phoniebox:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7

@s-martin
Copy link
Collaborator

Please continue the discussion in a new issue or the new discussions feature.

Continuing discussions in closed issues are easily overlooked.

@ghost
Copy link

ghost commented Dec 13, 2020

@THorst92 : Please test my configuration described at #1198 and give feedback. Let's continue discussion there or in the discussion feature. For the Spotify Edition, you must make settings accordingly in mopidy configuration file.

@ghost
Copy link

ghost commented Dec 14, 2020

I checked the #1198 but I didn't found anything about mopidy.conf.
What exactly do I have to change there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants