Bug 155264

Summary: [handbook] Extend "7.2.2.1 Common Problems" with hw.snd.default_unit=n
Product: Documentation Reporter: Martin Ziegler <martin.ziegler>
Component: Books & ArticlesAssignee: Benedict Reuschling <bcr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
multimedia.chapter.sgml.diff none

Description Martin Ziegler 2011-03-04 13:00:23 UTC
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).

Fix: 

Add a section about hw.snd.default_unit=n in the handbook, section "7.2.2.1 Common Problems"
How-To-Repeat: -
Comment 1 Niclas Zeising 2011-05-23 14:58:18 UTC
Hi!
Here is a patch to add a section about this to 7.2.2.1.
Regards!
-- 
Niclas
Comment 2 Benedict Reuschling freebsd_committer freebsd_triage 2011-05-23 16:03:37 UTC
State Changed
From-To: open->feedback

Take this one and wait for feedback from submitter whether the 
submitted patch from Niclas (thanks for that!) fits his intention.  


Comment 3 Benedict Reuschling freebsd_committer freebsd_triage 2011-05-23 16:03:37 UTC
Responsible Changed
From-To: freebsd-doc->bcr

Take this one and wait for feedback from submitter whether the 
submitted patch from Niclas (thanks for that!) fits his intention.
Comment 4 Martin Ziegler 2011-05-23 16:11:01 UTC
Patch looks good. Thanks for your effort.

Martin
Comment 5 dfilter service freebsd_committer freebsd_triage 2011-05-23 17:09:07 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"
Comment 6 Benedict Reuschling freebsd_committer freebsd_triage 2011-05-23 17:14:08 UTC
State Changed
From-To: feedback->closed

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!