All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pedro Lopez-Cabanillas <plcl@telefonica.net>
To: martin-langer@gmx.de, Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: my first usb-midi experiment ends with segmentation fault
Date: Tue, 30 Jul 2002 23:43:32 +0200	[thread overview]
Message-ID: <200207302343.32848.plcl@telefonica.net> (raw)
In-Reply-To: <20020730181834.GA494@tuba.home>

El Mar 30 Jul 2002 20:18, Martin Langer escribió:
> The only strange thing I found are the unknown parts of the lsusb output
> (broken descriptor?) and the impossible module reload = segfault.
>

These 'unknown descriptor' lines at lsusb output are jack descriptors and MS 
endpoint descriptors, as required by the specification documents (see 
midi10.pdf, pages 39-43). The lsusb utility should be updated.

I will try to manually decode that descriptors.

>
> Bus 001 Device 002: ID 0a4d:008e
>   Language IDs: none (invalid length string descriptor bf; len=0)
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               1.00
>   bDeviceClass            1 Audio
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   idVendor           0x0a4d
>   idProduct          0x008e
>   bcdDevice            2.00
>   iManufacturer           1
>   iProduct                2
>   iSerial                 0
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength          101
>     bNumInterfaces          2
>     bConfigurationValue     1
>     iConfiguration          3
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                0mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           0
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      1 Control Device
>       bInterfaceProtocol      0
>       iInterface              0
>       AudioControl Interface Descriptor:
>         bLength                 9
>         bDescriptorType        36
>         bDescriptorSubtype      1 (HEADER)
>         bcdADC               1.00
>         wTotalLength            9
>         bInCollection           1
>         baInterfaceNr( 0)       1
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass         1 Audio
>       bInterfaceSubClass      3 Non Streaming
>       bInterfaceProtocol      0
>       iInterface              0
>   unknown descriptor type: 07 24 01 00 01 41 00
		Class Specific Interface Descriptor
			bLength				7
			bDescriptorType		0x24  (CS_INTERFACE)
			bDescriptorSubtype		1  header
			bcdADC				1.0
			wTotalLength			65 

>   unknown descriptor type: 06 24 02 01 01 00
		MIDI Jack Descriptor
			bLength				6
			bDescriptorType		0x24
			bDescriptorSubtype		2  IN
			bJackType				1  EMBEDDED
			bJackID				1

>   unknown descriptor type: 06 24 02 02 02 00
		MIDI Jack Descriptor
			bLength				6
			bDescriptorType		0x24
			bDescriptorSubtype		2  IN
			bJackType				2  EXTERNAL
			bJackID				2

>   unknown descriptor type: 09 24 03 01 03 01 02 01 00
		MIDI Jack Descriptor
			bLength				9
			bDescriptorType		0x24
			bDescriptorSubtype		3  OUT
			bJackType				1  EMBEDDED
			bJackID				3
			bNrInputPins			1
			BaSourceID			2
			BaSourcePin			1

>   unknown descriptor type: 09 24 03 02 04 01 01 01 00
		MIDI Jack Descriptor
			bLength				9
			bDescriptorType		0x24
			bDescriptorSubtype		3  OUT
			bJackType				2  EXTERNAL
			bJackID				4
			bNrInputPins			1
			BaSourceID			1
			BaSourcePin			1

>       Endpoint Descriptor:
>         bLength                 9
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               none
>         wMaxPacketSize         64
>         bInterval               0
>         bRefresh                0
>         bSynchAddress           0
>   unknown descriptor type: 05 25 01 01 03
			MIDIStreaming Bulk Endpoint Descriptor
				bLength				5
				bDescriptorType		0x25 (CS_ENDPOINT)
				bDescriptorSubtype		1 MS_GENERAL
				bNumEmbMIDIJack		1
				BaAssocJackID			3

>       Endpoint Descriptor:
>         bLength                 9
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               none
>         wMaxPacketSize         64
>         bInterval               0
>         bRefresh                0
>         bSynchAddress           0
>   unknown descriptor type: 05 25 01 01 01
			MIDIStreaming Bulk Endpoint Descriptor
				bLength				5
				bDescriptorType		0x25 (CS_ENDPOINT)
				bDescriptorSubtype		1 MS_GENERAL
				bNumEmbMIDIJack		1
				BaAssocJackID			1

>   Language IDs: none (invalid length string descriptor bf; len=0)

Regards,
Pedro





-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31

  parent reply	other threads:[~2002-07-30 21:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-28 21:39 my first usb-midi experiment ends with segmentation fault Martin Langer
2002-07-29 10:40 ` Takashi Iwai
2002-07-29 12:30   ` Martin Langer
2002-07-29 21:51 ` Pedro Lopez-Cabanillas
2002-07-30 13:09 ` Clemens Ladisch
2002-07-30 15:08   ` Pedro Lopez-Cabanillas
2002-07-30 16:38     ` Clemens Ladisch
2002-07-30 18:18       ` Martin Langer
2002-07-30 21:42         ` Martin Langer
2002-07-30 21:43         ` Pedro Lopez-Cabanillas [this message]
2002-07-31 10:02         ` [Alsa-devel][Patch] usbmidi fixes Clemens Ladisch
2002-07-31 10:45           ` Martin Langer
2002-07-31 14:38           ` Takashi Iwai
2002-07-31 10:26         ` my first usb-midi experiment ends with segmentation fault Clemens Ladisch
2002-07-31 21:02           ` Martin Langer
2002-08-01  9:48             ` Clemens Ladisch

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=200207302343.32848.plcl@telefonica.net \
    --to=plcl@telefonica.net \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=martin-langer@gmx.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.