Bug 79156

Summary: buffersize knob for sound(4) is a tunable, not a sysctl.
Product: Documentation Reporter: trasz <trasz>
Component: Books & ArticlesAssignee: Joel Dahl <joel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description trasz 2005-03-23 09:20:01 UTC
        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.
Comment 1 ru freebsd_committer freebsd_triage 2006-10-22 18:13:48 UTC
Responsible Changed
From-To: freebsd-doc->freebsd-multimedia

sound(4) documentation bug.
Comment 2 Joel Dahl freebsd_committer freebsd_triage 2006-11-06 23:15:24 UTC
Responsible Changed
From-To: freebsd-multimedia->joel

Grab.
Comment 3 Joel Dahl freebsd_committer freebsd_triage 2006-11-26 13:13:58 UTC
State Changed
From-To: open->closed

This has been fixed in the latest update to the sound(4) manual page, thanks.