From nobody@FreeBSD.org  Fri Mar  4 12:50:28 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A41E5106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Mar 2011 12:50:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9340C8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Mar 2011 12:50:28 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p24CoRHl062534
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 Mar 2011 12:50:27 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p24CoR9Q062533;
	Fri, 4 Mar 2011 12:50:27 GMT
	(envelope-from nobody)
Message-Id: <201103041250.p24CoR9Q062533@red.freebsd.org>
Date: Fri, 4 Mar 2011 12:50:27 GMT
From: Martin Ziegler <martin.ziegler@ziegi.ch>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [handbook] Extend "7.2.2.1 Common Problems" with hw.snd.default_unit=n
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155264
>Category:       docs
>Synopsis:       [handbook] Extend "7.2.2.1 Common Problems" with hw.snd.default_unit=n
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bcr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 04 13:00:23 UTC 2011
>Closed-Date:    Mon May 23 16:16:17 UTC 2011
>Last-Modified:  Mon May 23 16:16:17 UTC 2011
>Originator:     Martin Ziegler
>Release:        8.2-RELEASE
>Organization:
>Environment:
-
>Description:
Current graphic cards from ATI and Nvidia are often equipped with there own sound devices. Often these devices get lower device numbers (pcm*) than the actual sound card:
> dmesg
..
hdac0: HDA Driver Revision: 20100226_0142
hdac1: HDA Driver Revision: 20100226_0142
hdac0: HDA Codec #0: NVidia (Unknown)
hdac0: HDA Codec #1: NVidia (Unknown)
hdac0: HDA Codec #2: NVidia (Unknown)
hdac0: HDA Codec #3: NVidia (Unknown)
pcm0: <HDA NVidia (Unknown) PCM #0 DisplayPort> at cad 0 nid 1 on hdac0
pcm1: <HDA NVidia (Unknown) PCM #0 DisplayPort> at cad 1 nid 1 on hdac0
pcm2: <HDA NVidia (Unknown) PCM #0 DisplayPort> at cad 2 nid 1 on hdac0
pcm3: <HDA NVidia (Unknown) PCM #0 DisplayPort> at cad 3 nid 1 on hdac0
hdac1: HDA Codec #2: Realtek ALC889
pcm4: <HDA Realtek ALC889 PCM #0 Analog> at cad 2 nid 1 on hdac1
pcm5: <HDA Realtek ALC889 PCM #1 Analog> at cad 2 nid 1 on hdac1
pcm6: <HDA Realtek ALC889 PCM #2 Digital> at cad 2 nid 1 on hdac1
pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
..

As a result, the user need to set hw.snd.default_unit  other than 0 (e.g. to 4 in the above example).


>How-To-Repeat:
-
>Fix:
Add a section about hw.snd.default_unit=n in the handbook, section "7.2.2.1 Common Problems"

>Release-Note:
>Audit-Trail:

From: Niclas Zeising <niclas.zeising@gmail.com>
To: bug-followup@FreeBSD.org, martin.ziegler@ziegi.ch
Cc:  
Subject: Re: docs/155264: [handbook] Extend "7.2.2.1 Common Problems" with
 hw.snd.default_unit=n
