fix msb usage in aparams_native()

This commit is contained in:
Alexandre Ratchov 2012-10-05 17:58:11 +02:00
parent 8d3f1fbe70
commit 283aab28b0
3 changed files with 7 additions and 3 deletions

View File

@ -194,8 +194,8 @@ int
aparams_native(struct aparams *par)
{
return par->bps == sizeof(adata_t) && par->bits == ADATA_BITS &&
(par->bps > 1 || par->le == ADATA_LE) &&
(par->bits < par->bps * 8 || !par->msb);
(par->bps == 1 || par->le == ADATA_LE) &&
(par->bits == par->bps * 8 || !par->msb);
}
int

View File

@ -442,10 +442,12 @@ filelist_init(void)
it.it_interval.tv_usec = TIMER_USEC;
it.it_value.tv_sec = 0;
it.it_value.tv_usec = TIMER_USEC;
#if 0
if (setitimer(ITIMER_REAL, &it, NULL) < 0) {
perror("setitimer");
exit(1);
}
#endif
timo_init();
log_sync = 0;
}

View File

@ -374,7 +374,9 @@ siofile_run(void *arg)
#ifdef DEBUG
if (!(f->events & POLLIN)) {
siofile_log(f);
log_puts(": recording, but POLLIN not set\n");
log_puts(": recording, but POLLIN not set: ");
log_putx(f->events);
log_puts("\n");
panic();
}
if (f->rused < d->round) {