Audio+ V2 Master softvol and equal plugin (asound.conf or .asoundrc)

Hello,

I’m dealing with a custom ALSA setup, but so far can’t figure out how to get it working:

# Default asound.conf works great for the Master software volume.
# Using "aplay music.wav", then "alsamixer" I can adjust Master at will.
pcm.raspiaudio {
type softvol
slave.pcm "plughw:0"
control.name "Master"
control.card 0
}
pcm.!default { 
type plug 
slave.pcm "raspiaudio" 
}

# Also the equalizer works fine (not mixed with the previous Master syntax).
# "aplay -D equal music.wav" and then "alsamixer -D equal" adjusts correctly each frequency bar.
ctl.equal {
type equal;
}
pcm.equal {
type plug;
slave.pcm plugequal;
}
pcm.plugequal {
type equal;
slave.pcm "plughw:0,0";
}

So, I need to mix both configuration files to able to control either equalization values or Master value. I mean, if I combine both configuration files then:

aplay music.wav
alsamixer # OK
alsamixer -D equal # Does not work

aplay -D equal music.wav
alsamixer # Does not work
alsamixer -D equal # OK

Am I misunderstanding the ALSA configuration file somehow?, is there any chance to combine the configuration files?.

Thanks in advance, Ibon.

I’m going to reply myself, as I’ve got a working config file:

pcm.myaudio{
  type softvol
  slave.pcm "plughw:0"
  control.name "MyName"
  control.card 0
}
pcm.!default { 
  type plug 
  slave.pcm  "myaudio"
}
pcm.equal {
  type softvol
  slave.pcm equal_real
  control.name "MyName"
  control.card 0
}
pcm.equal_real {
  type plug;
  slave.pcm plugequal
}
pcm.plugequal {
  type equal;
  slave.pcm "plug:dmixer"
  library "/home/pi/.mbeq_1197.so";
  module "mbeq";
}
pcm.dmixer {
  type dmix
  ipc_key 1234
  ipc_key_add_uid true # Needed ?
  ipc_perm 0666
  slave.pcm "hw:0,0"
}
ctl.dmixer {
  type hw
  card 0
}
ctl.equal {
  type equal;
  library "/home/pi/.mbeq_1197.so";
  module "mbeq";
}

Use it if you find it useful! :slight_smile:

thanks for taking the time of sharing this :+1: