From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 23 08:43:05 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 2607E1065676 for ; Mon, 23 Nov 2009 08:43:05 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id A242E8FC1D for ; Mon, 23 Nov 2009 08:43:04 +0000 (UTC) Received: by bwz5 with SMTP id 5so5101776bwz.3 for ; Mon, 23 Nov 2009 00:43:03 -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 :content-type:content-transfer-encoding; bh=cmP341G/33OMniyFjTzAvtEl1CvbgujfQZXuZLfLHxM=; b=YhKQ0oD3K/JshDbkTdwtx4HgLEO6DgWskxB912GPMnxy0H2srq5v74pzcol2RBt3h0 +0KpkuVOWklGHGCD/Zh/d6j3QT50nGhb6rKImQ4gtJ01xdPZTsCPmn5admOGNNnf8ogB w1VOKfSoKhTJHBHOttUMK0DCElyLdNtG+nHDE= 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:content-type:content-transfer-encoding; b=GWVnsJSr37sfq7615jdy8yI+jVzXt8/ghgf9WkJy2xn63J/Ofc/e3dk7UjxOB4t8DT HZGRiTd4Q54m/THILZvrqUfJ2CmeO8SUHtLGkTgLWqBwk5u1ndsGpTOFbVl4+CYN7L2D SGE7jEZxAXp12HJUTvg6OKQ6LjKHHLpyjfzu8= Received: by 10.204.148.69 with SMTP id o5mr4263342bkv.99.1258964432832; Mon, 23 Nov 2009 00:20:32 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 14sm1274669fxm.3.2009.11.23.00.20.32 (version=SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 00:20:32 -0800 (PST) Sender: Alexander Motin Message-ID: <4B0A45CE.5030707@FreeBSD.org> Date: Mon, 23 Nov 2009 10:20:30 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Joe Greco References: <1258957384.00186268.1258947002@10.7.7.3> In-Reply-To: <1258957384.00186268.1258947002@10.7.7.3> 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 08:43:05 -0000 Joe Greco wrote: > I've got a bunch of HP dc7600 Small Form Factor PC's. One of them is > running the latest version of PC-BSD, which is of course based on > FreeBSD 7.2-STABLE. It appears to load the audio driver, but it's > mute. The dc7600 sports a built-in speaker, and neither it nor any > of the jacks seem to produce sound. > > I've looked over the saga of the snd_hda driver, and am not quite clear > where to go. It looks configured. The pin mappings seem to make some > sort of sense, though I don't know what they ought to be. > > # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: at cad 0 nid 1 on hdac0 kld snd_hda > [MPSAFE] (1p:1v/1r:1v channels duplex default) > > So it probes fine. > > Doing a kldunload/reload with verbose logging reveals > > hdac0: mem 0xfc500000-0xfc503fff irq 21 at device 27.0 on pci0 > hdac0: HDA Driver Revision: 20090624_0136 > hdac0: attempting to allocate 1 MSI vectors (1 supported) > msi: routing MSI IRQ 257 to vector 60 > hdac0: using IRQ 257 for MSI > msi: Assigning MSI IRQ 257 to local APIC 0 > 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: 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. -- Alexander Motin