mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/3] alsa-lib: provide a way to limit the PCM modules
Date: Mon,  4 Nov 2019 09:56:07 +0100	[thread overview]
Message-ID: <20191104085609.27982-1-jbe@pengutronix.de> (raw)

On some platforms it makes sense to limit the available PCM modules to
the really required ones (application specific) or useful ones (hardware
specific). This change enables the user to select specific modules which
will be later on present in the run-time system.

To be backward compatible, the default keyword 'all' will still build all
available PCM modules. The list of available PCM modules is part of the
package's 'configure' help text.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 rules/alsa-lib.in   | 13 +++++++++++++
 rules/alsa-lib.make |  8 ++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/rules/alsa-lib.in b/rules/alsa-lib.in
index adba896ac..edc40e186 100644
--- a/rules/alsa-lib.in
+++ b/rules/alsa-lib.in
@@ -47,6 +47,19 @@ config ALSA_LIB_PCM
 	help
 	  Disable the PCM component if you do not need it
 
+config ALSA_LIB_PCM_MODULES
+	depends on ALSA_LIB_PCM
+	string
+	prompt "pcm modules"
+	default "all"
+	help
+	  You can use the keyword 'all' here for all supported PCM modules or a
+	  comma separated list of required module keywords. The list of module
+	  keywords is:
+	    copy linear route mulaw alaw adpcm rate plug multi shm file null
+	    empty share meter hooks lfloat ladspa dmix dshare dsnoop asym
+	    iec958 softvol extplug ioplug mmap_emul
+
 config ALSA_LIB_RAWMIDI
 	bool
 	default y
diff --git a/rules/alsa-lib.make b/rules/alsa-lib.make
index 3dac61ea5..227a4156e 100644
--- a/rules/alsa-lib.make
+++ b/rules/alsa-lib.make
@@ -62,8 +62,12 @@ ALSA_LIB_CONF_OPT	:= \
 	--with-pthread \
 	--with-librt \
 	--with-alsa-devdir=/dev/snd \
-	--with-aload-devdir=/dev \
-	--with-pcm-plugins=all
+	--with-aload-devdir=/dev
+
+ifdef PTXCONF_ALSA_LIB_PCM
+ALSA_LIB_CONF_OPT += \
+	--with-pcm-plugins=$(PTXCONF_ALSA_LIB_PCM_MODULES)
+endif
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2019-11-04  8:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04  8:56 Juergen Borleis [this message]
2019-11-04  8:56 ` [ptxdist] [PATCH 2/3] alsa-libs: honor inter-package dependencies Juergen Borleis
2019-11-04  8:56 ` [ptxdist] [PATCH 3/3] alsa-utils: replace dependencies added by accident by the real ones Juergen Borleis

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=20191104085609.27982-1-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.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