[PATCH] winealsa: Don't use default:XX to open a CTL
Maarten Lankhorst
maarten at codeweavers.com
Tue Oct 16 11:32:29 CDT 2007
---
dlls/winealsa.drv/waveinit.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/winealsa.drv/waveinit.c b/dlls/winealsa.drv/waveinit.c
index dae6ab4..86143b6 100644
--- a/dlls/winealsa.drv/waveinit.c
+++ b/dlls/winealsa.drv/waveinit.c
@@ -697,15 +697,10 @@ static int ALSA_ScanDevices(int directhw,
** Try to open a ctl handle; Wine doesn't absolutely require one,
** but it does allow for volume control and for device scanning
**------------------------------------------------------------------*/
- sprintf(ctlname, "default:%d", fixedctlcard == -1 ? card : fixedctlcard);
+ sprintf(ctlname, "hw:%d", fixedctlcard == -1 ? card : fixedctlcard);
rc = snd_ctl_open(&ctl, ctlname, SND_CTL_NONBLOCK);
if (rc < 0)
{
- sprintf(ctlname, "hw:%d", fixedctlcard == -1 ? card : fixedctlcard);
- rc = snd_ctl_open(&ctl, ctlname, SND_CTL_NONBLOCK);
- }
- if (rc < 0)
- {
ctl = NULL;
WARN("Unable to open an alsa ctl for [%s] (pcm card %d): %s; not scanning devices\n",
ctlname, card, snd_strerror(rc));
--
1.5.2.5
--------------040601020006090803010300--
More information about the wine-patches
mailing list