fix comments

This commit is contained in:
Alexandre Ratchov 2010-10-18 19:32:52 +02:00
parent fa5a65f0d9
commit 9ab5fcf177
3 changed files with 7 additions and 5 deletions

View File

@ -2126,7 +2126,7 @@ join_new(char *name)
#ifdef DEBUG
if (debug_level >= 3) {
aproc_dbg(p);
dbg_puts("\n");
dbg_puts(": new\n");
}
#endif
return p;

View File

@ -567,7 +567,7 @@ ctl_getidx(struct aproc *p, char *who)
#ifdef DEBUG
if (debug_level >= 1) {
dbg_puts(name);
dbg_puts(": too many instances");
dbg_puts(": too many instances\n");
}
#endif
return -1;

View File

@ -495,7 +495,9 @@ sock_startreq(void *arg)
}
#endif
(void)sock_attach(f, 0);
}/*
}
/*
* Callback invoked by MMC stop
*/
void
@ -1217,11 +1219,11 @@ sock_execmsg(struct sock *f)
#endif
aproc_del(f->pipe.file.rproc);
return 0;
}
/*
* XXX: device could have desappeared at this point,
* see how this is fixed in wav.c
*/
}
if ((f->pstate == SOCK_START || f->pstate == SOCK_READY) &&
ctl_slotstart(f->dev->midi, f->slot))
(void)sock_attach(f, 1);
@ -1608,7 +1610,7 @@ sock_read(struct sock *f)
}
/*
* XXX: sock_attach() may not start if there's not enough
* samples queues, if so ctl_slotstart() will trigger
* samples queued, if so ctl_slotstart() will trigger
* other streams, but this one won't start.
*/
if (f->pstate == SOCK_READY && ctl_slotstart(f->dev->midi, f->slot))