[alsa-devel] Determining the plugins being used?

Clemens Ladisch clemens at ladisch.de
Tue Sep 13 08:54:14 CEST 2011

Raymond Toy wrote:
> On Mon, Sep 12, 2011 at 1:31 PM, Clemens Ladisch <clemens at ladisch.de> wrote:
> > Raymond Toy wrote:
> > > Is there a way to determine the plugins being used?
> >
> > Not really.  snd_pcm_type() gives you the topmost plugin's type.

The pulse plugin typically is the topmost plugin.  However, you won't be
able to differentiate between 'plain' hw and dmix devices this way
because both often have a plug plugin on top.

> Bummer.  So the only hacky way is to look at the output of snd_pcm_dump,
> then?

Well, there is the even more hacky way of sifting through /proc/asound/
files to see who is accessing the hw device, but let's pretend I didn't
mention it ...

snd_pcm_dump() was designed for debugging only, but at the moment there
is no better way.


More information about the Alsa-devel mailing list