[pulseaudio-discuss] [PATCH 04/25] printout pthread id number in pulseaudio log

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Mon Aug 8 09:22:26 PDT 2011


> > Do you think it's better to invoke pa_thread_new("alsa-sink 0", func,
> u)
> > or adding another index after the plain name? (e.g.
> > pa_thread_new("alsa-sink", index, func, u))
> 
> I've not looked at the code, but if we know the sink index by this
> stage
> (I'm not sure we do?) then yes that could be helpful.
> 
> Pierre will probably know if this is practically useful tho'. I suppose
> in most cases testing and probing will be done with only one sink
> anyway
> so there is no doubt which one owns the thread :p

I like the second option better. Ideally the index should match the sink
index to that you can query with pactl which sink is really being used. The
index in itself isn't terribly useful if it depends on the
configuration/profiles.



More information about the pulseaudio-discuss mailing list