From owner-freebsd-multimedia@FreeBSD.ORG Sun Aug 21 17:49:30 2011 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 78257106566B for ; Sun, 21 Aug 2011 17:49:30 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 07FD48FC15 for ; Sun, 21 Aug 2011 17:49:29 +0000 (UTC) Received: by wyh15 with SMTP id 15so3885889wyh.13 for ; Sun, 21 Aug 2011 10:49:29 -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=K2oRQWTQ6szmasFb1k5wbANI/YffZ+26dQxthL48HK8=; b=DQsloJt9mJf1yVKrZGKI6btBXigqL6OVAWL+cIT7rUWuMHHAmEbUgjZhpRhSiRJ35c aJGVXU9EYGRnCxjKT5dbSH8Xd8+nAKQsaCdkcU3FUou6kykWOhXkgaDWK+Cl5UhbcApW VJjcMN+TQ8Q7fGBneQifJXfMHKzyQR6vZB7+Q= Received: by 10.227.6.215 with SMTP id a23mr1277805wba.110.1313948968066; Sun, 21 Aug 2011 10:49:28 -0700 (PDT) Received: from Groseille.malikania.fr (65.21.102.84.rev.sfr.net [84.102.21.65]) by mx.google.com with ESMTPS id fh17sm4211739wbb.54.2011.08.21.10.49.26 (version=SSLv3 cipher=OTHER); Sun, 21 Aug 2011 10:49:26 -0700 (PDT) Message-ID: <4E514531.5050704@gmail.com> Date: Sun, 21 Aug 2011 19:49:37 +0200 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110715 Thunderbird/5.0 MIME-Version: 1.0 To: Zhihao Yuan References: <4E3C2ACE.7090708@gmail.com> <4E414063.9010101@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Again, snd_hda headphones problem 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: Sun, 21 Aug 2011 17:49:30 -0000 On 09/08/2011 17:40, Zhihao Yuan wrote: > On Tue, Aug 9, 2011 at 9:12 AM, David Demelier wrote: >> On 09/08/2011 12:04, Zhihao Yuan wrote: >>> >>> Here is my full dmesg when boot with -v. >>> >>> On Fri, Aug 5, 2011 at 12:39 PM, David Demelier >>> wrote: >>>> >>>> On 03/08/2011 20:43, Zhihao Yuan wrote: >>>>> >>>>> Hi, >>>>> >>>>> I posted this message on FreeBSD forum, but got no response. So I'm >>>>> seeking some help here. >>>>> >>>>> I bought a laptop, HP Elitebook 8540w. >>>>> >>>>> ~> uname -a >>>>> FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #4 r224501: Fri >>>>> Jul 29 22:28:38 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 >>>>> >>>>> >>>>> And 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. But I don't know which device is which, and I just >>>>> don't know how to deal with the seq. Please help me if you are pro on >>>>> this. >>>>> >>>> >>>> Please paste somewhere a *full* verbose boot (boot -v) >>>> >>>> -- >>>> David Demelier >>>> _______________________________________________ >>>> freebsd-multimedia@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia >>>> To unsubscribe, send any mail to >>>> "freebsd-multimedia-unsubscribe@freebsd.org" >>>> >>> >>> >>> >> >> Please try >> >> hint.hdac.1.cad0.nid15.config="as=1 seq=15" >> > > This makes things even worse. It disables many sound input/output. > > ~> mixer > Mixer speaker is currently set to 75:75 > Mixer rec is currently set to 75:75 > Recording source: mic > > Only two ports left after I add the hint, and none of them work. > >> >> >> -- >> David Demelier >> > > > Sorry I completely forgot this thread, but with this hint did you try to increase/decrease hw.snd.default_unit according to the new pcmX unit shown by cat /dev/sndstat -- David Demelier