From: David Henningsson <david.henningsson@canonical.com>
To: Colin Guthrie <gmane@colin.guthr.ie>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: [PATCH 0/3] Fallback mechanism for pulse plugin
Date: Wed, 14 Sep 2011 12:50:08 +0200 [thread overview]
Message-ID: <4E7086E0.4090105@canonical.com> (raw)
In-Reply-To: <4E708363.9050802@colin.guthr.ie>
On 09/14/2011 12:35 PM, Colin Guthrie wrote:
> 'Twas brillig, and David Henningsson at 14/09/11 10:51 did gyre and gimble:
>> On 09/13/2011 10:47 AM, Colin Guthrie wrote:
>>> 'Twas brillig, and Takashi Iwai at 13/09/11 08:55 did gyre and gimble:
>>>>> Yup I think so. I'll put this on my list (I did try and suggest
>>>>> something like this a while back, but got little in the way of
>>>>> responses
>>>>> - I wanted to standardise things rather than have distro hacks
>>>>> everywhere - can't seem to find the email now, so I'll just resend it
>>>>> when I have some time to think straight)
>>>>
>>>> Yeah, we want to have some really easy way to check whether PA is
>>>> enabled or not. For example, in the case of X11, you can check
>>>> $DISPLAY (or options are given explicitly) as a primary check.
>>>
>>> Yeah, but sadly I don't think this is possible. The Ubuntu solution for
>>> example works differently to yours. (Disclaimer, I've already said I
>>> think this is ugly). It works by altering the config file dynamically
>>> such that the default is either dmix or pulse depending on whether PA is
>>> running. Of course "PA is running" is a broken check in the first place
>>> (see the "ugly" word in my disclaimer!) as we could be dealing with thin
>>> clients and remote PA daemons only, in which case there is no running
>>> PA.
>>
>> I think adding a function in libpulse named is_PA_enabled() makes sense,
>> as discussed somewhere else in this thread. Once we have that, we should
>> change "PA is running" to "file_exists(libpulse.so.x)&&
>> dlopen(libpulse.so.x)&& is_PA_enabled()". Does that seem to be a
>> reasonable solution?
>
> It depends on how clever the check is.
That would be an PulseAudio internal problem, I assume - i e, it is up
to PulseAudio to make that check clever enough, or face the wrath of
ugly workarounds ;-)
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
next prev parent reply other threads:[~2011-09-14 10:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 12:33 [PATCH 0/3] Fallback mechanism for pulse plugin Takashi Iwai
2011-07-26 12:34 ` [PATCH 1/3] Define "sysdefault" PCM and control Takashi Iwai
2011-09-12 1:27 ` Raymond Yau
2011-07-26 12:34 ` [PATCH 2/3] Add snd_{ctl|pcm}_open_fallback() functions Takashi Iwai
2011-07-26 12:36 ` [PATCH 3/3] pulse: Add fallback option Takashi Iwai
2011-09-12 1:20 ` Raymond Yau
2011-09-03 15:27 ` [PATCH 0/3] Fallback mechanism for pulse plugin Colin Guthrie
2011-09-11 12:17 ` Consider revert? (was Re: [PATCH 0/3] Fallback mechanism for pulse plugin) Colin Guthrie
2011-09-12 8:05 ` [PATCH 0/3] Fallback mechanism for pulse plugin Takashi Iwai
2011-09-12 8:46 ` Colin Guthrie
2011-09-12 9:23 ` Takashi Iwai
2011-09-12 18:39 ` Colin Guthrie
2011-09-13 7:55 ` Takashi Iwai
2011-09-13 8:47 ` Colin Guthrie
2011-09-13 9:50 ` Takashi Iwai
2011-09-13 11:00 ` Colin Guthrie
2011-09-13 12:18 ` Takashi Iwai
2011-09-13 12:38 ` Colin Guthrie
2011-09-14 9:51 ` David Henningsson
2011-09-14 10:35 ` Colin Guthrie
2011-09-14 10:50 ` David Henningsson [this message]
2011-09-14 10:55 ` Colin Guthrie
2011-09-13 17:09 ` Arun Raghavan
2011-09-24 22:43 ` Raymond Yau
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=4E7086E0.4090105@canonical.com \
--to=david.henningsson@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=gmane@colin.guthr.ie \
--cc=tiwai@suse.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 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.