diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-19 06:46:45 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-19 06:46:45 +0000 |
commit | fcb46c4365c40831220993f10e09b4acccea5eec (patch) | |
tree | a429e44b79bc7a9c6395dd47c78f7a1d729f1d14 /sys/dev/usb/uaudio.c | |
parent | 6baeb374a4d5982a962bf603c1fd84a2d3481a4a (diff) |
Remove unused getdev() audio driver functions.
Diffstat (limited to 'sys/dev/usb/uaudio.c')
-rw-r--r-- | sys/dev/usb/uaudio.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 7b6e6b4c5ac..0aac9cb64d1 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.114 2016/09/14 06:12:20 ratchov Exp $ */ +/* $OpenBSD: uaudio.c,v 1.115 2016/09/19 06:46:44 ratchov Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -386,7 +386,6 @@ int uaudio_trigger_input struct audio_params *); int uaudio_halt_in_dma(void *); int uaudio_halt_out_dma(void *); -int uaudio_getdev(void *, struct audio_device *); int uaudio_mixer_set_port(void *, mixer_ctrl_t *); int uaudio_mixer_get_port(void *, mixer_ctrl_t *); int uaudio_query_devinfo(void *, mixer_devinfo_t *); @@ -405,7 +404,6 @@ struct audio_hw_if uaudio_hw_if = { uaudio_halt_out_dma, uaudio_halt_in_dma, NULL, - uaudio_getdev, NULL, uaudio_mixer_set_port, uaudio_mixer_get_port, @@ -418,12 +416,6 @@ struct audio_hw_if uaudio_hw_if = { uaudio_trigger_input }; -struct audio_device uaudio_device = { - "USB audio", - "", - "uaudio" -}; - int uaudio_match(struct device *, void *, void *); void uaudio_attach(struct device *, struct device *, void *); int uaudio_detach(struct device *, int); @@ -2165,19 +2157,6 @@ uaudio_halt_in_dma(void *addr) return (0); } -int -uaudio_getdev(void *addr, struct audio_device *retp) -{ - struct uaudio_softc *sc = addr; - - DPRINTF(("uaudio_mixer_getdev:\n")); - if (usbd_is_dying(sc->sc_udev)) - return (EIO); - - *retp = uaudio_device; - return (0); -} - /* * Make sure the block size is large enough to hold at least 1 transfer. * Ideally, the block size should be a multiple of the transfer size. |