diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2000-05-24 13:44:19 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2000-05-24 13:44:19 +0000 |
commit | c5ab1f153fd2480c2c69739c17ffd657875cc645 (patch) | |
tree | ab0f4c0b66531ce5e9622177ebe00f7f4e4c20d1 /sys/dev/usb/uaudio.c | |
parent | fa1f4284b2b2285267bac742e98ded00f28822f3 (diff) |
Permit detach of audio devices, such as uaudio. Selected code
from NetBSD/Lennart Augustsson. (niklas@ ok)
Diffstat (limited to 'sys/dev/usb/uaudio.c')
-rw-r--r-- | sys/dev/usb/uaudio.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index d579aebc15d..c802b22f301 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.4 2000/03/30 16:19:33 aaron Exp $ */ +/* $OpenBSD: uaudio.c,v 1.5 2000/05/24 13:44:18 ho Exp $ */ /* $NetBSD: uaudio.c,v 1.23 2000/03/29 18:24:53 augustss Exp $ */ /* @@ -388,11 +388,8 @@ USB_ATTACH(uaudio) sc->sc_chan.sc = sc; DPRINTF(("uaudio_attach: doing audio_attach_mi\n")); -#if defined(__OpenBSD__) - audio_attach_mi(&uaudio_hw_if, sc, &sc->sc_dev); -#else + sc->sc_audiodev = audio_attach_mi(&uaudio_hw_if, sc, &sc->sc_dev); -#endif usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, USBDEV(sc->sc_dev)); |