Alsa, equalizer, mpd

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Alsa, equalizer, mpd

Postby pascalPi » Sun Sep 07, 2014 2:23 pm

Hello everyone,
I'm happily running mpd on my raspi
but I thought adding an equalizer in te loop would be just great.
It's supposed to be system-wide, so all conf files are in /etc.

I followed mainly this :

https://wiki.archlinux.org/index.php/Ad ... _equalizer
and also
http://crunchbang.org/forums/viewtopic.php?id=17386
http://crunchbang.org/forums/viewtopic.php?pid=330833

But encoutered several issues, and in the end it doesn't work (to make it short :) )

I installed the package alsaequal from aur, by simply adding 'armv6h' in the arch array, it installed without complaining.

Here's my /etc/asoundrc : not set to use 'equal' by default as it fails.

$this->bbcode_second_pass_code('', '
ctl.equal {
type equal;
}
pcm.plugequal {
type equal;
slave.pcm "plug:dmix";
}

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;
hint {
show on
description "Default ALSA Output (currently : equalizer plugin)"
}

}

')

Here's what I have :
- alsamixer -D equal works (user and root)
- 'aplay -D plugequal' : no way to have sound, be it from root user or any user.
Here's the weird error I get :
$this->bbcode_second_pass_code('', '
Playing WAVE 'foobar.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- FLOAT_LE
')



Note that the same file plays nice with 'sysdefault' (i.e. : with no parameter given to aplay, or with an empty asoudrc)


And finally, with this in mpd.conf :



The 'best' results I obtained was the errors below, but now, not even that :

$this->bbcode_second_pass_code('', 'alsa_output: Failed to open "ALSA Sound Device" [alsa]: Failed to open ALSA device "plug:plugequal": Operation not permitted
')
But I can't even get close to that.

Now, mpd just... seems to hang. aving played with mpd.conf options... I can't figure out what happens. systemctl stop doesn't kill the process, I kill-9 it then restart it.

Finally here's my dmesg output, with only some garbage coming from a firmware update bug (from what I've read)
$this->bbcode_second_pass_code('', '[Sun Sep 7 16:10:44 2014] bcm2835_audio_set_ctls:559 Controls set for stream 0
[Sun Sep 7 16:12:25 2014] bcm2835_audio_close:767 bcm2835_audio_close: failed on waiting for event (status=0)
[Sun Sep 7 16:12:25 2014] vc_vchi_audio_deinit:348 vc_vchi_audio_deinit: failed to close VCHI service connection (status=1)
[Sun Sep 7 16:16:03 2014] bcm2835_audio_set_ctls:559 Controls set for stream 0
')


Any clue is welcome !

thanks a lot,

PascalPi
pascalPi
 
Posts: 7
Joined: Sat Aug 16, 2014 10:22 am

Re: Alsa, equalizer, mpd

Postby pascalPi » Sun Sep 07, 2014 2:30 pm

note that I also face this (apparently unsolved) issue regarding plug:dmix

http://www.raspberrypi.org/forums/viewt ... 6&p=481557
pascalPi
 
Posts: 7
Joined: Sat Aug 16, 2014 10:22 am

Re: Alsa, equalizer, mpd

Postby pascalPi » Sun Sep 07, 2014 3:27 pm

tried this conf :

http://www.raspberrypi.org/forums/viewt ... al#p399741

it seems to work, at least I have sound through mpd.

Weird.
pascalPi
 
Posts: 7
Joined: Sat Aug 16, 2014 10:22 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 7 guests

cron