From: David Brownell <david-b@pacbell.net>
To: Ben Williamson <ben.williamson@greyinnovation.com>
Cc: Takashi Iwai <tiwai@suse.de>,
alsa-devel@lists.sourceforge.net,
Clemens Ladisch <clemens@ladisch.de>,
linux-usb-devel@lists.sourceforge.net
Subject: Re: [RFC] g_midi: New USB MIDI Gadget class driver.
Date: Thu, 6 Jul 2006 09:31:40 -0700 [thread overview]
Message-ID: <200607060931.41012.david-b@pacbell.net> (raw)
In-Reply-To: <44ACA882.7090209@greyinnovation.com>
On Wednesday 05 July 2006 11:06 pm, Ben Williamson wrote:
> Included are usb_audio.h and usb_midi.h containing definitions from
> the relevant USB specifications for USB audio and USB MIDI devices.
> The definitions of struct usb_ms_header_descriptor and struct
> usb_ms_endpoint_descriptor are the same as those that appear in
> sound/usb/usbmidi.c, with the intention of that file including
> <linux/usb_midi.h> instead. I have not included that change here.
Make that <linux/usb/midi.h> or maybe <linux/usb/audio.h> ... in
fact, several pending patches move <linux/usb_*.h> files into that
subdirectory, so watch out when this is ready to submit.
Glad to see such a driver. I won't comment on the MIDI bits, but
quick comments on other parts are below.
- Dave
This still have some debris left over from gadget zero, like mentions
of having two configurations, using endpoint names rather than just
the endpoints, and even comments describing itself as being gadget zero.
Best to clean that stuff up more; gadget zero did a bunch of stuff
mostly to make sure that APIs get tested, or to work with earlier
versions of the gadget framework, and your driver can be smaller.
I don't think this is a case where usb_ep_alloc_buffer() and friends
are desired ... such buffers are normally not cacheable.
You should have driver code to support high speed controllers, e.g. the
high speed descriptors including the device qualifier.
> +static const struct USB_MIDI_OUT_JACK_DESCRIPTOR(1) jack_out_emb_desc = {
What's with the SHOUTING in a struct name? Those are nasty macros.
All the struct names should be lowercase.
Note that this attachment got mangled a bit too (STATE_SYSEX_2 line wrapped).
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
prev parent reply other threads:[~2006-07-06 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-06 6:06 [RFC] g_midi: New USB MIDI Gadget class driver Ben Williamson
2006-07-06 9:27 ` Clemens Ladisch
2006-07-07 0:37 ` Ben Williamson
2006-07-07 2:49 ` David Brownell
2006-07-07 4:14 ` Ben Williamson
2006-07-06 16:31 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200607060931.41012.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=alsa-devel@lists.sourceforge.net \
--cc=ben.williamson@greyinnovation.com \
--cc=clemens@ladisch.de \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.