From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Re: USB recording - repetitive peaks Date: Fri, 05 Jul 2002 15:44:27 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3D208C5C.36649172@ladisch.de> <3D21B878.8090902@boosthardware.com> <3D21C827.2060602@boosthardware.com> <3D21D6CA.7000308@boosthardware.com> <3D21DDFD.6000206@boosthardware.com> <3D21EB37.7070008@boosthardware.com> <3D247676.8090309@boosthardware.com> <3D2482BB.5020506@boosthardware.com> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3D2482BB.5020506@boosthardware.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Patrick Shirkey Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 05 Jul 2002 02:15:39 +0900, Patrick Shirkey wrote: > > Takashi Iwai wrote: > > At Fri, 05 Jul 2002 01:23:18 +0900, > > Patrick Shirkey wrote: > > > >>Takashi Iwai wrote: > >> > >> >the hang-up at capture close was at least fixed on cvs. > >> >it was due to the combination of ASYNC_UNLINK and complete callbacks. > >> > > >> >not sure whether the bug with jack is fixed, too, but i think it was > >> >caused by the same reason. please update the cvs tree. > >> > >>I can now record successfully using arecord without hanging the system > >>but now I get an instant lock up while starting ardour. :( I have a > >>suspicion that it happens when ardour registers with jackd and asks for > >>the available input devices. (I'm not sure about the sound quality. I > >>will see if I can generate a test tone to use instead of actual music). > > > > > > then could you remove the mask USB_ASYNC_UNLINK from line 826 of > > usbaudio.c? > > this might also leads to a lock-up when usb_submit_urb() fails, but > > this must happen rarely. > > > > First I tried > > u->urb->transfer_flags = USB_ISO_ASAP; /* | USB_ASYNC_UNLINK; */ > > but that made almost no difference. I was able to load ardour for about > 10 seconds before the machine hung. i (hopefully) found the spot. it happend when snd_pcm_stop() is called during complete callbacks, so the working urb won't be released properly. now the fixed version is on cvs. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Bringing you mounds of caffeinated joy. http://thinkgeek.com/sf