mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
winealsa: Don't use default:XX to open up a hardware control.
This commit is contained in:
parent
f54aa40746
commit
1ae9a9d659
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user