Commit f5554c32 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Work around not implemented ioctl in BSD.

parent 7b007b47
......@@ -278,7 +278,11 @@ static DWORD OSS_RawOpenDevice(OSS_DEVICE* ossdev, int strict_format)
/* turn full duplex on if it has been requested */
if (ossdev->open_access == O_RDWR && ossdev->full_duplex) {
rc = ioctl(fd, SNDCTL_DSP_SETDUPLEX, 0);
if (rc != 0) {
/* on *BSD, as full duplex is always enabled by default, this ioctl
* will fail with EINVAL
* 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));
goto error;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment