An SNDCTL_DSP_SETDUPLEX failure should be a WARN(), not an ERR(),

since the OSS specifications say we have to call it before knowing if
the sound card is full-duplex capable.
This commit is contained in:
Francois Gouget 2004-07-14 21:44:50 +00:00 committed by Alexandre Julliard
parent 7ed4451dd4
commit 170dbf4243
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ static DWORD OSS_RawOpenDevice(OSS_DEVICE* ossdev, int strict_format)
* so, we don't consider EINVAL an error here
*/
if (rc != 0 && errno != EINVAL) {
ERR("ioctl(%s, SNDCTL_DSP_SETDUPLEX) failed (%s)\n", ossdev->dev_name, strerror(errno));
WARN("ioctl(%s, SNDCTL_DSP_SETDUPLEX) failed (%s)\n", ossdev->dev_name, strerror(errno));
goto error2;
}
}