From owner-freebsd-questions@FreeBSD.ORG Wed Sep 14 20:06:20 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F787106566B for ; Wed, 14 Sep 2011 20:06:20 +0000 (UTC) (envelope-from web@umich.edu) Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by mx1.freebsd.org (Postfix) with ESMTP id 2C9FB8FC1A for ; Wed, 14 Sep 2011 20:06:19 +0000 (UTC) Received: FROM itcom245.staff.itd.umich.edu (itcom245.staff.itd.umich.edu [141.213.135.249]) By hackers.mr.itd.umich.edu ID 4E71093A.C099F.13588 ; Authuser web; 14 Sep 2011 16:06:18 EDT Date: Wed, 14 Sep 2011 16:06:18 -0400 From: William Bulley To: Jakub Lach Message-ID: <20110914200618.GA12098@itcom245.staff.itd.umich.edu> Mail-Followup-To: Jakub Lach , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: Thinkpad audio question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2011 20:06:20 -0000 According to Jakub Lach on Wed, 09/14/11 at 13:10: > > See man snd_hda, you probably need to set device.hints. > > For example, I with T400 have something like this in > device hints: > > hint.hdac.0.cad0.nid22.config="as=1 seq=15" > hint.hdac.0.cad0.nid24.config="as=3" > hint.hdac.0.cad0.nid26.config="as=1" > hint.hdac.0.cad0.nid29.config="as=2" Thanks. This looks very promising. It is too bad the man page is so "busy" and complex... :-( I had viewed this man page before, but I hoped I would never have to deal with the details. And I haven't until now... :-) One thing that could be made more clear is the lack of how to invoke the "verbose" or "report"ing mode. The word "verbose" appears just three (3!) times in the man page, but there is no explicit description of how to get the driver to provide a verbose report. The word "report" in the EXAMPLES section refers to an HP/Compaq system housing a Realtek ALC888 HDA codec whose "driver" can list the default pin configuration as show. Except the man page never explains how. :-( After a great deal of back and forth, I finally "discovered" the "hint" dev.hdac.%d.pindump just above the EXAMPLES section. As soon as I put that entry in my /etc/sysctl.conf file (dev.hdac.0.pindump=1) and did a reboot, the following appeared in my dmesg(8) output: :-) mem 0xfc020000-0xfc023fff irq 17 at device 27.0 on pci0 High Definition Audio Controller Driver Revision: 20100226_0142 HDA Codec #0: Conexant CX20561 (Hermosa) HDA Codec #1: Conexant (Unknown) <<<<<===== this seems confusing... Dumping AFG cad=0 nid=1 pins: nid 22 0x022140f0 as 15 seq 0 Headphones Jack jack 1 loc 2 color Green misc 0 Caps: OUT HP Sense: 0x7fffffff nid 23 0x61a190f0 as 15 seq 0 Mic None jack 1 loc 33 color Pink misc 0 [DISABLED] Caps: IN VREF Sense: 0x7fffffff nid 24 0x02a190f0 as 15 seq 0 Mic Jack jack 1 loc 2 color Pink misc 0 Caps: IN VREF Sense: 0x7fffffff nid 25 0x40f000f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 0 [DISABLED] Caps: OUT Sense: 0x7fffffff nid 26 0x901701f0 as 15 seq 0 Speaker Fixed jack 7 loc 16 color Unknown misc 1 Caps: OUT EAPD nid 27 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps: OUT EAPD nid 28 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps: OUT nid 29 0x90a601f0 as 15 seq 0 Mic Fixed jack 6 loc 16 color Unknown misc 1 Caps: IN NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 GPIO: data=0x00000000 enable=0x00000000 direction=0x00000000 wake=0x00000000 unsol=0x00000000 sticky=0x00000000 Dumping AFG cad=0 nid=1 pins: nid 22 0x022140f0 as 15 seq 0 Headphones Jack jack 1 loc 2 color Green misc 0 Caps: OUT HP Sense: 0x7fffffff nid 23 0x61a190f0 as 15 seq 0 Mic None jack 1 loc 33 color Pink misc 0 [DISABLED] Caps: IN VREF Sense: 0x7fffffff nid 24 0x02a190f0 as 15 seq 0 Mic Jack jack 1 loc 2 color Pink misc 0 Caps: IN VREF Sense: 0x7fffffff nid 25 0x40f000f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 0 [DISABLED] Caps: OUT Sense: 0x7fffffff nid 26 0x901701f0 as 15 seq 0 Speaker Fixed jack 7 loc 16 color Unknown misc 1 Caps: OUT EAPD nid 27 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps: OUT EAPD nid 28 0x40f001f0 as 15 seq 0 Other None jack 0 loc 0 color Unknown misc 1 [DISABLED] Caps: OUT nid 29 0x90a601f0 as 15 seq 0 Mic Fixed jack 6 loc 16 color Unknown misc 1 Caps: IN NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 GPIO: data=0x00000000 enable=0x00000000 direction=0x00000000 wake=0x00000000 unsol=0x00000000 sticky=0x00000000 Now, re-reading the snd_hda man page with the above in hand, I just may be able to make changes similar to what you have shown above provided I can make sense of the above "verbose" output. Thanks for all your help. :-) Regards, web... -- William Bulley Email: web@umich.edu 72 characters width template ----------------------------------------->|