Re: [alsa-devel] trying to get an eleven rack to work
David Alexander wrote:
kernel: [ 74.128035] usb 2-4: new high speed USB device number 2 kernel: [ 74.634592] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 kernel: [ 74.634606] snd-usb-audio: probe of 2-4:1.0 failed with error -5
0x09 is UAC2's EXTENSION_UNIT, which should not be a reason for failing. Please try the patch below.
Regards, Clemens
--- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1926,7 +1926,7 @@ static int parse_audio_unit(struct mixer_build *state, int unitid) return parse_audio_processing_unit(state, unitid, p1); default: snd_printk(KERN_ERR "usbaudio: unit %u: unexpected type 0x%02x\n", unitid, p1[2]); - return -EINVAL; + return 0; } }
Here is what I am getting after having changed the line in mixer.c:
[ 92.284035] usb 2-4: new high speed USB device number 2 using ehci_hcd [ 92.815354] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 [ 92.815382] snd-usb-audio: probe of 2-4:1.0 failed with error -5 [ 92.816352] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 [ 92.816372] snd-usb-audio: probe of 2-4:1.1 failed with error -5 [ 92.816966] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 [ 92.816980] snd-usb-audio: probe of 2-4:1.2 failed with error -5 [ 92.817960] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 [ 92.817972] snd-usb-audio: probe of 2-4:1.3 failed with error -5 [ 92.818587] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 [ 92.818598] snd-usb-audio: probe of 2-4:1.4 failed with error -5 [ 92.818638] usbcore: registered new interface driver snd-usb-audio
I noticed that I am not getting an entry under /proc/asound that I had before. Before I got an entry called "Rack" with a sym link to card1:
/proc/asound$ ls -l total 0 dr-xr-xr-x 5 root root 0 2012-03-29 09:52 card0 -r--r--r-- 1 root root 0 2012-03-29 10:01 cards -r--r--r-- 1 root root 0 2012-03-29 10:01 devices -r--r--r-- 1 root root 0 2012-03-29 10:01 hwdep lrwxrwxrwx 1 root root 5 2012-03-29 10:01 Intel -> card0 -r--r--r-- 1 root root 0 2012-03-29 10:01 modules -r--r--r-- 1 root root 0 2012-03-29 10:01 pcm dr-xr-xr-x 2 root root 0 2012-03-29 10:01 seq -r--r--r-- 1 root root 0 2012-03-29 10:01 timers -r--r--r-- 1 root root 0 2012-03-29 10:01 version
Thank you, David
On Thu, Mar 29, 2012 at 3:08 AM, Clemens Ladisch clemens@ladisch.de wrote:
David Alexander wrote:
kernel: [ 74.128035] usb 2-4: new high speed USB device number 2 kernel: [ 74.634592] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x09 kernel: [ 74.634606] snd-usb-audio: probe of 2-4:1.0 failed with error -5
0x09 is UAC2's EXTENSION_UNIT, which should not be a reason for failing. Please try the patch below.
Regards, Clemens
--- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1926,7 +1926,7 @@ static int parse_audio_unit(struct mixer_build *state, int unitid) return parse_audio_processing_unit(state, unitid, p1); default: snd_printk(KERN_ERR "usbaudio: unit %u: unexpected type 0x%02x\n", unitid, p1[2]);
- return -EINVAL;
- return 0;
} }
Grant,
You had mentioned something about the end point for the mixer. I have found this information from the trace I had performed:
_From a dispatch urb_function_get_descriptor_from_device message under the fid_USBPORT_Endpoint_Descriptor:
fid_bLength 7 fid_bDescriptortype 5 fid_bEndpointAddress 0 fid_bmAttributes 0 fid_wMaxPacketSize 64 fid_bInterval 0
Is this what you were asking about, and does it help us?
thanks, David
On Thu, Mar 29, 2012 at 10:02 AM, David Alexander lidxv0n@gmail.com wrote= :
Here is what I am getting after having changed the line in mixer.c:
[ =A0 92.284035] usb 2-4: new high speed USB device number 2 using ehci_h=
cd
[ =A0 92.815354] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x0=
9
[ =A0 92.815382] snd-usb-audio: probe of 2-4:1.0 failed with error -5 [ =A0 92.816352] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x0=
9
[ =A0 92.816372] snd-usb-audio: probe of 2-4:1.1 failed with error -5 [ =A0 92.816966] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x0=
9
[ =A0 92.816980] snd-usb-audio: probe of 2-4:1.2 failed with error -5 [ =A0 92.817960] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x0=
9
[ =A0 92.817972] snd-usb-audio: probe of 2-4:1.3 failed with error -5 [ =A0 92.818587] ALSA mixer.c:1938 usbaudio: unit 32: unexpected type 0x0=
9
[ =A0 92.818598] snd-usb-audio: probe of 2-4:1.4 failed with error -5 [ =A0 92.818638] usbcore: registered new interface driver snd-usb-audio
I noticed that I am not getting an entry under /proc/asound that I had before. =A0Before I got an entry called "Rack" with a sym link to card1:
/proc/asound$ ls -l total 0 dr-xr-xr-x 5 root root 0 2012-03-29 09:52 card0 -r--r--r-- 1 root root 0 2012-03-29 10:01 cards -r--r--r-- 1 root root 0 2012-03-29 10:01 devices -r--r--r-- 1 root root 0 2012-03-29 10:01 hwdep lrwxrwxrwx 1 root root 5 2012-03-29 10:01 Intel -> card0 -r--r--r-- 1 root root 0 2012-03-29 10:01 modules -r--r--r-- 1 root root 0 2012-03-29 10:01 pcm dr-xr-xr-x 2 root root 0 2012-03-29 10:01 seq -r--r--r-- 1 root root 0 2012-03-29 10:01 timers -r--r--r-- 1 root root 0 2012-03-29 10:01 version
Thank you, David
On Thu, Mar 29, 2012 at 3:08 AM, Clemens Ladisch clemens@ladisch.de wro=
te:
David Alexander wrote:
kernel: [ =A0 74.128035] usb 2-4: new high speed USB device number 2 kernel: [ =A0 74.634592] ALSA mixer.c:1938 usbaudio: unit 32: unexpecte=
d type 0x09
kernel: [ =A0 74.634606] snd-usb-audio: probe of 2-4:1.0 failed with er=
ror -5
0x09 is UAC2's EXTENSION_UNIT, which should not be a reason for failing. Please try the patch below.
Regards, Clemens
--- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1926,7 +1926,7 @@ static int parse_audio_unit(struct mixer_build *st=
ate, int unitid)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return parse_audio_proces=
sing_unit(state, unitid, p1);
=A0 =A0 =A0 =A0default: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0snd_printk(KERN_ERR "usbaudio: unit %u: u=
nexpected type 0x%02x\n", unitid, p1[2]);
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -EINVAL;
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 return 0;
=A0 =A0 =A0 =A0} =A0}
participants (2)
-
Clemens Ladisch
-
David Alexander