You are not logged in.

#1 2013-01-30 04:00:55

jiaxi
Member
Registered: 2012-10-29
Posts: 5

alsa equalizer issue

First ,i compile the software:

1 alsaequal-0.6.tar.tar[http://www.thedigitalmachine.net/alsaequal.html]
2 caps_0.9.7.tar.bz2

sccond i modify my /etc/asound.conf
ctl.equal {
type equal;
}

pcm.plugequal {
type equal;
slave.pcm "plughw:0,0";
}

pcm.equal{
type plug;
slave.pcm plugequal;
}

And then, i play the music,and it is ok.
# aplay -D equal 16k_mono.wav &
# Playing WAVE '16k_mono.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono

Bug i get the error information when i input the cmd.
# amixer -D equal
ALSA lib ctl_equal.c:268:(_snd_ctl_equal_open) Problem with control file .alsaequal.bin, 3.
amixer: Mixer attach equal error: Operation not permitted

Offline

#2 2013-01-30 07:26:30

Pajaro
Member
Registered: 2004-04-21
Posts: 876

Re: alsa equalizer issue

Did you try the exact example from the wiki?

https://wiki.archlinux.org/index.php/Ad … ides_UI.29

Offline

#3 2013-01-30 08:09:53

jiaxi
Member
Registered: 2012-10-29
Posts: 5

Re: alsa equalizer issue

Pajaro wrote:

Did you try the exact example from the wiki?

https://wiki.archlinux.org/index.php/Ad … ides_UI.29


Thanks for your replay. Can alsaequal use in ARM?

Offline

#4 2013-02-01 02:28:37

jiaxi
Member
Registered: 2012-10-29
Posts: 5

Re: alsa equalizer issue

i alsa can control the eq when makr the return -1   

if(equal->klass->PortDescriptors[index] !=
(LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
SNDERR("Problem with control file %s, %d.", controls, index);
//    return -1;
}



It can play music through "aplay 48.wav" and modify the eq through "alsamixer -D equal"
when use the configuration as bellow:
pcm.!default {
type plug
slave.pcm "equalizer"
}

pcm.equalizer {
type equal
slave.pcm "plughw:0,0"

}



ctl.equal {
type equal;
}



i get the error information when add dmix。
# aplay 48.wav &
# Playing WAVE '48.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
ALSA lib pcm_params.c:2150:(snd1_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:957: Broken configuration for this PCM: no configurations available


the /etc/asound.conf :

pcm.!default {
type plug
slave.pcm "equalizer"
}

pcm.equalizer {
type equal
slave.pcm "dmixer"

}

pcm.dmixer {
type dmix
ipc_key 1026
slave {
pcm "hw:0,0"
}
}


ctl.equal {
type equal;
}

Offline

Board footer

Powered by FluxBB