5 Jan
2017
5 Jan
'17
3:22 p.m.
On Thu, 05 Jan 2017 14:29:43 +0100, sutar.mounesh@gmail.com wrote:
From: Andreas Pape apape@de.adit-jv.com
To avoid the chances of timeout, we need to check the enter poll in state xrun.
Signed-off-by: Andreas Pape apape@de.adit-jv.com
Please give your sign-off, too, as you submitted the patch.
+int snd_pcm_direct_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds,
unsigned int space)
+{
- if (pcm->poll_fd < 0) {
SNDMSG("poll_fd < 0");
return -EIO;
- }
- if (space >= 1 && pfds) {
pfds->fd = pcm->poll_fd;
pfds->events = pcm->poll_events | POLLERR | POLLNVAL;
- } else {
return 0;
- }
- /*this will also evaluate slave state and enter xrun if necessary*/
Put spaces.
thanks,
Takashi