Lines Matching refs:latency
69 SYSCTL_PROC(_hw_snd, OID_AUTO, latency, CTLTYPE_INT | CTLFLAG_RWTUN,
71 "buffering latency (0=low ... 10=high)");
93 "buffering latency profile (0=aggressive 1=safe)");
725 "intrtimeout=%u latency=%dms)\n",
797 * for slower / high latency hardwares (notably USB audio)
1173 c->latency = -1;
1648 chn_calclatency(int dir, int latency, int bps, u_int32_t datarate,
1662 if (latency < CHN_LATENCY_MIN || latency > CHN_LATENCY_MAX ||
1669 printf("%s(): FAILED dir=%d latency=%d bps=%d "
1671 __func__, dir, latency, bps, datarate, max);
1678 blkcnt = pblkcnts[lprofile][latency];
1679 bufsz = pbufszs[lprofile][latency];
1681 blkcnt = rblkcnts[lprofile][latency];
1682 bufsz = rbufszs[lprofile][latency];
1700 chn_resizebuf(struct pcm_channel *c, int latency,
1713 if (latency == -1) {
1714 c->latency = -1;
1715 latency = chn_latency;
1716 } else if (latency == -2) {
1717 latency = c->latency;
1718 if (latency < CHN_LATENCY_MIN || latency > CHN_LATENCY_MAX)
1719 latency = chn_latency;
1720 } else if (latency < CHN_LATENCY_MIN || latency > CHN_LATENCY_MAX)
1723 c->latency = latency;
1734 chn_calclatency(c->direction, latency, sndbuf_getalign(bs),
1752 * clamp it to the nearest latency profile, but that would
1781 chn_calclatency(c->direction, latency,
1897 chn_setlatency(struct pcm_channel *c, int latency)
1900 /* Destroy blksz/blkcnt, enforce latency profile. */
1901 return chn_resizebuf(c, latency, -1, 0);
1908 /* Destroy latency profile, enforce blksz/blkcnt */
2273 * Set to default latency profile