summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-11-17 16:07:43 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-11-17 16:07:43 +0000
commit9bfc68b833e357dde4cd7fc3b1aa54981940bad2 (patch)
treebe1c2444a137209252662b9ea8a3c90374e6d0c2 /lib
parent9fa4e4e6c632edebb61b4dfa8c3449f051ae297a (diff)
don't call AUDIO_SETFD ioctl as it's a no-op
Diffstat (limited to 'lib')
-rw-r--r--lib/libsndio/sio_sun.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/libsndio/sio_sun.c b/lib/libsndio/sio_sun.c
index 9a637722c13..ffbdd6300a0 100644
--- a/lib/libsndio/sio_sun.c
+++ b/lib/libsndio/sio_sun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_sun.c,v 1.19 2015/10/02 09:48:22 ratchov Exp $ */
+/* $OpenBSD: sio_sun.c,v 1.20 2015/11/17 16:07:42 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -331,7 +331,7 @@ sio_sun_getcap(struct sio_hdl *sh, struct sio_cap *cap)
struct sio_hdl *
_sio_sun_open(const char *str, unsigned int mode, int nbio)
{
- int fd, flags, fullduplex;
+ int fd, flags;
struct audio_info aui;
struct sio_sun_hdl *hdl;
struct sio_par par;
@@ -381,17 +381,6 @@ _sio_sun_open(const char *str, unsigned int mode, int nbio)
DPERROR("sio_open_sun: setinfo");
goto bad_close;
}
- /*
- * If both play and record are requested then
- * set full duplex mode.
- */
- if (mode == (SIO_PLAY | SIO_REC)) {
- fullduplex = 1;
- if (ioctl(fd, AUDIO_SETFD, &fullduplex) < 0) {
- DPRINTF("sio_open_sun: %s: can't set full-duplex\n", path);
- goto bad_close;
- }
- }
hdl->fd = fd;
/*