Re: [Alsa-devel] USB Audio problems

2003-11-20 Thread Karim Yaghmour
Takashi Iwai wrote: it'd be better to clean unlink_mask in the complete callback for the case you use async unlink mode (see below). and, the check of active_mask should be done in prepare callback, not in the trigger callback. the trigger callback must be as short as possible. we can put deactiv

Re: [Alsa-devel] USB Audio problems

2003-11-20 Thread Karim Yaghmour
Niklas Werner wrote: hmmm, the submit_urb-error is gone, but random lockups and usb-device-disconnect until reboot have come... (bitkeeper-2.6 from just one hour ago...) with your function. Interesting. I haven't seen any of these. Karim -- Author, Speaker, Developer, Consultant Pushing Embedded

Re: [Alsa-devel] USB Audio problems

2003-11-19 Thread Karim Yaghmour
Well, it seems that I'm going to have to answer my own self ... :) The following is what I've been able to find using additional tracing info. Also there's a fix for usbaudio.c. Basically, it's as I said before: the usbaudio driver uses URBs without even checking if they're in use or not. Surprisi

[Alsa-devel] USB Audio problems

2003-11-19 Thread Karim Yaghmour
I've been trying to fix some problems I'm getting with the USB audio driver. Basically, I get these types of messages over and over accompanied by some audio glitches: ALSA usbaudio.c:688: cannot submit datapipe for urb 0, err = -6 usb-uhci.c: ENXIO 00038200, flags 2, urb cf74f5c0, burb cf74f5c0 I'