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

Clemens Ladisch clemens at ladisch.de
Mon Apr 2 10:01:47 CEST 2012


Ziv Haziz wrote:
> 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 [
>
>       ]
>
> }

The "hooks" PCM plugin is something completely separate
from the global "@hooks" mechanism.

You can include configuration files directly:
http://www.alsa-project.org/alsa-doc/alsa-lib/conf.html#conf_include

What is the actual problem you're trying to solve?


Regards,
Clemens


More information about the Alsa-devel mailing list