Lines Matching defs:latency
67 SYSCTL_PROC(_hw_snd, OID_AUTO, latency,
70 "buffering latency (0=low ... 10=high)");
93 "buffering latency profile (0=aggressive 1=safe)");
688 "intrtimeout=%u latency=%dms)\n",
760 * for slower / high latency hardwares (notably USB audio)
1211 c->latency = -1;
1801 chn_calclatency(int dir, int latency, int bps, u_int32_t datarate,
1815 if (latency < CHN_LATENCY_MIN || latency > CHN_LATENCY_MAX ||
1822 printf("%s(): FAILED dir=%d latency=%d bps=%d "
1824 __func__, dir, latency, bps, datarate, max);
1831 blkcnt = pblkcnts[lprofile][latency];
1832 bufsz = pbufszs[lprofile][latency];
1834 blkcnt = rblkcnts[lprofile][latency];
1835 bufsz = rbufszs[lprofile][latency];
1853 chn_resizebuf(struct pcm_channel *c, int latency,
1866 if (latency == -1) {
1867 c->latency = -1;
1868 latency = chn_latency;
1869 } else if (latency == -2) {
1870 latency = c->latency;
1871 if (latency < CHN_LATENCY_MIN || latency > CHN_LATENCY_MAX)
1872 latency = chn_latency;
1873 } else if (latency < CHN_LATENCY_MIN || latency > CHN_LATENCY_MAX)
1876 c->latency = latency;
1887 chn_calclatency(c->direction, latency, sndbuf_getalign(bs),
1905 * clamp it to the nearest latency profile, but that would
1934 chn_calclatency(c->direction, latency,
2036 chn_setlatency(struct pcm_channel *c, int latency)
2039 /* Destroy blksz/blkcnt, enforce latency profile. */
2040 return chn_resizebuf(c, latency, -1, 0);
2047 /* Destroy latency profile, enforce blksz/blkcnt */
2401 * Set to default latency profile