Skip to contentSkip to conversation

questions about usbmidi

DISCUSSION Thomas Rabe 2 participants 3 messages Apr 10, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Clemens Ladisch
Quoted 2 lines · Thomas Rabe
Quoted 1 line · Clemens Ladisch

Well, this may indicate that the MIDI part works and that the error

is in

Quoted 10 lines
Quoted 5 lines
Quoted 2 lines

some other part of the driver. Does the oops still happen when you don't call snd_usb_create_midi_interface?

the driver works fine without calling snd_usb_create_midi_interface (no errors, all audiochannels are available).

The initialization code does nothing USB-related except allocing some URBs and submitting the input URBs. Please try to remove the call to snd_usbmidi_submit_urb at the end of _create_midi_interface.

removing the snd_usbmidi_submit_urb call also oopses. i tried some endpoint configs like below but each crashing my machine:

.data = & (const snd_usb_midi_endpoint_info_t) {
		  .out_ep =0x06,
		  .in_ep = 0x06,
		  .out_cables =	0x003,
		  .in_cables =	0x003
}

last msg:
created 2 output and 2 input ports

.data = & (const snd_usb_midi_endpoint_info_t) {
		  .out_ep =0x06,
		  .out_cables =	0x003,
		  }

last msg:
created 2 output and 0 input ports

.data = & (const snd_usb_midi_endpoint_info_t) {
		 }

last msg:
created 0 output and 0 input ports

Greetings,

Thomas Rabe.

-- mail: raven at drehmoment dot org
-- home: http://hal9000.drehmoment.org
-- more: http://drehmoment.org

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#1 lore raw
Quoted 5 lines · Thomas Rabe
Quoted 3 lines · Clemens Ladisch

The initialization code does nothing USB-related except allocing some URBs and submitting the input URBs. Please try to remove the call to snd_usbmidi_submit_urb at the end of _create_midi_interface.

Quoted 8 lines

removing the snd_usbmidi_submit_urb call also oopses. i tried some endpoint configs like below but each crashing my machine:
...

.data = & (const snd_usb_midi_endpoint_info_t) {
		 }

last msg:
created 0 output and 0 input ports

So the oops isn't related to USB at all.

The first thing after outputting "created ... ports" is the line:

	list_add(&umidi->list, &umidi->chip->midi_list);

It may be possible that your US428 driver doesn't initialize chip->midi_list. This may indicate that you didn't merge all the changes made to usbaudio.c.

HTH
Clemens

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#2 lore raw
Quoted 11 lines · Clemens Ladisch
Quoted 1 line

Clemens Ladisch wrote:

So the oops isn't related to USB at all.

The first thing after outputting "created ... ports" is the line:

	list_add(&umidi->list, &umidi->chip->midi_list);

It may be possible that your US428 driver doesn't initialize chip->midi_list. This may indicate that you didn't merge all the changes made to usbaudio.c.

uh, sorry. i forgot the INIT_LIST_HEAD(&us428(card)->chip.midi_list) call. now midi works and everything is fine:) thanks!

Quoted 2 lines

HTH
Clemens

Greetings,

Thomas Rabe.

-- mail: raven at drehmoment dot org
-- home: http://hal9000.drehmoment.org
-- more: http://drehmoment.org

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com