summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio.c
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2012-05-11 07:50:27 +0000
committerratchov <ratchov@openbsd.org>2012-05-11 07:50:27 +0000
commita97aacfadf64f7dba2aefd759aaae7e85d7e7d00 (patch)
tree334872184c7e99f8748caf0be5c24076cc9761ed /lib/libsndio/sio.c
parentEnable PCI snoop on the AMD Hudson 2. With help from Juan Francisco (diff)
downloadwireguard-openbsd-a97aacfadf64f7dba2aefd759aaae7e85d7e7d00.tar.xz
wireguard-openbsd-a97aacfadf64f7dba2aefd759aaae7e85d7e7d00.zip
The default device is selected with sndiod(1) or the AUDIODEVICE
environment variable, so stop using the /dev/audio symlink which can't be used by sndiod(1) anyway
Diffstat (limited to 'lib/libsndio/sio.c')
-rw-r--r--lib/libsndio/sio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libsndio/sio.c b/lib/libsndio/sio.c
index 9ab1b32474e..3013f6f92e4 100644
--- a/lib/libsndio/sio.c
+++ b/lib/libsndio/sio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio.c,v 1.8 2012/04/11 06:05:43 ratchov Exp $ */
+/* $OpenBSD: sio.c,v 1.9 2012/05/11 07:50:27 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -57,7 +57,7 @@ sio_open(const char *str, unsigned int mode, int nbio)
hdl = sio_aucat_open("/0", mode, nbio);
if (hdl != NULL)
return hdl;
- return sio_sun_open("/", mode, nbio);
+ return sio_sun_open("/0", mode, nbio);
}
if ((p = sndio_parsetype(str, "snd")) != NULL ||
(p = sndio_parsetype(str, "aucat")) != NULL)