alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Colin Guthrie <gmane@colin.guthr.ie>
Cc: alsa-devel@alsa-project.org
Subject: Re: "default" device. Is there a way to detect if it's a plugin, and if so which one?
Date: Mon, 04 Apr 2011 12:57:00 +0200	[thread overview]
Message-ID: <s5hhbaethc3.wl%tiwai@suse.de> (raw)
In-Reply-To: <in9oqa$46g$1@dough.gmane.org>

At Sun, 03 Apr 2011 13:22:34 +0100,
Colin Guthrie wrote:
> 
> Hi,
> 
> If the user opens the "default" device in alsa, is there a way to find
> out if that "device" is actually a plugin?
> 
> i.e. is it possible to tell if you have opened the pulseaudio plugin via
> alsa?
> 
> There are various hacky ways (e.g. checking hints etc.) but that relies
> on downstream packaging which certainly isn't fool proof.

There is no clean way, AFAIK.
A new API would be needed.  For example, something like:
	snd_pcm_contains_type(pcm, SND_PCM_TYPE_EXTPLUG);

But checking whether PA-plugin is used is difficult with the API above
because pulse plugin has no unique PCM type but it's a sub-plugin
of extplug plugin...


Takashi

  reply	other threads:[~2011-04-04 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03 12:22 "default" device. Is there a way to detect if it's a plugin, and if so which one? Colin Guthrie
2011-04-04 10:57 ` Takashi Iwai [this message]
2011-04-04 11:22   ` Colin Guthrie
2011-04-04 11:38 ` Sebastian H.

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=s5hhbaethc3.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=gmane@colin.guthr.ie \
    /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;
as well as URLs for NNTP newsgroup(s).