From owner-freebsd-mobile@FreeBSD.ORG Sat Oct 10 17:47:49 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3477E106566B for ; Sat, 10 Oct 2009 17:47:49 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by mx1.freebsd.org (Postfix) with ESMTP id A75888FC0A for ; Sat, 10 Oct 2009 17:47:48 +0000 (UTC) Received: by bwz23 with SMTP id 23so1227701bwz.43 for ; Sat, 10 Oct 2009 10:47:47 -0700 (PDT) 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=71YA/iMEzbW/tyn/0GEdyPVFgw6cWPHjqON4469ScHQ=; b=oY4T1tCb94j8mMHwR0SVIFgkQ9jAOsHCRw8F8Mx8KWOVQtajZ37i/oaXvpSbwFWh0h PzFsxLmcapdv/BoOarJLzAqdxEW8LlnqHC9AFpdWjQX1z1NRnZ0eu2D430ff23mXj9D8 a2E2c84XW+acpd2/DsGb/RNFjdunmu/hdQiqY= 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=rPzs4cOKhMZfz0qhvUiDb526fx056iu+shObjQDjFojemEMfGOoY0b4deCla52ZTBw fu35xmJ9NO5S8Sqc0BE4ZilmiXKd4RHwc2EJzRGoVFs6MYmmBBZHH0wP/9KpOE20iyP0 OCz9Y2nqHhdjoaIIS6X0GdZohKnM5zBhGYIp8= Received: by 10.103.126.9 with SMTP id d9mr1664832mun.103.1255194897816; Sat, 10 Oct 2009 10:14:57 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id s10sm3810829muh.24.2009.10.10.10.14.56 (version=SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 10:14:57 -0700 (PDT) Sender: Alexander Motin Message-ID: <4AD0C10E.1020709@FreeBSD.org> Date: Sat, 10 Oct 2009 20:14:54 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: glimm - References: <1255184582.00171852.1255172403@10.7.7.3> In-Reply-To: <1255184582.00171852.1255172403@10.7.7.3> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: snd_hda, freebsd 8 and headphones X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2009 17:47:49 -0000 glimm - wrote: > After updating to 8.0 my headphones stopped working on my laptop. I > think that should fix hdac.c file, but can not imagine how. Help me:) > > Model - Sony VAIO SZ650 > > snd_hda verbose: > > hdac0: mem > 0xfc300000-0xfc303fff 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 256 to local APIC 0 vector 48 > hdac0: using IRQ 256 for MSI > hdac0: [MPSAFE] > hdac0: [ITHREAD] > hdac0: Probing codec #0... > hdac0: HDA Codec #0: Sigmatel STAC9872AK > hdac0: HDA Codec ID: 0x83847662 > hdac0: Vendor: 0x8384 > hdac0: Device: 0x7662 > hdac0: Revision: 0x02 > hdac0: Stepping: 0x01 > hdac0: PCI Subvendor: 0x9008104d > hdac0: Found audio FG nid=1 startnode=2 endnode=25 total=23 > hdac0: Probing codec #1... > hdac0: HDA Codec #1: Conexant (Unknown) > hdac0: HDA Codec ID: 0x14f12c06 > hdac0: Vendor: 0x14f1 > hdac0: Device: 0x2c06 > hdac0: Revision: 0x00 > hdac0: Stepping: 0x00 > hdac0: PCI Subvendor: 0x9008104d > hdac0: Found modem FG nid=2 startnode=112 endnode=116 total=4 > hdac0: > hdac0: Processing audio FG cad=0 nid=1... > hdac0: GPIO: 0xc0000005 NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=1 > GPIUnsol=1 hdac0: nid 10 0x03211020 as 2 seq 0 Headphones Jack > jack 1 loc 3 color Black misc 0 hdac0: nid 11 0x411111f0 as 15 > seq 0 Speaker None jack 1 loc 1 color Black misc 1 hdac0: > nid 12 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 > color Black misc 1 hdac0: nid 13 0x03a15030 as 3 seq 0 > Mic Jack jack 1 loc 3 color Red misc 0 hdac0: nid 14 0x411111f0 > as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 > hdac0: nid 15 0x90170110 as 1 seq 0 Speaker Fixed jack 7 loc > 16 color Unknown misc 1 hdac0: nid 17 0x411111f0 as 15 seq 0 > Speaker None jack 1 loc 1 color Black misc 1 hdac0: nid 19 > 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color > Black misc 1 hdac0: nid 20 0x90a7013e as 3 seq 14 Mic Fixed > jack 7 loc 16 color Unknown misc 1 hdac0: Patched pins configuration: > hdac0: nid 10 0x03211020 as 2 seq 0 Headphones Jack jack 1 loc > 3 color Black misc 0 hdac0: nid 11 0x411111f0 as 15 seq 0 > Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0: > nid 12 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 > color Black misc 1 [DISABLED] hdac0: nid 13 0x03a15030 as 3 seq > 0 Mic Jack jack 1 loc 3 color Red misc 0 hdac0: nid > 14 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color > Black misc 1 [DISABLED] hdac0: nid 15 0x90170110 as 1 seq 0 > Speaker Fixed jack 7 loc 16 color Unknown misc 1 hdac0: nid 17 > 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color > Black misc 1 [DISABLED] hdac0: nid 19 0x411111f0 as 15 seq 0 > Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0: > nid 20 0x90a7013e as 3 seq 14 Mic Fixed jack 7 loc 16 color > Unknown misc 1 hdac0: 3 associations found: hdac0: Association 0 (1) > out: hdac0: Pin nid=15 seq=0 hdac0: Association 1 (2) out: hdac0: Pin > nid=10 seq=0 hdac0: Association 2 (3) in: hdac0: Pin nid=13 seq=0 > hdac0: Pin nid=20 seq=14 hdac0: Tracing association 0 (1) hdac0: Pin > 15 traced to DAC 5 hdac0: Association 0 (1) trace succeeded hdac0: > Tracing association 1 (2) hdac0: Pin 10 traced to DAC 2 > hdac0: Association 1 (2) trace succeeded > hdac0: Tracing association 2 (3) > hdac0: Unable to trace pin 13 to ADC 6, undo traces > hdac0: Pin 13 traced to ADC 8 > hdac0: Pin 20 traced to ADC 8 > hdac0: Association 2 (3) trace succeeded It is difficult to read this without original formatting, but below we can see that you codec configured to provide separate audio devices for speaker and headphones: > pcm0: at cad 0 nid 1 on hdac0 > pcm0: +-------------------------------+ > pcm0: | DUMPING Playback/Record Paths | > pcm0: +-------------------------------+ > pcm0: > pcm0: Playback: > pcm0: > pcm0: nid=15 [pin: Speaker (Fixed)] > pcm0: | > pcm0: + <- nid=5 [audio output] [src: pcm] > pcm0: > pcm0: Record: > pcm0: > pcm0: nid=8 [audio input] > pcm0: | > pcm0: + <- nid=9 [audio selector] [src: mic, monitor] > pcm0: | > pcm0: + <- nid=21 [audio selector] [src: mic, monitor] > pcm0: | > pcm0: + <- nid=13 [pin: Mic (Red Jack)] [src: mic] > pcm0: + <- nid=20 [pin: Mic (Fixed)] [src: monitor] > pcm0: > pcm1: at cad 0 nid 1 on hdac0 > pcm1: +-------------------------------+ > pcm1: | DUMPING Playback/Record Paths | > pcm1: +-------------------------------+ > pcm1: > pcm1: Playback: > pcm1: > pcm1: nid=10 [pin: Headphones (Black Jack)] > pcm1: | > pcm1: + <- nid=2 [audio output] [src: pcm] Usually in such cases codec configured to do automatic audio redirection on headphones plug-in, but for some reason not in your case. So you may try to either playback via pcm1 device to headphones, or add line: hint.hdac.0.cad0.nid10.config="as=1 seq=15" into /boot/loader.conf to configure automatic redirection. Also you may want to read snd_hda man page, which describes it. -- Alexander Motin