Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]ALSA Equalizer issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Tue Jan 29, 2013 11:59 am    Post subject: [SOLVED]ALSA Equalizer issue Reply with quote

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


Last edited by jiaxi on Fri Mar 08, 2013 7:21 am; edited 2 times in total
Back to top
View user's profile Send private message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Thu Jan 31, 2013 10:22 am    Post subject: Reply with quote

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;
}
Back to top
View user's profile Send private message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Fri Feb 01, 2013 2:23 am    Post subject: Reply with quote

t 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;
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum