At Tue, 24 Sep 2002 08:42:03 -0700 (PDT), Fedor G. Pikus <[EMAIL PROTECTED]> wrote: > > On Tue, 24 Sep 2002, Takashi Iwai wrote: > > At Mon, 23 Sep 2002 21:14:36 -0700 (PDT), > > Fedor G. Pikus <[EMAIL PROTECTED]> wrote: > > > > > > On Mon, 23 Sep 2002, Clemens Ladisch wrote: > > > > In theory, snd_complete_urb is called when some data has been received > > > > from the device, and this function calls retire_capture_urb. Please check > > > > whether those functions are really called. > > > They do get called, it goes like this: > > > pcm_lib.c:2168 unlocked IRQ, waiting for 10 seconds > > > snd_complete_urb called > > > retire_capture_urb called > > > retire_capture_urb done > > > snd_complete_urb exits (by exiting through the bottom, never through return) > > > ... repeat about 740 times the above 4 lines ... > > > pcm_lib.c:2170 timed out after 10 seconds > > > > does it means that complete is called _after_ the 10-sec-wait message? > > could you tell me the function (line) corresponding to the original > > source (the line is shifted so i cannot see where it is). > > No, snd_complete_urb is called 740 times during the 10-second wait: > > spin_unlock_irq(&runtime->lock); > <---- print "unlocked IRQ" > if (schedule_timeout(10 * HZ) == 0) { <---- 10 second wait while "snd_complete_urb" >messages scroll by in the log > spin_lock_irq(&runtime->lock); > <----- print "timed out" > state = runtime->status->state == SNDRV_PCM_STATE_SUSPENDED ? SUSPENDED : >EXPIRED; > break; > }
then the complete callback is called properly but likely snd_pcm_period_elapsed() is not called. can you check in retire_capture_urb() whether subs->transfer_done is incremented and snd_pcm_period_elapsed is called properly? if it's not incremented, that means either iso frame is still active or the obtained frame length is zero. btw, to be sure, which version of usbaudio.c are you using? Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel