Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsaequal problems and workaround
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
jsegrave
n00b
n00b


Joined: 10 Jun 2012
Posts: 4

PostPosted: Mon Aug 26, 2013 9:51 pm    Post subject: alsaequal problems and workaround Reply with quote

I'm recently upgraded to gentoo 3.10 and alsamixer -D equal produced the following error
Code:

jes:/home/jes$ alsamixer -D equal
ALSA lib ctl_equal.c:268:(_snd_ctl_equal_open) Problem with control file .alsaequal.bin, 3  15.
cannot open mixer: Operation not permitted


A bit of playing with ebuild to get the source and examine the line in question in
/var/tmp/portage/media-plugins/alsaequal-0.6-r1/work/alsaequal-amd64/ctl_equal.c

Code:
 
    264                 if(equal->control_data->control[i].type == LADSPA_CNTRL_INPUT) {
    265                         index = equal->control_data->control[i].index;
    266                         if(equal->klass->PortDescriptors[index] !=
    267                                         (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
    268                                 SNDERR("Problem with control file %s, %d.", controls, index);
    269                                 return -1;
    270                         }

Updating the SNDERR line to output the hex value of equal->klass->PortDescriptors[index] on errors showed it had a value of 0x15 which is LADSPA_HINT_LOGARITHMIC | LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL, which triggers the error. Altering that line to be:
Code:

    266                      if((0xf & equal->control_data->control[i].type) == LADSPA_CNTRL_INPUT) {


then an ebuild compile/preinst/install/merge and a restart of alsasound restored the alsamixer ncurses equaliser to normal operation
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 237
Location: Russia && Saint-Petersburg

PostPosted: Mon Aug 26, 2013 11:56 pm    Post subject: Reply with quote

the same problem.
fix don't work
_________________
sorry my bad english
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 237
Location: Russia && Saint-Petersburg

PostPosted: Tue Aug 27, 2013 12:40 am    Post subject: Reply with quote

caps-plugins-0.4 + 3.10 ---> work fine
_________________
sorry my bad english
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