Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2011 09:00:05 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: idea: "shim" driver for Roland / Edirol SD-20 MIDI sound module?
Message-ID:  <201102220900.05248.hselasky@c2i.net>
In-Reply-To: <20110221234912.fc03786d.torfinn.ingolfsen@broadpark.no>
References:  <20110221234912.fc03786d.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 21 February 2011 23:49:12 Torfinn Ingolfsen wrote:
> Hi,
> 
> I have a Roland / Edirol SD-20[1] MIDI sound module, from the Studio
> Canvas[2] line. It connects via usb to a computer (it can connect vis
> serial too, but why use that when usb is everywhere?).
> 
> Anyway, this module isn't getting picked up by the usb midi drivers of
> FreeBSD because it doesn't advertise iutself as "usb midi class", but
> instead uses "usb vendor class", if I have understood this correctly. In
> all other ways, the SD-20 is a general MIDI (GM2) device, if I understand
> correctly. usb device descriptor, current config etc. on my page for the
> SD-20[3].
> 
> Now, here is my idea: if there was a "shim" (usb) device driver under
> FreeBSD, which would attach to this device, and do just two things:
> a) modify the "usb class " of the device to be "usb midi" instead of "usb
> vendor" b) transparently forward all other requests (and responses) to and
> from the device
> 
> the effect would be (I hope) that FreeBSD would see a new usb midi device,
> and the "normal" usb midi drivers would attach to this device. Voila! A
> driver for this almost-standard usb midi device (Roland SD-20), which
> would re-use the existing MIDI drivers.
> 
> So, would this work, or not?
> 
> References:
> 1) http://www.roland.com/products/en/SD-20/
> 2) http://en.wikipedia.org/wiki/Roland_Sound_Canvas
> 3) http://sites.google.com/site/tingox/edirol_sd-20

Hi,

Could you dump the device and config descriptor using USB config. Are you sure 
the protocol used by your device is compatible with the USB MIDI standard? You 
might be able to edit /sys/dev/sound/usb/uaudio.c so that it attaches. Look at 
other USB driver's probe function under /sys/dev/usb .

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102220900.05248.hselasky>