From owner-freebsd-current@freebsd.org Thu Oct 4 13:27:12 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 2E1D910AA86A for ; Thu, 4 Oct 2018 13:27:12 +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 BBA4896A83 for ; Thu, 4 Oct 2018 13:27:11 +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 1g83en-00025I-Bv; Thu, 04 Oct 2018 15:27:09 +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=0GrdqDPyZsqHKcqkbzO608XNXcsnBxgLOexQRKLPUs8=; b=A1+7AG8h5XvOPRYJuwoLNOSY33 /4PHHoWFE43Nrq7mhQGp2rBDhiQ5E/vNwVkBq9zUgfeY0C0UuSb6BtRC0HSF0VRaohosexXNe3ewz Z+fhpNsiXa35+HSTonPBkayKrBbavbCf3SeQlUDphfe4kv+iOMnPoC3hiOi+33WU/3DnDgueZ6Jmc HAQ5x/1rHY+bvuvnpzQuND8ZPMHX4MVYcGmkTATboBnxLQrpzWfKGRqUzcCF6BX63rbQHQF/tPbPZ nDPvB3SVj4kuWJa84mAKR316cLxOW0WEyvahuevB31ja8Zg59XbdXtHFWpX533l9QmvE/Ai/ax8Af JtDbV07w==; 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 1g83em-000N5j-Rw; Thu, 04 Oct 2018 15:27:08 +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> <934ea591-3c39-7fa5-f77e-07e35c9bb402@alvermark.net> <0d30cccd-352f-00cf-def6-94934be7a2ed@alvermark.net> From: Jakob Alvermark Message-ID: Date: Thu, 4 Oct 2018 15:27:08 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.2.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: Thu, 04 Oct 2018 13:27:12 -0000 On 10/4/18 2:24 PM, Mario Lobo wrote: > Sorry for the delay, Jakob.  Here it is: > > [~]>sysctl dev.pcm > Em qua, 3 de out de 2018 às 18:32, Jakob Alvermark > > escreveu: > > On 10/3/18 7:39 PM, Mario Lobo wrote: > > Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark > > > > escreveu: > > > >> 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 > >> > > By the way, my note is ACER Aspire 5 A515-51G > > > > Here it is: > > > > [~]>sysctl dev.hdaa > > dev.hdaa.1.reconfig: 0 > > > Could you send me the output of 'sysctl dev.pcm' as well? > > Thanks, > > Jakob > Ok, try this: sysctl dev.hdaa.0.nid33_config="as=2 seq=15" sysctl dev.hdaa.0.reconfig=1 It should make it auto-switch when you plug in headphones. If it works put this in /boot/loader.conf to make it default on boot: hint.hdaa.0.nid33.config="as=2 seq=15" Jakob