Date: Mon, 23 May 2011 15:58:18 +0200

 This is a multi-part message in MIME format.
 --------------010301040701020801080000
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 Hi!
 Here is a patch to add a section about this to 7.2.2.1.
 Regards!
 -- 
 Niclas
 
 --------------010301040701020801080000
 Content-Type: text/plain;
  name="multimedia.chapter.sgml.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="multimedia.chapter.sgml.diff"
 
 Index: chapter.sgml
 ===================================================================
 RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml,v
 retrieving revision 1.141
 diff -u -d -r1.141 chapter.sgml
 --- chapter.sgml	3 Mar 2011 16:21:59 -0000	1.141
 +++ chapter.sgml	23 May 2011 13:29:32 -0000
 @@ -353,6 +353,38 @@
            </tbody>
          </tgroup>
        </informaltable>
 +      <para>Another issue is that modern graphics cards often comes with their
 +	own sound driver, for use with <acronym>HDMI</acronym> and similar. This
 +	sound device will sometimes be enumerated before the actual soundcard
 +	and the soundcard will subsequently not be used as the default playback
 +	device.  To check if this is the case, run
 +	<application>dmesg</application> and look for <literal>pcm</literal>.
 +	The output looks something like this:</para>
 +	<programlisting>...
 +hdac0: HDA Driver Revision: 20100226_0142
 +hdac1: HDA Driver Revision: 20100226_0142
 +hdac0: HDA Codec #0: NVidia (Unknown)
 +hdac0: HDA Codec #1: NVidia (Unknown)
 +hdac0: HDA Codec #2: NVidia (Unknown)
 +hdac0: HDA Codec #3: NVidia (Unknown)
 +pcm0: &lt;HDA NVidia (Unknown) PCM #0 DisplayPort&gt; at cad 0 nid 1 on hdac0
 +pcm1: &lt;HDA NVidia (Unknown) PCM #0 DisplayPort&gt; at cad 1 nid 1 on hdac0
 +pcm2: &lt;HDA NVidia (Unknown) PCM #0 DisplayPort&gt; at cad 2 nid 1 on hdac0
 +pcm3: &lt;HDA NVidia (Unknown) PCM #0 DisplayPort&gt; at cad 3 nid 1 on hdac0
 +hdac1: HDA Codec #2: Realtek ALC889
 +pcm4: &lt;HDA Realtek ALC889 PCM #0 Analog&gt; at cad 2 nid 1 on hdac1
 +pcm5: &lt;HDA Realtek ALC889 PCM #1 Analog&gt; at cad 2 nid 1 on hdac1
 +pcm6: &lt;HDA Realtek ALC889 PCM #2 Digital&gt; at cad 2 nid 1 on hdac1
 +pcm7: &lt;HDA Realtek ALC889 PCM #3 Digital&gt; at cad 2 nid 1 on hdac1
 +...</programlisting>
 +      <para> Here the graphics card (<literal>NVidia</literal>) has been
 +	enumerated before the sound card (<literal>Realtek ALC889</literal>).
 +	To use the sound card as default playback device, change
 +	<literal>hw.snd.default_unit</literal> to the unit that should be used
 +	for playback, using
 +	<screen>&prompt.root; <userinput>sysctl hw.snd.default_unit=n</userinput></screen>
 +	where <literal>n</literal> is the number of the sound device to use, in
 +	this example <literal>4</literal>.</para>
      </sect3>
    </sect2>
  
 
 --------------010301040701020801080000--
State-Changed-From-To: open->feedback 
State-Changed-By: bcr 
State-Changed-When: Mon May 23 15:03:37 UTC 2011 
State-Changed-Why:  
Take this one and wait for feedback from submitter whether the 
submitted patch from Niclas (thanks for that!) fits his intention.  


Responsible-Changed-From-To: freebsd-doc->bcr 
Responsible-Changed-By: bcr 
Responsible-Changed-When: Mon May 23 15:03:37 UTC 2011 
Responsible-Changed-Why:  
Take this one and wait for feedback from submitter whether the 
submitted patch from Niclas (thanks for that!) fits his intention.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=155264 

From: Martin Ziegler <martin.ziegler@ziegi.ch>
To: bug-followup@FreeBSD.org, martin.ziegler@ziegi.ch
Cc:  
Subject: Re: docs/155264: [handbook] Extend "7.2.2.1 Common Problems" with hw.snd.default_unit=n
Date: Mon, 23 May 2011 17:11:01 +0200

 --0016e648c000273e1704a3f2e18e
 Content-Type: text/plain; charset=ISO-8859-1
 
 Patch looks good. Thanks for your effort.
 
 Martin
 
 --0016e648c000273e1704a3f2e18e
 Content-Type: text/html; charset=ISO-8859-1
 
 Patch looks good. Thanks for your effort.<br><br>Martin<br>
 
 --0016e648c000273e1704a3f2e18e--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/155264: commit references a PR
Date: Mon, 23 May 2011 16:09:07 +0000 (UTC)

 bcr         2011-05-23 16:08:54 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/books/handbook/multimedia chapter.sgml 
   Log:
   Add a description and workaround for the problem where the built-in
   sound devices of graphic cards are being assigned lower device numbers.
   In order to use them, one has to change sysctls to the proper device
   number than is being shown in the dmesg output.
   
   PR:                 docs/155264
   Submittted by:      Martin Ziegler (martin dot ziegler at ziegi dot ch)
   Patch created by:   Niclas Zeising (niclas dot zeising at gmail dot com)
   Minor additions by: me
   
   Revision  Changes    Path
   1.142     +41 -0     doc/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: bcr 
State-Changed-When: Mon May 23 16:14:08 UTC 2011 
State-Changed-Why:  
Patch with minor corrections committed. Thanks to both Niclas for 
submitting the patch and Martin for providing the description to 
the problem in his PR. Good work, PR closed!  

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