From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 27 08:19:17 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3B85106569E for ; Wed, 27 Aug 2008 08:19:16 +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 189918FC19 for ; Wed, 27 Aug 2008 08:19:15 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Ystatus: hits=-12.7 R1584 R3897 __R4437 R4451 R3660 R2275 R4449 R4690 R4223 __R5513 R707 R687 R688 __R4244 R2602 R4458 R4459 R2803 R4428 R4438 R6084 X-Spam-Flag: NO X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 209748375; Wed, 27 Aug 2008 11:19:14 +0300 Message-ID: <48B50E02.5040508@FreeBSD.org> Date: Wed, 27 Aug 2008 11:19:14 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: swell.k@gmail.com References: <48B2DD7E.6030700@FreeBSD.org> <86y72j8ctw.fsf@gmail.com> In-Reply-To: <86y72j8ctw.fsf@gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: snd_hda UAA patch second preview X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 08:19:17 -0000 swell.k@gmail.com wrote: > Neither hda.20080825.patch nor hda.20080826.patch outputs any sound for me. > Although hda.20080812.patch worked well. I'm using headphones jack. Plugging > into "line out" helps, but inconvenient, since its jack on the rear side of > case. > > % cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64) > Installed devices: > pcm0: at hdac0 cad 2 [20080826_0101] [MPSAFE] (1p:1v/1r:1v channels duplex default) > pcm1: at hdac0 cad 2 [20080826_0101] [MPSAFE] (1p:1v/1r:1v channels duplex) > pcm2: at hdac0 cad 2 [20080826_0101] [MPSAFE] (1p:1v/1r:1v channels duplex) Have you tried to use other pcm devices? I think that headphone connector in your default setup is just a separate device and not duplicates line out. Here is what I see in your output: hdac0: Patched pins configuration: hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4 hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4 hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4 hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4 hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12 hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12 hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4 hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12 hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1 [DISABLED] hdac0: nid 29 0x4005e601 as 0 seq 1 Line-out None jack 5 loc 0 color White misc 6 [DISABLED] hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1 hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1 hdac0: Parsing pin associations... hdac0: 6 associations found hdac0: Association 0 (1) out: hdac0: Pin nid=20 seq=0 hdac0: Pin nid=22 seq=1 hdac0: Pin nid=21 seq=2 hdac0: Pin nid=23 seq=4 hdac0: Association 1 (2) out: hdac0: Pin nid=27 seq=0 hdac0: Association 2 (3) out: hdac0: Pin nid=30 seq=0 hdac0: Association 3 (4) in: hdac0: Pin nid=24 seq=0 hdac0: Pin nid=26 seq=15 hdac0: Association 4 (5) in: hdac0: Pin nid=25 seq=0 hdac0: Association 5 (6) in: hdac0: Pin nid=31 seq=0 So: association 0 is 7.1 playback via 4 connectors (rear), association 1 is headphones playback (front), association 2 is SPDIF playback, association 3 is a mic and line in recording (rear), association 4 is a mic recording (front), association 5 is SPDIF recording. So in order of numeration according to in/out directions: as0 + as3 = pcm0 as1 + as4 = pcm1 as2 + as5 = pcm2 I think you have one of the most advanced and interesting audio setups which I have seen, but just don't yet understand that fact. :) PS: I don't know why hda.20080812.patch worked differently, but I think that was a bug. :) -- Alexander Motin