| Summary: | buffersize knob for sound(4) is a tunable, not a sysctl. | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | trasz <trasz> |
| Component: | Books & Articles | Assignee: | Joel Dahl <joel> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-doc->freebsd-multimedia sound(4) documentation bug. Responsible Changed From-To: freebsd-multimedia->joel Grab. State Changed From-To: open->closed This has been fixed in the latest update to the sound(4) manual page, thanks. |
sound(4) man page claims that 'hw.snd.pcm%d.buffersize' can be configured via sysctl. that's not true, however: in /sys/dev/sound/pcm/sound.c there is: SYSCTL_ADD_INT(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), OID_AUTO, "buffersize", CTLFLAG_RD, &d->bufsz, 0, ""); so the sysctl is read-only. buffersize can be set via tunable 'hint.pcm.0.buffersize', either in loader.conf or device.hints. How-To-Repeat: type 'man sound' and scroll two pages down.