ref: d744632a356e28dd453c084dc9a2172559103b31
parent: 3b85c767fec3d7c9852f2e86afc89554bfabd02d
author: kvik <[email protected]>
date: Wed Nov 18 18:01:01 EST 2020
devaudio-sndio: use a documented default device string Passing NULL as a device string was never supposed to work, at least I couldn't find a mention of it in documented interface. It appeared to work anyway, up until recently, when sio_open started failing.
--- a/kern/devaudio-sndio.c
+++ b/kern/devaudio-sndio.c
@@ -20,7 +20,7 @@
void
audiodevopen(void)
{
- hdl = sio_open(NULL, SIO_PLAY, 0);
+ hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0);
if(hdl == NULL){
error("sio_open failed");
return;