[alsa-devel] [PATCH 0/3] Fallback mechanism for pulse plugin

Raymond Yau superquad.vortex2 at gmail.com
Sun Sep 25 00:43:14 CEST 2011


2011/7/26 Takashi Iwai <tiwai at suse.de>:
> Hi,
>
> the following are experimental patches for implementing the fallback
> option of PCM / control pulse plugin.  When the connection to PA
> server fails, the plugin tries to open the fallback name.
>
> For achieving this, I added the new standard definition "sysdefault",
> which is equal with the normal "default" PCM / control definitions.
> The difference is only the name, i.e. it won't be overridden by other
> setups.  Then two new API functions for opening a fallback PCM /
> control, and finally a patch for pulse-plugin will follow.  All
> changes are relatively small and easy.
>
> Let me know if you have any suggestions or a better idea.
>

if  the definition of sysdefault for pcm is

pcm.sysdefault cards.pcm.default

it seem that definition of sysdefault for ctl should be

ctl.sysdefault ctl.hw


since aplay -Dsysdefault:1 any.wav can select card 1 's default pcm


More information about the Alsa-devel mailing list