History log of /openbsd/sys/dev/usb/umidi.c (Results 1 – 25 of 56)
Revision Date Author Comments
# 81508fe3 23-May-2024 jsg <jsg@openbsd.org>

remove unneeded includes; ok mpi@


# 1525749f 02-Jul-2022 visa <visa@openbsd.org>

Remove unused device poll functions.

Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.

Some addenda from jsg@.

OK miod@ mpi@


# 0d6a2fde 21-Mar-2022 miod <miod@openbsd.org>

Constify struct {audio,midi,radio,video}_hw_if. No functional change.

ok mpi@ ratchov@ "More const is good" deraadt@


# f88cb03e 31-Jul-2020 mglocker <mglocker@openbsd.org>

Nuke all occurrences of usbd_abort_pipe() if it gets called right
before usbd_close_pipe(), since usbd_close_pipe() already takes care
about aborting non-empty pipes.

As investigated by gerhard@ usb

Nuke all occurrences of usbd_abort_pipe() if it gets called right
before usbd_close_pipe(), since usbd_close_pipe() already takes care
about aborting non-empty pipes.

As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe()
to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards.

ok gerhard@

show more ...


# 7a626280 16-Mar-2020 jasper <jasper@openbsd.org>

Prevent a NULL derefence in alloc_all_endpoints_fixed_ep()
when no IO endpoints were found. Coverity CID 1453263, 1453156

Check return value of usbd_interface2endpoint_descriptor() in
alloc_all_endp

Prevent a NULL derefence in alloc_all_endpoints_fixed_ep()
when no IO endpoints were found. Coverity CID 1453263, 1453156

Check return value of usbd_interface2endpoint_descriptor() in
alloc_all_endpoints_yamaha() as it may return NULL which ends up being
dereferenced by the UE_GET_XFERTYPE() macro. Coverity CID 271356

ok ratchov@

show more ...


# 40577a91 23-Jan-2019 mpi <mpi@openbsd.org>

Remove uneeded header.


# 17294f5a 16-Nov-2018 mpi <mpi@openbsd.org>

free(9) sizes for array of endpoints.

ok ratchov@


# 28d8609c 31-Oct-2018 miko <miko@openbsd.org>

zap return keyword to clarify umidi_flush() returns no value; ok ratchov@


# 17bad486 07-Sep-2018 miko <miko@openbsd.org>

clarify that goto error in alloc_all_endpoints_fixed_ep() always returns
USBD_INVAL.

ok mpi@


# 4554e7b4 07-Sep-2018 miko <miko@openbsd.org>

move initial jack count to alloc_all_endpoints(), and reset count to zero
in free_all_jacks().

ok stsp@ ratchov@


# 535d645a 06-Sep-2018 miko <miko@openbsd.org>

execute the same code for failure of assign_all_jacks_automatically()
and attach_all_mididevs(). this ensures unbind_all_jacks() and
usbd_deactivate() happen for both cases.

ok ratchov@


# c0cd3489 30-Dec-2017 guenther <guenther@openbsd.org>

Don't pull in <sys/file.h> just to get fcntl.h

ok deraadt@ krw@


# 234dfda1 08-Apr-2017 deraadt <deraadt@openbsd.org>

A pile of sizes to free(9). In test for a few days in snapshots.
Errors will result in nice clean panic messages so we know what's wrong.
Reviewed by dhill visa natano jsg.


# 267ecc8a 10-Feb-2017 ratchov <ratchov@openbsd.org>

Use __func__ for DPRINTF's as we do in other parts of the
code. From Michael W. Bombardieri" <mb at ii.net>. Thanks.


# 4eed24ce 07-Jan-2017 ratchov <ratchov@openbsd.org>

Remove unused MIX_CN_CIN macro, make umidi_evlen[] static, style(9).
From Michael W. Bombardieri. Thanks.


# b58f424b 20-Dec-2016 ratchov <ratchov@openbsd.org>

Group identical close_in_jack() and close_out_jack() into a single
routine. From Michael W. Bombardieri <mb at ii.net>. Thanks!


# 21dab745 14-Mar-2015 jsg <jsg@openbsd.org>

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


# 0f0d0f95 09-Dec-2014 doug <doug@openbsd.org>

More malloc() -> mallocarray() in the kernel.

ok deraadt@ tedu@


# df2ac69f 12-Jul-2014 tedu <tedu@openbsd.org>

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.


# 2ab3f0c0 10-Nov-2013 pirofti <pirofti@openbsd.org>

Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().

Okay mpi@


# 886882aa 15-May-2013 ratchov <ratchov@openbsd.org>

Introduce a global interrupt-aware mutex protecting data
structures (including sound-card registers) from concurent
access by syscall and interrupt code-paths. Since critical
sections remain the same

Introduce a global interrupt-aware mutex protecting data
structures (including sound-card registers) from concurent
access by syscall and interrupt code-paths. Since critical
sections remain the same, calls to splraise/spllower can be
safely replaced by calls to mtx_enter/mtx_leave with two
exceptions: (1) mutexes are not reentrant (the inner splraise
is thus removed), and (2) we're not allowed to sleep with a
mutex (either msleep is used or the mutex is released before
sleeping).

ok and help from kettenis, a lot of work from armani

show more ...


# ab0b1be7 15-Apr-2013 mglocker <mglocker@openbsd.org>

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@

show more ...


# b047b92c 28-Mar-2013 tedu <tedu@openbsd.org>

proc.h is way too much header for usb to handle.


# 673b2bfb 28-Mar-2013 tedu <tedu@openbsd.org>

you probably don't need to include vnode.h or reboot.h. you most definitely
absolutely do not need to include vnode.h because it includes uvm_extern.h
and you want the idiotic TRUE FALSE defines from

you probably don't need to include vnode.h or reboot.h. you most definitely
absolutely do not need to include vnode.h because it includes uvm_extern.h
and you want the idiotic TRUE FALSE defines from uvm.

show more ...


# f3db5e0d 30-Mar-2012 ratchov <ratchov@openbsd.org>

If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;
just return and make the midi(4) driver retry later. UART buffers
are large enough for this, except eap(4) which uses interrupts for

If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;
just return and make the midi(4) driver retry later. UART buffers
are large enough for this, except eap(4) which uses interrupts for
output.
help from and ok jsg@

show more ...


123