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

Clemens Ladisch clemens at ladisch.de
Mon Apr 2 15:04:32 CEST 2012

Ziv Haziz wrote:
> I have tried the method described in the link (using <> for loading
> other files) but I got an error - maybe I did not construct the small
> configuration file correctly.

Maybe, maybe not.  My crystal ball broke yesterday, so I do not know
what exactly you tried.

> Is the <> method works like the c preprocessor #include  directive?


I put this into my ~/.asoundrc:

	pcm.test {
	        type plug
	        slave {
	                pcm "hw:0"
	                channels 2

and this into ~/my-ttable.conf:

	ttable [
	        [ 0 1 ]
	        [ 1 0 ]

and it works.


More information about the Alsa-devel mailing list