From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 20 03:12:25 2007 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 1FEAB16A417 for ; Tue, 20 Nov 2007 03:12:25 +0000 (UTC) (envelope-from lioux-list@uol.com.br) Received: from goat.gigo.com (goat.gigo.com [216.218.228.114]) by mx1.freebsd.org (Postfix) with ESMTP id E319713C45A for ; Tue, 20 Nov 2007 03:12:24 +0000 (UTC) (envelope-from lioux-list@uol.com.br) Received: from 189.10.117.139 (189-10-117-139.bsace702.dsl.brasiltelecom.net.br [189.10.117.139]) by goat.gigo.com (Postfix) with ESMTP id BFEA3B890 for ; Mon, 19 Nov 2007 19:12:18 -0800 (PST) Received: (qmail 59290 invoked from network); 20 Nov 2007 01:10:06 -0200 Received: from unknown (HELO nexxus.fedaykin.here) (127.0.0.1) by exxodus.fedaykin.here with SMTP; 20 Nov 2007 01:10:06 -0200 Message-ID: <4742500D.3020308@uol.com.br> Date: Tue, 20 Nov 2007 01:10:05 -0200 From: Mario Sergio Fujikawa Ferreira User-Agent: Thunderbird 2.0.0.9 (X11/20071118) MIME-Version: 1.0 To: Ariff Abdullah References: <20071116174429.49043.qmail@nexxus.fedaykin.here> <20071118003003.49f2c046.ariff@FreeBSD.org> <47418769.5060008@uol.com.br> <20071119212845.68ef67a1.ariff@FreeBSD.org> In-Reply-To: <20071119212845.68ef67a1.ariff@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: snd_hda(4): headphone not detected 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: Tue, 20 Nov 2007 03:12:25 -0000 Ariff Abdullah wrote: > On Mon, 19 Nov 2007 10:54:01 -0200 > Mario Sergio Fujikawa Ferreira wrote: >> Ariff Abdullah wrote: >>> On Fri, 16 Nov 2007 15:44:29 -0200 >>> Mario Sergio Fujikawa Ferreira wrote: >>>> Hi, >>>> >>>> I own a Toshiba Satellite A135-S4527 laptop with a snd_hda(4) >>>> audio device >>>> >>>> pcm0@pci0:0:27:0: class=0x040300 card=0xff011179 >>>> chip=0x27d88086 rev=0x02 hdr=0x00 >>>> vendor = 'Intel Corporation' >>>> device = '82801G (ICH7 Family) High Definition Audio' >>>> class = multimedia >>>> >>>> running FreeBSD 7-STABLE >>>> >>>> FreeBSD nexxus.fedaykin.here 7.0-BETA2 FreeBSD 7.0-BETA2 #7: Thu >>> Nov > 15 14:02:59 BRST 2007 >>> lioux@nexxus:/usr/obj/usr/src/sys/LIOUX > i386 >>>> Sound is working through the laptop speakers. However, I >>>> do get any sound on the headphone jack. The driver does not seem >>>> to be able to detect the headphone jack. Headphone jack works as >>>> expected under Windows Vista though. >>>> >>>> I am attaching all the information I could gather. Let me >>>> know if there is anything I can do to help. >>>> >>>> Regards, >>>> >>> Try various configuration options of "ovref" or "gpio" through >>> hint.pcm.%d.config . >> Somehow a cvsup src got it all going. With some random luck, >> headphone is working though there is no mention of it in the mixer. >> Only the standard pcm, vol, rec, mic. Furthermore, connecting the >> headphone does not disable the speakers. I did not need to set any >> hint.pcm.0.config options to get it working. >> >> Any ideas on the lack of mention on mixer or headphone jack not >> disabling the speakers? >> > > The driver need to handle all these kind of plug in/out events, that's > for sure. > > Try this one (-> sys/dev/sound/pci/hda/hdac.c): > > http://people.freebsd.org/~ariff/test/hdac.c Sweet. Plugging the headphones mutes the speakers. Removing the headphones un-mutes the speakers. :) Nothing on mixer about headphones but that is totally secondary. :-D Will this be released with 7.0-RELEASE? Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." feature, n: a documented bug | bug, n: an undocumented feature