From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 23 17:02:57 2009 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 02DFC106568F for ; Mon, 23 Nov 2009 17:02:57 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by mx1.freebsd.org (Postfix) with ESMTP id 59B4A8FC29 for ; Mon, 23 Nov 2009 17:02:55 +0000 (UTC) Received: by bwz20 with SMTP id 20so4150954bwz.14 for ; Mon, 23 Nov 2009 09:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=ATsveqCphiF3lYrgqIy6iBWi5UaIVmO0lNF+zxhy5O8=; b=muySeo8saweWkEGsCzdrk2+jg50cZbDj3NGIbivmpyhuuRChL3/jDBRvump0WsqFs4 zv2AS4J1fk8+tFf7D3843MwYOBbTZlZfz2K+tUsQuOwL00j08JXUzQv9FgX0ZduK+z04 ssHWogEOdnZPi2gB7pzPiqjSv6qcl2shC2nNs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=NT4Y1avJi7LTLw319Qig5IRRH1OpjOWo5Ll3vR5okxr2EIuzzcN1exRExxgicD85DT VxnJxImUiCizAh/6n0DzRbZSFFN8MqR6KVakpWsKTTrCqQDKFaViuaZgXEXBnjqqTOU+ oMnsDH6O5XLUxbjU7xVnqGUuElriTmmB0/kVQ= Received: by 10.204.49.82 with SMTP id u18mr5087623bkf.47.1258995774414; Mon, 23 Nov 2009 09:02:54 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 14sm1448141fxm.7.2009.11.23.09.02.53 (version=SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 09:02:53 -0800 (PST) Sender: Alexander Motin Message-ID: <4B0AC03B.50602@FreeBSD.org> Date: Mon, 23 Nov 2009 19:02:51 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Joe Greco References: <200911231622.nANGM9Wl048293@aurora.sol.net> In-Reply-To: <200911231622.nANGM9Wl048293@aurora.sol.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Pointers to debug lack-of-audio 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: Mon, 23 Nov 2009 17:02:57 -0000 Joe Greco wrote: >>> hdac0: Processing audio FG cad=0 nid=1... >>> hdac0: GPIO: 0x40000004 NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 >>> hdac0: nid 15 0x9993e133 as 3 seq 3 AUX Fixed jack 3 loc 25 color White misc 1 >>> hdac0: nid 16 0x0221101f as 1 seq 15 Headphones Jack jack 1 loc 2 color Black misc 0 >>> hdac0: nid 17 0x9707e120 as 2 seq 0 Line-out Fixed jack 7 loc 23 color White misc 1 >>> hdac0: nid 18 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 >>> hdac0: nid 19 0x02a11930 as 3 seq 0 Mic Jack jack 1 loc 2 color Black misc 9 >>> hdac0: nid 20 0x01813c31 as 3 seq 1 Line-in Jack jack 1 loc 1 color Blue misc 12 >>> hdac0: nid 21 0x01014c10 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 12 >>> hdac0: nid 22 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 >>> hdac0: Patching widget caps nid=23 0x00400000 -> 0x00700000 >>> hdac0: nid 24 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 >>> hdac0: nid 25 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 >>> hdac0: Patched pins configuration: >>> hdac0: nid 15 0x9993e133 as 3 seq 3 AUX Fixed jack 3 loc 25 color White misc 1 >>> hdac0: nid 16 0x0221101f as 1 seq 15 Headphones Jack jack 1 loc 2 color Black misc 0 >>> hdac0: nid 17 0x9707e120 as 2 seq 0 Line-out Fixed jack 7 loc 23 color White misc 1 >>> hdac0: nid 18 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] >>> hdac0: nid 19 0x02a11930 as 3 seq 0 Mic Jack jack 1 loc 2 color Black misc 9 >>> hdac0: nid 20 0x01813c31 as 3 seq 1 Line-in Jack jack 1 loc 1 color Blue misc 12 >>> hdac0: nid 21 0x01014c10 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 12 >>> hdac0: nid 22 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] >>> hdac0: nid 24 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] >>> hdac0: nid 25 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] >>> hdac0: 3 associations found: >>> hdac0: Association 0 (1) out: >>> hdac0: Pin nid=21 seq=0 >>> hdac0: Pin nid=16 seq=15 >>> hdac0: Association 1 (2) out: >>> hdac0: Pin nid=17 seq=0 >>> hdac0: Association 2 (3) in: >>> hdac0: Pin nid=19 seq=0 >>> hdac0: Pin nid=20 seq=1 >>> hdac0: Pin nid=15 seq=3 >>> hdac0: Tracing association 0 (1) >>> hdac0: Pin 21 traced to DAC 2 >>> hdac0: Pin 16 traced to DAC 2 and hpredir 0 >>> hdac0: Association 0 (1) trace succeeded >>> hdac0: Tracing association 1 (2) >>> hdac0: Unable to trace pin 17 seq 0 with min nid 0 >>> hdac0: Association 1 (2) trace failed >> Here is at least one bug in codec configuration ^^^. This codec has only >> one DAC, so it is unable to manage two playback devices. >> >>> hdac0: Tracing association 2 (3) >>> hdac0: Pin 19 traced to ADC 4 >>> hdac0: Pin 20 traced to ADC 4 >>> hdac0: Pin 15 traced to ADC 4 >>> hdac0: Association 2 (3) trace succeeded >>> hdac0: Tracing input monitor >>> hdac0: Tracing beeper >>> hdac0: nid 23 traced to out >>> hdac0: Enabling headphone/speaker audio routing switching: >>> hdac0: as=0 sense nid=16 [UNSOL] >>> hdac0: Pin sense: nid=16 res=0x7fffffff >>> hdac0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref >>> I saw some mention of unmapped or incorrectly mapped audio outputs >>> with snd_hda, but I'm not sure how to tell what they ought to be. >>> I see some things are listed as [DISABLED] but haven't figured out >>> whether that's reasonable or not. >> Speakers sometimes controlled with setting GPIO signals. You may need to >> experiment with them. Same time, your output connector configured for >> automatic audio redirection, with default to speaker, but if it is >> incapable of signaling jack presence, it won't ever receive any sound. > > > Okay, so ... I'm trying, then, to get rid of what's currently listed as > "Association 1 (2)"? That's simply "Pin nid=17 seq=0" which maps to > "nid 17 0x9707e120 as 2 seq 0 Line-out Fixed jack 7 loc 23 color > White misc 1" > > So would this be > > hint.hdac.0.cad0.nid17.config="as=1 seq=1 device=Line-out" > > ? I'm kind of guessing here. This gets me another nonfunctional config, > > hdac0: [MPSAFE] > hdac0: [ITHREAD] > hdac0: Probing codec #0... > hdac0: HDA Codec #0: Realtek ALC260 > hdac0: HDA Codec ID: 0x10ec0260 > hdac0: Vendor: 0x10ec > hdac0: Device: 0x0260 > hdac0: Revision: 0x04 > hdac0: Stepping: 0x00 > hdac0: PCI Subvendor: 0x3011103c > hdac0: Found audio FG nid=1 startnode=2 endnode=28 total=26 > hdac0: > hdac0: Processing audio FG cad=0 nid=1... > hdac0: GPIO: 0x40000004 NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 > hdac0: nid 15 0x9993e133 as 3 seq 3 AUX Fixed jack 3 loc 25 color White misc 1 > hdac0: nid 16 0x0221101f as 1 seq 15 Headphones Jack jack 1 loc 2 color Black misc 0 > hdac0: nid 17 0x9707e120 as 2 seq 0 Line-out Fixed jack 7 loc 23 color White misc 1 > hdac0: Patching pin config nid=17 0x9707e120 -> 0x9707e111 > hdac0: nid 18 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 > hdac0: nid 19 0x02a11930 as 3 seq 0 Mic Jack jack 1 loc 2 color Black misc 9 > hdac0: nid 20 0x01813c31 as 3 seq 1 Line-in Jack jack 1 loc 1 color Blue misc 12 > hdac0: nid 21 0x01014c10 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 12 > hdac0: nid 22 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 > hdac0: Patching widget caps nid=23 0x00400000 -> 0x00700000 > hdac0: nid 24 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 > hdac0: nid 25 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 > hdac0: Patched pins configuration: > hdac0: nid 15 0x9993e133 as 3 seq 3 AUX Fixed jack 3 loc 25 color White misc 1 > hdac0: nid 16 0x0221101f as 1 seq 15 Headphones Jack jack 1 loc 2 color Black misc 0 > hdac0: nid 17 0x9707e111 as 1 seq 1 Line-out Fixed jack 7 loc 23 color White misc 1 > hdac0: nid 18 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] > hdac0: nid 19 0x02a11930 as 3 seq 0 Mic Jack jack 1 loc 2 color Black misc 9 > hdac0: nid 20 0x01813c31 as 3 seq 1 Line-in Jack jack 1 loc 1 color Blue misc 12 > hdac0: nid 21 0x01014c10 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 12 > hdac0: nid 22 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] > hdac0: nid 24 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] > hdac0: nid 25 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] > hdac0: 2 associations found: > hdac0: Association 0 (1) out: > hdac0: Pin nid=21 seq=0 > hdac0: Pin nid=17 seq=1 > hdac0: Pin nid=16 seq=15 > hdac0: Association 1 (3) in: > hdac0: Pin nid=19 seq=0 > hdac0: Pin nid=20 seq=1 > hdac0: Pin nid=15 seq=3 > hdac0: Tracing association 0 (1) > hdac0: Pin 21 traced to DAC 2 > hdac0: Unable to trace pin 17 seq 1 with min nid 0 > hdac0: Unable to trace pin 21 seq 0 with min nid 3 > hdac0: Pin 21 traced to DAC 2 with fake redirection > hdac0: Unable to trace pin 17 seq 1 with min nid 0 > hdac0: Unable to trace pin 21 seq 0 with min nid 3 > hdac0: Association 0 (1) trace failed > hdac0: Tracing association 1 (3) > hdac0: Pin 19 traced to ADC 4 > hdac0: Pin 20 traced to ADC 4 > hdac0: Pin 15 traced to ADC 4 > hdac0: Association 1 (3) trace succeeded > hdac0: Tracing input monitor > hdac0: Tracing beeper > hdac0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref > > But that's also getting "Unable to trace" messages. That what you have configured still require two DACs. Only one seq=15 can share DAC with others. You'll have to disable one of them. How much connectors do you have on case? May be some of configured nids is fake? Looking on codec datasheet, nid 17 is mono out, so it is a good candidate to be used for speaker. > Am I supposed to > be trying to figure this out before trying to play with gpio signals? Better solve all possible problems before, as there is quite large number of combinations. -- Alexander Motin