LKML Archive on
help / color / mirror / Atom feed
* Timeout issues in wait_for_avail function
@ 2018-05-07 10:49 Zengtao (B)
  2018-05-13 10:40 ` [alsa-devel] " Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Zengtao (B) @ 2018-05-07 10:49 UTC (permalink / raw)
  To: perex, tiwai; +Cc: alsa-devel, linux-kernel

Hi perex and tiwai:

I have met a timeout case when capture audio from snd-usb-audio device, 
when the host call the pcm_read and get into the wait_for_avail function.
The following happends
1.  No available data for capture(maybe because of the late response audio data by the uac device)
2.  The current thread falls into sleep state and no one wakes up it.
3.  The current thread will sleep 10s(schedule_timeout(1000)) and then wakeup.

I have two question about the wait_for_avail:
1. The timeout value too long, is it a reasonable value? 
2. Is there any mechanism to wake up the thread if there is data from the hw.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-31  8:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-07 10:49 Timeout issues in wait_for_avail function Zengtao (B)
2018-05-13 10:40 ` [alsa-devel] " Takashi Iwai
2018-05-31  7:43   ` Zengtao (B)
2018-05-31  8:06     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).