mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: bernhard@bwalle.de
To: ptxdist@pengutronix.de
Cc: Bernhard Walle <walle@corscience.de>
Subject: [ptxdist] [PATCH] alsa-lib: Allow installation of /etc/asound.conf
Date: Tue,  8 Nov 2011 16:21:48 +0100	[thread overview]
Message-ID: <1320765708-10518-1-git-send-email-bernhard@bwalle.de> (raw)
In-Reply-To: <201111081529.26688.jbe@pengutronix.de>

From: Bernhard Walle <walle@corscience.de>

Some systems require a tuned /etc/asound.conf, for example for special
mixer entries.

Signed-off-by: Bernhard Walle <walle@corscience.de>
---
 rules/alsa-lib.in   |    6 ++++++
 rules/alsa-lib.make |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/rules/alsa-lib.in b/rules/alsa-lib.in
index 393a02a..c32d361 100644
--- a/rules/alsa-lib.in
+++ b/rules/alsa-lib.in
@@ -38,6 +38,12 @@ choice
 		  conversion is available with SALSA-lib.
 endchoice
 
+config ALSA_LIB_ASOUND_CONF
+	bool
+	prompt "install /etc/asound.conf from projectroot"
+	help
+	  install a asound.conf file from the projectroot
+
 config ALSA_LIB_RESMGR
 	bool
 	depends on BROKEN
diff --git a/rules/alsa-lib.make b/rules/alsa-lib.make
index 929ab4e..a8288dc 100644
--- a/rules/alsa-lib.make
+++ b/rules/alsa-lib.make
@@ -207,6 +207,10 @@ endif
 		/usr/share/alsa/pcm/dsnoop.conf)
 endif
 
+ifdef PTXCONF_ALSA_LIB_ASOUND_CONF
+	@$(call install_alternative, alsa-lib, 0, 0, 0644, /etc/asound.conf)
+endif
+
 	@$(call install_finish, alsa-lib)
 
 	@$(call touch)
-- 
1.7.7.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2011-11-08 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-08 14:17 bernhard
2011-11-08 14:29 ` Juergen Beisert
2011-11-08 14:36   ` Bernhard Walle
2011-11-08 15:21   ` bernhard [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=1320765708-10518-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    --cc=walle@corscience.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox