From owner-freebsd-current@FreeBSD.ORG Wed Jan 7 09:29:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAD27106564A for ; Wed, 7 Jan 2009 09:29:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB8D8FC0C for ; Wed, 7 Jan 2009 09:29:34 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 231150224; Wed, 07 Jan 2009 11:29:34 +0200 Message-ID: <49647602.9060402@FreeBSD.org> Date: Wed, 07 Jan 2009 11:29:38 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.17 (X11/20081029) MIME-Version: 1.0 To: Garrett Cooper References: <7d6fde3d0901061032n72e9d0c4refe3c695f441c827@mail.gmail.com> <4963C4C0.6000509@FreeBSD.org> <7d6fde3d0901062029j694d63c1h66c52dfbb80c13d8@mail.gmail.com> In-Reply-To: <7d6fde3d0901062029j694d63c1h66c52dfbb80c13d8@mail.gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: snd_hda(4): getting line-in to work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 09:29:36 -0000 Garrett Cooper wrote: > On Tue, Jan 6, 2009 at 12:53 PM, Alexander Motin wrote: >> Garrett Cooper wrote: >>> I'm not sure if it's user error or not, but my snd_hda(4) enabled >>> chipset doesn't have line-in support enabled. I was wondering if there >>> were a special set of instructions I need to follow to get this >>> working. >> The main instruction is to boot system with verbose messages. snd_hda writes >> all information needed to answer most questions. Read it yourself and if it >> does not help - send it to me. >> >>> [gcooper@orangebox /scratch/ltp]$ cat /dev/sndstat >>> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) >>> Installed devices: >>> pcm0: at cad 0 nid 1 on >>> hdac0 [MPSAFE] (1p:1v/1r:1v channels duplex default) >> All I can see here is that you have some recording device. You can browse >> and select specific recording source with `mixer =rec` command. For >> additional details look verbose output and read new snd_hda man page. >> >>> pcm1: at cad 0 nid 1 on >>> hdac0 [MPSAFE] (1p:1v/0r:0v channels) >>> pcm2: at cad 0 nid 1 on >>> hdac0 [MPSAFE] (1p:1v/0r:0v channels) >> -- >> Alexander Motin > > Trying with the instructions on the manpage actually disabled my > sound... then again I probably screwed up the settings (I believe it > was noted as pcm2 before??). > > Here're the device.hints entries and I attached the -v boot log > snippet for the card: In attached log you have missed one of very interesting parts while grepping: pcmX devices output prints sound processing paths within codec for every PCM device. Look it first before doing something. > hint.hdac.0.cad0.nid17.config="as=1seq=0 device=Headphones" > hint.hdac.0.cad0.nid18.config="as=2seq=0 device=Line-out" > hint.hdac.0.cad0.nid19.config="as=3seq=0 device=Speaker" > hint.hdac.0.cad0.nid20.config="as=4seq=0 device=Mic" > hint.hdac.0.cad0.nid21.config="as=5seq=0 device=Line-in" > hint.hdac.0.cad0.nid22.config="as=6seq=0 device=Line-out" > hint.hdac.0.cad0.nid23.config="as=6seq=0 device=Mic" > hint.hdac.0.cad0.nid24.config="as=6seq=0 device=CD" > hint.hdac.0.cad0.nid36.config="as=5seq=0 device=Line-out" > hint.hdac.0.cad0.nid37.config="as=6seq=0 device=Line-out" Except lack of speces between fields there is also lack of any sense. I don't understand what was you trying to do, but it will not work: - you configured nid 21 and nid 36 as association five, but made one of them input and other output. It is incorrect, association may include only pins of one direction (in/out); - association 6 is the same; - nid 19 has connectivity "None", so it will not be used by driver. It is all described in manual. Actually I think default configuration is quite reasonable. There is some things that can be tuned, but you should first understand what you have and how it works. -- Alexander Motin