http://bugs.winehq.org/show_bug.cgi?id=20799
--- Comment #92 from Raymond superquad.vortex2@gmail.com 2010-07-28 03:21:49 --- (In reply to comment #79)
It's not actually using PortAudio that's the problem. The lib apparently doesn't like being unloaded/deinitialized and reloaded/reinitialized all the time, so even if the PortAudio backend is never used, the lib still gets loaded/initialized and unloaded/deinitialized when enumerating devices and eventually triggers the bug.
The drivers= line in the ~/.alsoftrc config file will prevent the PortAudio backend from being used at all, so it won't be probed and the lib won't ever be loaded or initialized.
The portaudio builddevicelist search all config file including .asoundrc to find all possible pcm device and it use snd_ctl_open() to find the device name
if you have bluetooth-alsa plugin , ctl_bluetooth.c call bt_audio_service_open
ctl.headset { type bluetooth }
bt_audio_service_open: connect() failed: Connection refused