alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH - IOPLUG DRAIN 0/2]
@ 2018-03-22 13:48 twischer
  2018-03-22 13:48 ` [PATCH - IOPLUG DRAIN 1/1] ioplug: drain: Wait with pollwhen EAGAIN in blocking mode twischer
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: twischer @ 2018-03-22 13:48 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel


Hi Takashi,

> Why not poll()?

> IOW, why ioplug must be handled specially regarding the non-blocking
>operation?  The normal kernel driver behaves like that (returning
> -EAGAIN, and let apps to sync with poll()).


What do you think about the following solution?

(I thought the whole time that you have to use snd_pcm_wait() to wait for drain
in nonblocking mode but you have to use the poll_descriptors directly.)

Know I am expecting that the user is calling poll()
if snd_pcm_drain() returns -EAGAIN and
the user has to call snd_pcm_drain() again after poll returns
to check if drain is done.

Thanks for your help so far.

Best regards

Timo

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

end of thread, other threads:[~2018-03-29  7:39 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22 13:48 [PATCH - IOPLUG DRAIN 0/2] twischer
2018-03-22 13:48 ` [PATCH - IOPLUG DRAIN 1/1] ioplug: drain: Wait with pollwhen EAGAIN in blocking mode twischer
2018-03-22 13:48 ` [PATCH - IOPLUG DRAIN 1/1] jack: Support snd_pcm_drain() twischer
2018-03-22 14:28 ` [PATCH - IOPLUG DRAIN 0/2] Takashi Iwai
2018-03-22 14:50   ` Wischer, Timo (ADITG/ESB)
2018-03-22 14:55     ` Takashi Iwai
2018-03-22 15:17       ` Wischer, Timo (ADITG/ESB)
2018-03-22 16:22         ` Takashi Iwai
2018-03-23  7:23           ` Wischer, Timo (ADITG/ESB)
2018-03-23  7:28             ` Takashi Iwai
2018-03-23  7:43               ` Wischer, Timo (ADITG/ESB)
2018-03-23  8:01                 ` Takashi Iwai
2018-03-23  8:08                   ` Takashi Iwai
2018-03-23  9:03                     ` Takashi Iwai
2018-03-28  8:42                       ` Wischer, Timo (ADITG/ESB)
2018-03-28 16:09                         ` Takashi Iwai
2018-03-29  6:39                           ` Wischer, Timo (ADITG/ESB)
2018-03-29  7:25                             ` Takashi Iwai
2018-03-29  7:38                               ` Wischer, Timo (ADITG/ESB)
2018-03-23  8:21                   ` Wischer, Timo (ADITG/ESB)

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).