winealsa: Don't use default:XX to open up a hardware control.

This commit is contained in:
Maarten Lankhorst 2007-10-16 18:32:29 +02:00 committed by Alexandre Julliard
parent f54aa40746
commit 1ae9a9d659

View File

@ -697,14 +697,9 @@ 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",