aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/template/usb_template.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-06-01 11:24:34 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-06-01 11:24:34 +0000
commit0a76fe7c248005397e83ca94926065b75a1b7ea9 (patch)
tree978bd6f1d67e83ce240481d3484486f399568743 /sys/dev/usb/template/usb_template.c
parent38954a1d1c8ec6aa248679718a2a85c6d6ffe029 (diff)
downloadsrc-0a76fe7c248005397e83ca94926065b75a1b7ea9.tar.gz
src-0a76fe7c248005397e83ca94926065b75a1b7ea9.zip
Add USB MIDI template for USB device side mode.
Notes
Notes: svn path=/head/; revision=283879
Diffstat (limited to 'sys/dev/usb/template/usb_template.c')
-rw-r--r--sys/dev/usb/template/usb_template.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/template/usb_template.c b/sys/dev/usb/template/usb_template.c
index 49bd373a9210..140c0b9b3c23 100644
--- a/sys/dev/usb/template/usb_template.c
+++ b/sys/dev/usb/template/usb_template.c
@@ -1374,6 +1374,9 @@ usb_temp_setup_by_index(struct usb_device *udev, uint16_t index)
case USB_TEMP_SERIALNET:
err = usb_temp_setup(udev, &usb_template_serialnet);
break;
+ case USB_TEMP_MIDI:
+ err = usb_temp_setup(udev, &usb_template_midi);
+ break;
default:
return (USB_ERR_INVAL);
}