http://bugs.winehq.org/show_bug.cgi?id=16463
--- Comment #3 from Robert Broglia robert.broglia@gmail.com 2008-12-12 07:13:12 --- Created an attachment (id=17862) --> (http://bugs.winehq.org/attachment.cgi?id=17862) make ALSA_TestDeviceForWine respect the UseDirectHW setting
The following patch makes wine's alsa initialization correctly respect UseDirectHW. I changed ALSA_TestDeviceForWine to take a pcm name string instead of card & device ints. This allows the caller to decide if they want to pass hw or plughw depending on the UseDirectHW setting and I modified the 2 calls in ALSA_ScanDevices to do so.
Now the playback and recording on my sound card works correctly and I don't foresee this patch affecting the functionality of currently working sound cards, so hopefully it can be merged with the official wine source.