21 May
2009
21 May
'09
8:26 p.m.
2009/5/21 Jaroslav Kysela perex@perex.cz:
On Thu, 21 May 2009, Cristian Morales Vega wrote:
? And still, in this case an interrupt would be handled by snd_pcm_recover() (written < 0) or by the "else" code?
-EINTR is just noop in recover() function:
if (err == -EINTR) /* nothing to do, continue */ return 0;
But if an interrupt happened, it could be that some samples were written and others no, true? If only -EINTR is returned, how I know how many of them I still need to write? If I write them all again the sound output will be funny.