From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 20:25:29 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1759D1065674 for ; Fri, 19 Aug 2011 20:25:29 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id C745C8FC1F for ; Fri, 19 Aug 2011 20:25:28 +0000 (UTC) Received: by gyd10 with SMTP id 10so2876870gyd.13 for ; Fri, 19 Aug 2011 13:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=GWsFT/GzOUKX0tImig9G8exXjtafca/yElHAZoxe5II=; b=nhyRQDCwJxW635IpzOOyARB3zx3EdiyCjG4/bArdtyML19tWMp1mPQaamesEibiCeE lSiSY5OCI64sbSbc0uK2/dBHFvoNBGCTLztabz3yomBn+jS/6HYJYZxR8ZodrDZ4aIdW 25jsmSY68caMJ3TNWw0T+3pPn3rXHAmNmqIKw= Received: by 10.142.196.19 with SMTP id t19mr85754wff.3.1313785527815; Fri, 19 Aug 2011 13:25:27 -0700 (PDT) Received: from sidhe.local ([75.101.87.90]) by mx.google.com with ESMTPS id p7sm2592220pbn.1.2011.08.19.13.25.25 (version=SSLv3 cipher=OTHER); Fri, 19 Aug 2011 13:25:26 -0700 (PDT) Message-ID: <4E4EC6BC.8070806@gmail.com> Date: Fri, 19 Aug 2011 13:25:32 -0700 From: Matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110716 Thunderbird/5.0 MIME-Version: 1.0 To: Zhihao Yuan References: <4E4EBF6D.3030709@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: snd_hda does no output to headphones X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 20:25:29 -0000 On 08/19/11 13:20, Zhihao Yuan wrote: > On Fri, Aug 19, 2011 at 2:54 PM, Matt wrote: >> On 08/19/11 09:15, Zhihao Yuan wrote: >>> Hi, >>> >>> I think I must get this problem resolved. I work at night, so without >>> the headphones support, I can listen to music or watch video at that >>> time. >>> >>> The machine is HP Elitebook 8540w. >>> >>> ~> uname -a >>> FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #6 r224860: Sun >>> Aug 14 15:17:57 CDT 2011 >>> >>> lichray@compaq.yuetime:/usr/obj/home/lichray/devel/freebsd-stable/sys/HOUKAGO >>> amd64 >>> >>> I have already set up the default_unit: >>> >>> ~> cat /dev/sndstat >>> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) >>> Installed devices: >>> pcm0: (play) >>> pcm1: (play) >>> pcm2: (play) >>> pcm3: (play) >>> pcm4: (play/rec) default >>> pcm5: (play) >>> >>> >>> pindump: >>> >>> hdac1: Dumping AFG cad=0 nid=1 pins: >>> hdac1: nid 10 0x2121101f as 1 seq 15 Headphones Jack jack 1 loc >>> 33 color Black misc 0 >>> hdac1: Caps: OUT HP Sense: 0x00000000 >>> hdac1: nid 11 0x03a1102e as 2 seq 14 Mic Jack jack 1 loc >>> 3 color Black misc 0 >>> hdac1: Caps: IN VREF Sense: 0x00000000 >>> hdac1: nid 12 0x90a70120 as 2 seq 0 Mic Fixed jack 7 loc >>> 16 color Unknown misc 1 >>> hdac1: Caps: IN VREF Sense: 0x00000000 >>> hdac1: nid 13 0x90170110 as 1 seq 0 Speaker Fixed jack 7 loc >>> 16 color Unknown misc 1 >>> hdac1: Caps: OUT Sense: 0x00000000 >>> hdac1: nid 14 0x21811040 as 4 seq 0 Line-in Jack jack 1 loc >>> 33 color Black misc 0 [DISABLED] >>> hdac1: Caps: IN VREF Sense: 0x00000000 >>> hdac1: nid 15 0x03211030 as 3 seq 0 Headphones Jack jack 1 loc >>> 3 color Black misc 0 >>> hdac1: Caps: OUT Sense: 0x00000000 >>> hdac1: nid 20 0x40f000f0 as 15 seq 0 Other None jack 0 loc >>> 0 color Unknown misc 0 [DISABLED] >>> hdac1: Caps: IN OUT >>> hdac1: nid 24 0x40f000f0 as 15 seq 0 Other None jack 0 loc >>> 0 color Unknown misc 0 [DISABLED] >>> hdac1: Caps: IN >>> hdac1: nid 25 0x40f000f0 as 15 seq 0 Other None jack 0 loc >>> 0 color Unknown misc 0 [DISABLED] >>> hdac1: Caps: IN >>> hdac1: nid 30 0x40f000f0 as 15 seq 0 Other None jack 0 loc >>> 0 color Unknown misc 0 [DISABLED] >>> hdac1: Caps: OUT >>> hdac1: nid 31 0x40f000f0 as 15 seq 0 Other None jack 0 loc >>> 0 color Unknown misc 0 [DISABLED] >>> hdac1: Caps: OUT EAPD >>> hdac1: nid 32 0x40f000f0 as 15 seq 0 Other None jack 0 loc >>> 0 color Unknown misc 0 [DISABLED] >>> hdac1: Caps: OUT >>> hdac1: NumGPIO=8 NumGPO=0 NumGPI=0 GPIWake=1 GPIUnsol=1 >>> hdac1: GPIO: data=0x00000000 enable=0x00000000 direction=0x00000000 >>> hdac1: wake=0x00000000 unsol=0x00000000 sticky=0x00000000 >>> >>> >>> A full boot dmesg is availiable at here: >>> >>> http://lists.freebsd.org/pipermail/freebsd-multimedia/2011-August/012389.html >>> >>> The sound comes from the internal speaker, and the internal record >>> works. But the sound does not work on the headphones. >>> >>> I read many posts and the snd_hda(4), and I know I need to bind the >>> headphones and the internal speaker to the same as, and I need to do >>> the same on output. I think there must be some people who knows how to >>> configure this here. Please give me some instructions. Thanks. >> It's been a while, but it looks like you have two headphones (nid10& >> nid15)? I would try disabling the first one and setting the as and seq for >> the second one to match what the first one (nid10) have. >> > Oh, my... you must be a genius at troubleshooting. I swapped them with > > hint.hdac.1.cad0.nid10.config="as=3 seq=0" > hint.hdac.1.cad0.nid15.config="as=1 seq=15" > > and everything work. Thanks! > Glad it worked! Matt