From lawrance@FreeBSD.org  Sun Aug  7 06:49:20 2005
Return-Path: <lawrance@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2F7EA16A421
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun,  7 Aug 2005 06:49:20 +0000 (GMT)
	(envelope-from lawrance@FreeBSD.org)
Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A05CB441BE
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun,  7 Aug 2005 06:18:38 +0000 (GMT)
	(envelope-from lawrance@FreeBSD.org)
Received: from localhost (ppp2E7B.dyn.pacific.net.au [61.8.46.123])
	by bloodwood.hunterlink.net.au (8.12.8/8.12.8) with ESMTP id j776Havb014853
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 7 Aug 2005 16:17:36 +1000
Received: by localhost (Postfix, from userid 1001)
	id AB2558571; Sun,  7 Aug 2005 16:18:27 +1000 (EST)
Message-Id: <20050807061827.AB2558571@localhost>
Date: Sun,  7 Aug 2005 16:18:27 +1000 (EST)
From: Sam Lawrance <lawrance@FreeBSD.org>
Reply-To: Sam Lawrance <lawrance@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: pcm.4, handbook - note that vchan settings can't be changed while device in use
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84639
>Category:       docs
>Synopsis:       pcm.4, handbook - note that vchan settings can't be changed while device in use
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    simon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 07 06:50:19 GMT 2005
>Closed-Date:    Wed Aug 10 13:47:14 GMT 2005
>Last-Modified:  Wed Aug 10 13:47:14 GMT 2005
>Originator:     Sam Lawrance
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD dirk.no.domain 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Jun 11 21:44:19 EST 2005 sam@dirk.no.domain:/usr/obj/usr/src/sys/DIRK i386


>Description:
	I was following the handbook in setting up virtual sound channels.
When the hw.snd.pcm0.vchans sysctl did not appear in my list,  I checked into
it a little.  It seems that that this sysctl is not available when the sound
device is in use.

I think a note should be made of this, particularly for new users who are
setting up and playing around with sound devices.

>How-To-Repeat:
1. Run xmms and play "Groove Armada - Lovebox" :-)
2. Run sysctl hw.snd.pcm0.vchans

>Fix:

Patch for pcm manpage:

Index: pcm.4
===================================================================
RCS file: /home/ncvs/src/share/man/man4/pcm.4,v
retrieving revision 1.39
diff -u -r1.39 pcm.4
--- pcm.4	22 May 2005 15:25:14 -0000	1.39
+++ pcm.4	7 Aug 2005 06:03:22 -0000
@@ -236,7 +236,8 @@
 .Dq 0
 will disable
 .Tn VCHANs
-for this device.
+for this device.  This setting is not available while the specified
+device is in use.
 .El
 .Ss Recording Channels
 On devices that have more than one recording source (ie: mic and line),

Patch for handbook multimedia section:

Index: chapter.sgml
===================================================================
RCS file: /home/ncvs/FreeBSD/doc/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml,v
retrieving revision 1.107
diff -u -r1.107 chapter.sgml
--- chapter.sgml	6 Jun 2005 10:04:50 -0000	1.107
+++ chapter.sgml	7 Aug 2005 05:53:44 -0000
@@ -436,6 +436,12 @@
       virtual channels any devices which are attached later will be
       given.</para>
 
+    <note>
+      <para>You cannot change the number of virtual channels for a
+      device while it is in use.  First close any programs using the
+      device, such as music players or sound daemons.</para>
+    </note>
+
     <para>If you are not using &man.devfs.5;, you will have to point
       your applications at <filename>/dev/dsp0</filename>.<replaceable>x</replaceable>, where
       <replaceable>x</replaceable> is 0 to 3 if <varname>hw.snd.pcm.0.vchans</varname> is set
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->simon 
Responsible-Changed-By: simon 
Responsible-Changed-When: Tue Aug 9 18:53:23 GMT 2005 
Responsible-Changed-Why:  
Looks like it close a doc PR day, grab this one as well :-). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84639 
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Wed Aug 10 13:46:07 GMT 2005 
State-Changed-Why:  
Handbook part committed, but the manual page part isnt since it's 
already started in the manual page (just another part of the manual 
page).  Thanks for the submisson :-). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84639 
>Unformatted:
