Re: [linux-usb] Re: Linux 2.3.18ac6

Pavel Machek (pavel@bug.ucw.cz)
Tue, 21 Sep 1999 13:35:14 +0200


Hi!

> Also, there's an audio update. I've now rolled my own descriptor
> parsing routines, and they seem to collect the relevant info
> at least from AudioStreaming interfaces. Mixer is there too
> but untested, I still don't have an audio device to play
> with except my own, which doesn't have a mixer. (I've ordered
> speakers 2 weeks ago or so, they didn't arrive so far).

> For more info read the comment on top of the audio.c patch.

I tried that. After many failed commands, it finally creates
/dev/dsp. However, when I try to open it,

if ((alts->endpoint[0].bmAttributes & 0x0c) == 0x04) {
if (alts->bNumEndpoints < 2 ||
alts->endpoint[1].bmAttributes != 0x01 /* ||
alts->endpoint[0].bSynchAddress == 0 ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
### this test seems to fail ^^^^^^^^^^^^
alts->endpoint[1].bEndpointAddress !=
(alts->endpoint[0].bSynchAddress | 0x80) */ ) {
printk(KERN_ERR "usb_audio: device %d
interface %d altsetting %d invalid synch pipe (format_out)\n",
dev->devnum, u->interface,
fmt->altsetting);
printk("usb_audio: %d, %d, %d, %d\n",
alts->bNumEndpoints,
alts->endpoint[1].bmAttributes,
alts->endpoint[0].bSynchAddress,
alts->endpoint[1].bEndpointAddress);
return -1;
}

As you can see, I commented test out, but still no go

Sep 21 13:31:15 bug kernel: Depth traverse
Sep 21 13:31:15 bug kernel: td 0: [c03e1090]
Sep 21 13:31:15 bug kernel: 003e1184 e3 SPD Length=7 MaxLen=7
DT0 EndPt=0 Dev=1, PID=2d(SETUP) (buf=034f1e78)
Sep 21 13:31:15 bug kernel: td 1: [c03e1180]
Sep 21 13:31:15 bug kernel: 00000001 e3 SPD IOC Stalled
Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=1, PID=69(IN) (buf=00000000$Sep
21 13:31:20 bug kernel: Depth traverse
Sep 21 13:31:20 bug kernel: td 0: [c03e1180]
Sep 21 13:31:20 bug kernel: 003e1094 e0 SPD Stalled CRC/Timeo
Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=034$Sep 21
13:31:20 bug kernel: td 1: [c03e1090]
Sep 21 13:31:20 bug kernel: 003e11d4 e3 SPD Active Length=0
MaxLen=2 DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=034f1ea8)
Sep 21 13:31:20 bug kernel: td 2: [c03e11d0]
Sep 21 13:31:20 bug kernel: 00000001 e3 SPD IOC Active Length=0
MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000)
Sep 21 13:31:20 bug kernel: usbaudio: failure to set sampling
frequency device 1 endpoint 1
Sep 21 13:31:20 bug kernel: Depth traverse
Sep 21 13:31:20 bug kernel: td 0: [c03e11d0]
Sep 21 13:31:20 bug kernel: 003e1094 e3 SPD Length=7 MaxLen=7
DT0 EndPt=0 Dev=1, PID=2d(SETUP) (buf=034f1e78)
Sep 21 13:31:20 bug kernel: td 1: [c03e1090]
Sep 21 13:31:20 bug kernel: 00000001 e3 SPD IOC Stalled
Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=1, PID=69(IN) (buf=00000000$Sep
21 13:31:25 bug kernel: Depth traverse
Sep 21 13:31:25 bug kernel: td 0: [c03e1090]
Sep 21 13:31:25 bug kernel: 003e11d4 e0 SPD Stalled CRC/Timeo
Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=034$Sep 21
13:31:25 bug kernel: td 1: [c03e11d0]
Sep 21 13:31:25 bug kernel: 003e1184 e3 SPD Active Length=0
MaxLen=2 DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=034f1ea8)
Sep 21 13:31:25 bug kernel: td 2: [c03e1180]
Sep 21 13:31:25 bug kernel: 00000001 e3 SPD IOC Active Length=0
MaxLen=7ff DT1 EndPt=0 Dev=0, PID=69(IN) (buf=00000000)

Pavel

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/