From owner-freebsd-current@freebsd.org Wed Oct 3 17:03:55 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE76A10A6B34 for ; Wed, 3 Oct 2018 17:03:55 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from out.alvermark.net (out.alvermark.net [185.34.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DC3F85400 for ; Wed, 3 Oct 2018 17:03:55 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from c-42bc70d5.06-431-73746f70.bbcust.telenor.se ([213.112.188.66] helo=mail.alvermark.net) by out.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1g7kYz-00014l-KZ; Wed, 03 Oct 2018 19:03:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alvermark.net; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID :From:References:To:Subject:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=M9OmYN03lT4TLK6wGX6ZE3i3AhewbVMQgUpElmJ+gno=; b=Eq319/ibMWoLZa1KCumFp9RSyV a+i7LE6jIWgDNTv+bZLNYvXO7iGGSrb5czwd59/dzVOcCSUUe1G9abOotEIgdefzM52NThUrI+Ful IQLA8s0/gchHnknFHD4PWvY4LiXi8lwFESDktW21WlPWWujwCuF+egvORjSdzL8/D/aR67IJM4vBx j+ivZzHLMwqCBBegbVFXr6oW1YCXcjZNw0gLb+W5w5scv7yQ31uTC2p/y5e+/PsRAbYrnRWDC0akV CwZUDkw2srf6YdNOUaDU3YfuDAZV62+lGeuVK8w02WDLsF/kOv0/zV4uICsX4alYSTbJrUZkszelL 9Bk+I3GA==; Received: from [192.168.67.33] by mail.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1g7kYz-000Bp7-13; Wed, 03 Oct 2018 19:03:53 +0200 Subject: Re: Sound issues with Dell Latitude 7490 (kabylake) To: Mario Lobo , freebsd-current@freebsd.org References: <85518f55-20a8-f534-7266-a9e847912afc@alvermark.net> <596a89fa-d7a3-1d39-d296-e07359cb487f@alvermark.net> <20181003130645.GH1118@albert.catwhisker.org> From: Jakob Alvermark Message-ID: <934ea591-3c39-7fa5-f77e-07e35c9bb402@alvermark.net> Date: Wed, 3 Oct 2018 19:03:52 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2018 17:03:56 -0000 On 10/3/18 6:19 PM, Mario Lobo wrote: > Em qua, 3 de out de 2018 às 10:10, David Wolfskill > > escreveu: > > On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote: > > .... > > Do the headphones work with this patch? > > > > Index: sys/dev/sound/pci/hda/hdaa.c > > =================================================================== > > --- sys/dev/sound/pci/hda/hdaa.c    (revision 339076) > > +++ sys/dev/sound/pci/hda/hdaa.c    (working copy) > > @@ -5034,11 +5034,13 @@ > >           pincap = w->wclass.pin.cap; > > > >           /* Disable everything. */ > > +        /* > >           w->wclass.pin.ctrl &= ~( > > HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE | > > HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE | > > HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE | > > HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK); > > +        */ > > > >           if (w->enable == 0) { > >               /* Pin is unused so left it disabled. */ > > .... > > Thank you!  This addressed the long-standing (Reported:  2015-05-29 > 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as > documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526 > -- now updated to reflect the fix. > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Trump is gaslighting us: > https://www.bbc.com/news/world-us-canada-44959300 > > See http://www.catwhisker.org/~david/publickey.gpg for my public key. > > > Thank you #2 !! The patch fixed my weird headphone sound too on > 11.2-STABLE! > > I still can't make the plugging-in switch work but it's ok. I created > scripts for that with Can you send the output from 'sysctl dev.hdaa'? Jakob