From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 20:20:23 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 5515B1065672 for ; Fri, 19 Aug 2011 20:20:23 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 22BEE8FC16 for ; Fri, 19 Aug 2011 20:20:22 +0000 (UTC) Received: by iye7 with SMTP id 7so11359989iye.17 for ; Fri, 19 Aug 2011 13:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gQ0Rwjm1u94lH3NDynEcQ/ZiMH0hyzut9ciY5SUGomc=; b=sbvxPHvv6FflKm8R6OlLhbSdPQZ09lVcCy2NNaQdbVQ1aSHiGhLKPb4XFyBPA3fy7O sUCDwgydLs4oNWyCc+dVTJhzTJzPCOfD9fttie6/5TLu6pEyPWwxhukc4JO9uEmQMbPJ B2vjJfPQhlcfDrw9+MlVuxinwO5vT6U2dhQzA= MIME-Version: 1.0 Received: by 10.231.28.33 with SMTP id k33mr276292ibc.81.1313785222536; Fri, 19 Aug 2011 13:20:22 -0700 (PDT) Received: by 10.231.14.68 with HTTP; Fri, 19 Aug 2011 13:20:22 -0700 (PDT) In-Reply-To: <4E4EBF6D.3030709@gmail.com> References: <4E4EBF6D.3030709@gmail.com> Date: Fri, 19 Aug 2011 15:20:22 -0500 Message-ID: From: Zhihao Yuan To: Matt Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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:20:23 -0000 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. >> >> ~> =C2=A0uname -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/HO= UKAGO >> =C2=A0amd64 >> >> I have already set up the default_unit: >> >> ~> =C2=A0cat /dev/sndstat >> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) >> Installed devices: >> pcm0: =C2=A0(play) >> pcm1: =C2=A0(play) >> pcm2: =C2=A0(play) >> pcm3: =C2=A0(play) >> pcm4: =C2=A0(play/rec) default >> pcm5: =C2=A0(play) >> >> >> pindump: >> >> hdac1: Dumping AFG cad=3D0 nid=3D1 pins: >> hdac1: =C2=A0nid 10 0x2121101f as =C2=A01 seq 15 =C2=A0 =C2=A0Headphones= =C2=A0Jack jack =C2=A01 loc >> 33 color =C2=A0 Black misc 0 >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: =C2=A0 =C2=A0OUT HP =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Sense: 0x00000000 >> hdac1: =C2=A0nid 11 0x03a1102e as =C2=A02 seq 14 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 Mic =C2=A0Jack jack =C2=A01 loc >> =C2=A03 color =C2=A0 Black misc 0 >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: IN =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 VREF Sense: 0x00000000 >> hdac1: =C2=A0nid 12 0x90a70120 as =C2=A02 seq =C2=A00 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 Mic Fixed jack =C2=A07 loc >> 16 color Unknown misc 1 >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: IN =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 VREF Sense: 0x00000000 >> hdac1: =C2=A0nid 13 0x90170110 as =C2=A01 seq =C2=A00 =C2=A0 =C2=A0 =C2= =A0 Speaker Fixed jack =C2=A07 loc >> 16 color Unknown misc 1 >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: =C2=A0 =C2=A0OUT =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Sense: 0x00000000 >> hdac1: =C2=A0nid 14 0x21811040 as =C2=A04 seq =C2=A00 =C2=A0 =C2=A0 =C2= =A0 Line-in =C2=A0Jack jack =C2=A01 loc >> 33 color =C2=A0 Black misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: IN =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 VREF Sense: 0x00000000 >> hdac1: =C2=A0nid 15 0x03211030 as =C2=A03 seq =C2=A00 =C2=A0 =C2=A0Headp= hones =C2=A0Jack jack =C2=A01 loc >> =C2=A03 color =C2=A0 Black misc 0 >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: =C2=A0 =C2=A0OUT =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Sense: 0x00000000 >> hdac1: =C2=A0nid 20 0x40f000f0 as 15 seq =C2=A00 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Other =C2=A0None jack =C2=A00 loc >> =C2=A00 color Unknown misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: IN OUT >> hdac1: =C2=A0nid 24 0x40f000f0 as 15 seq =C2=A00 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Other =C2=A0None jack =C2=A00 loc >> =C2=A00 color Unknown misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: IN >> hdac1: =C2=A0nid 25 0x40f000f0 as 15 seq =C2=A00 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Other =C2=A0None jack =C2=A00 loc >> =C2=A00 color Unknown misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: IN >> hdac1: =C2=A0nid 30 0x40f000f0 as 15 seq =C2=A00 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Other =C2=A0None jack =C2=A00 loc >> =C2=A00 color Unknown misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: =C2=A0 =C2=A0OUT >> hdac1: =C2=A0nid 31 0x40f000f0 as 15 seq =C2=A00 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Other =C2=A0None jack =C2=A00 loc >> =C2=A00 color Unknown misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: =C2=A0 =C2=A0OUT =C2=A0 =C2=A0EA= PD >> hdac1: =C2=A0nid 32 0x40f000f0 as 15 seq =C2=A00 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Other =C2=A0None jack =C2=A00 loc >> =C2=A00 color Unknown misc 0 [DISABLED] >> hdac1: =C2=A0 =C2=A0 =C2=A0 =C2=A0Caps: =C2=A0 =C2=A0OUT >> hdac1: NumGPIO=3D8 NumGPO=3D0 NumGPI=3D0 GPIWake=3D1 GPIUnsol=3D1 >> hdac1: GPIO: data=3D0x00000000 enable=3D0x00000000 direction=3D0x0000000= 0 >> hdac1: =C2=A0 =C2=A0 =C2=A0 wake=3D0x00000000 =C2=A0unsol=3D0x00000000 = =C2=A0 =C2=A0sticky=3D0x00000000 >> >> >> 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 fo= r > 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=3D"as=3D3 seq=3D0" hint.hdac.1.cad0.nid15.config=3D"as=3D1 seq=3D15" and everything work. Thanks! --=20 Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/