[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#31239: closed (Make alsa find its plugins)

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#31239: closed (Make alsa find its plugins)
Date: Sun, 27 May 2018 17:08:02 +0000

Your message dated Sun, 27 May 2018 19:07:26 +0200
with message-id <address@hidden>
and subject line Re: [bug#31239] Make alsa find its plugins
has caused the debbugs.gnu.org bug report #31239,
regarding Make alsa find its plugins
to be marked as done.

(If you believe you have received this mail in error, please contact

31239: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31239
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Make alsa find its plugins Date: Sun, 22 Apr 2018 19:13:45 +0200
Hi, this patch adds an environment variable, ALSA_PLUGIN_DIR to allow
it to find its plugins. This is especially useful in GuixSD where
pulseaudio is used by most applications. When running an application
that only knows about alsa, no sound can be output because the card is
taken by pulse. One solution is to use the pulseaudio plugin from
alsa-plugins:pulseaudio and setting ~/.asoundrc:

# Default to PulseAudio
pcm.!default {
    type pulse
    hint {
        show on
        description "Default ALSA Output (currently PulseAudio Sound
Server)" }
ctl.!default {
    type pulse

But this results in an error because alsa will look for plugins in its
own output directory in the store. With this patch, alsa is able to
find its plugins in ALSA_PLUGIN_DIR after exporting it (export

Attachment: 0001-gnu-Make-alsa-find-its-plugins-by-setting-ALSA_PLUGI.patch
Description: Text Data

--- End Message ---
--- Begin Message --- Subject: Re: [bug#31239] Make alsa find its plugins Date: Sun, 27 May 2018 19:07:26 +0200
Le Thu, 17 May 2018 08:01:43 +0200,
Danny Milosavljevic <address@hidden> a écrit :

> Hi Julien,
> good idea!
> The indentation in the patch files is off (alsa-lib uses tabs in its
> source code).
> Also, what is
> 0001-Add-support-for-a-ALSA_PLUGIN_DIR-environment-variab.patch
> embedded in this patch for?  Maybe for upstream?  Nice :)
> You already patch the individual files in alsa-lib.
> Note: It would be possible to use
> ++      char* plugdir = getenv("ALSA_PLUGIN_DIR") ?: ALSA_PLUGIN_DIR;
> instead of
> ++      char* plugdir = ALSA_PLUGIN_DIR;
> ++        char* envplugdir = getenv("ALSA_PLUGIN_DIR");
> ++        if(envplugdir != NULL)
> ++            plugdir = envplugdir;
> (especially since it's repeated multiple times) but maybe that's too
> obscure.
> So LGTM except for the indentation and extra patch file!

Pushed as 2101cc3fb691f443b830fdf5f846ded5fa018739 on core-updates.

Attachment: pgpEN_XPLcoye.pgp
Description: Signature digitale OpenPGP

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]