On Mon, 26 Jan 2004, Tim Goetze wrote: > when calling snd_pcm_unlink (stream) after an xrun occurred, it > returns EINVAL (hw: device, duplex, mmap'd IO, stop_threshold = ~0), > even though 'stream' is a valid PCM stream handle. > > the snd_pcm_unlink code path seems to return EINVAL only if the stream > isn't linked to another. > > but EINVAL misses the point, since the stream handle is valid. > if one tries to unlink a stream that isn't linked to another, EALREADY > is correct imo.
Yes, changed. > and my question for today: does the kernel layer unlink PCM streams > when an xrun occurs? No. The unlinking is done manually (unlink ioctl) or at close() of a PCM handle. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel