[pulseaudio-discuss] [PATCH] Two identical USB sound-cards - avahi fails to add service.

Ivar Mossin ivar.mossin at gmail.com
Thu Sep 9 11:01:06 PDT 2010


Hey,

I have written a small patch that allows the module-zeroconf-publish module
to export the service for both cards, even though they originally had the
same name. In the get_service() I have extracted the content that dealt with
naming the service to a separate function, get_service_name(). Then, if the
registration of the service fails, a loop is entered, trying to add ".%d" to
the name until it succeeds (or a limit of 100 is reached), basically the
same strategy used in pa_namereg_register().

Without this patch, PA refuses to export the second card over the network.
Would be nice if this patch (or something similar) is added to the PA
system.

Thanks,
-Ivar!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20100909/f20697f6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulse-audio-zeroconf.patch
Type: text/x-patch
Size: 4915 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20100909/f20697f6/attachment.bin>


More information about the pulseaudio-discuss mailing list