[alsa-devel] loading mixer control values from a different file when opening an device

Ziv Haziz ziv.haziz at dspg.com
Sun Apr 1 17:31:39 CEST 2012

Hi All,
i'm using asound.conf file to define several devices 
where each one is configuring 
my sound device differently
changing route, setting different volumes and etc)

i would have like to load setting 
from a different file only when accessing the a 
specific device - something like this:

pcm.MyDevice {
  type hooks
  slave.pcm {
    type hw
    device 0

  <i would like to place here something which
 will "func load" from another file>

  hooks.0 {
    type ctl_elems
    hook_args [



so when someone will playback MyDevice it 
will call also hooks from the other file

but i can't make it work, tried to use the alsa.conf
as example - any example will be highly appreciated

More information about the Alsa-devel mailing list