winealsa.drv: respect UseDirectHW in ALSA_TestDeviceForWine

Robert Broglia robert.broglia at gmail.com
Fri Dec 12 18:30:38 CST 2008


ALSA_TestDeviceForWine always opens a "hw" device even if wine is
going to use "plughw". This prevents the function from succeeding and
preventing playback/recording on sound cards such as the Terratec Dmx
6fire which can't be opened in 2 channel mode when using "hw" unless
another app has already opened "plughw".

This patch changes 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 the 2 calls in ALSA_ScanDevices are modified to do so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ALSATestDevice-directhw.patch
Type: application/octet-stream
Size: 2465 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081212/ee3b7180/attachment-0001.obj 


More information about the wine-patches mailing list