Writing a USB device driver on Linux

ALSA or libusb api - two options; both are new to me; it was the years since I wrote the device driver, and it was for Unix back in the 80s, but I know that I can understand how, as soon as I know which tools to use, and I assume that they still using C; I looked at the libusb api; very well; but I have no idea about the ALSA project; It seems that they are aimed at getting modules into the kernel to achieve this.

This is a general question, but I'm interested in the Roland GR-55; It has MIDI and audio from the same USB connection; It has drivers for Windows and MAC, but no Linux.

What libraries or tools do you prefer to use?

Am I writing a device driver or loadable kernel modules (LKM)?

+3
source share
4 answers

libusb is useful and easy to get up and running. I would advise you to get started, especially if you haven't written Linux drivers yet. Use libusb to understand what the signaling protocol is for Roland GR-55 and do some experimentation.

USB supports several types of logical connections over the same physical cable. The DATA and CONTROL handsets will probably be available from the device, and you will need to display them before starting the corresponding driver.

, libusb , - , . , ALSA - , . , ALSA, , ALSA.

, USB - , , . ALSA , , , API.

+3

, Linux http://lwn.net/Kernel/LDD3/ 13, USB-. , ​​ .

+2

, , , ALSA. . libusb, .

0
source

All Articles