All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Ziv Haziz <Ziv.Haziz@dspg.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: loading mixer control values from a different file when opening an device
Date: Mon, 02 Apr 2012 15:04:32 +0200	[thread overview]
Message-ID: <4F79A3E0.6020501@ladisch.de> (raw)
In-Reply-To: <FC1850374E3CB245B9E97002380578E001CC639B@ILMAIL01.dspg.com>

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?

Yes.

I put this into my ~/.asoundrc:

	pcm.test {
	        type plug
	        slave {
	                pcm "hw:0"
	                channels 2
	        }
	        </home/cladisch/my-ttable.conf>
	}

and this into ~/my-ttable.conf:

	ttable [
	        [ 0 1 ]
	        [ 1 0 ]
	]

and it works.


Regards,
Clemens

      parent reply	other threads:[~2012-04-02 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-01 15:31 loading mixer control values from a different file when opening an device Ziv Haziz
2012-04-02  8:01 ` Clemens Ladisch
     [not found]   ` <FC1850374E3CB245B9E97002380578E001CC639B@ILMAIL01.dspg.com>
2012-04-02 13:04     ` Clemens Ladisch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F79A3E0.6020501@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=Ziv.Haziz@dspg.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.