From owner-freebsd-current@freebsd.org Thu Oct 4 17:11:09 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 9374010B3531 for ; Thu, 4 Oct 2018 17:11:09 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2BE2D7A0AB for ; Thu, 4 Oct 2018 17:11:08 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-oi1-x230.google.com with SMTP id s69-v6so8089084oie.10 for ; Thu, 04 Oct 2018 10:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+ZMlyjTpvdjcuZFZ60kMXJP3hYWL6ROjmF4/jjxQrec=; b=aOoeftmEVqOWOIhVn3kWfiAPiVLceSRrkiH6WLMUrkyqM905lQz1ogfq1b5dLO4Hqm nxx1L4WfKkGGQscatEZBaSr8iB3ttQFqJOwt6pnJcQoyUGsRnaSGhM1XhEd/70yMb3Li Kfj4hHDj9MHubz7oPETp18vd0cXngdHD3meBo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+ZMlyjTpvdjcuZFZ60kMXJP3hYWL6ROjmF4/jjxQrec=; b=ElMtI3GoL0KGMsr+j0QqLdgskDUSINjOC35gP4s4vQy1uKkYbdg773CIcaCX+fOzdJ PqzxU4qFVTUiq0ZR4DIwaktnElxVb6ScqONPISZiev2r2UferhIPeJDdE84A/Bk827+/ Jne9a0EUHu1Zun8ZoPWbUoY877gEh/K+EMHxSWQRoDojhG+CWmYH3S6ai0wqsdKNDXnX SN5eo2HGMc8HyknhuurAD++t0TjFxnHH6Mxbv4xJOVrmzJaVUCYzzTmWld5SUJ/c67/b sisYU3WUJPQULWJlMzDwnhv9lD0nCx2Y7oT+q520AoylgEpSqhg0MNixJlWZGM4FQB0Y zz7Q== X-Gm-Message-State: ABuFfoiVQFCHzrR1eOPtsEkDphyMTXAVwZkk3WNNPMtKWNJnBY8ZLaM+ eizT8rG3pyC258Eb4hgIXdJki3i33qhwWd7oqH/RnA== X-Google-Smtp-Source: ACcGV637bwHMI/0BJfZEAj5uPvZz2iqgwFIytAddcJqUG35ggra6FAGb1XW5r9zc/CtK3oFCXoscxTMWhgC2xsxPuHM= X-Received: by 2002:aca:ddc3:: with SMTP id u186-v6mr3253275oig.204.1538673067376; Thu, 04 Oct 2018 10:11:07 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Mario Lobo Date: Thu, 4 Oct 2018 14:11:01 -0300 Message-ID: Subject: Re: Sound issues with Dell Latitude 7490 (kabylake) To: jakob@alvermark.net, freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 17:11:09 -0000 Em qui, 4 de out de 2018 =C3=A0s 10:27, Jakob Alvermark escreveu: > > 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 =C3=A0s 18:32, Jakob Alvermark > escreveu: > >> On 10/3/18 7:39 PM, Mario Lobo wrote: >> > Em qua, 3 de out de 2018 =C3=A0s 14:03, Jakob Alvermark > > >> > escreveu: >> > >> >> On 10/3/18 6:19 PM, Mario Lobo wrote: >> >> >> >> Em qua, 3 de out de 2018 =C3=A0s 10:10, David Wolfskill < >> david@catwhisker.org> >> >> 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 >> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >>>> --- sys/dev/sound/pci/hda/hdaa.c (revision 339076) >> >>>> +++ sys/dev/sound/pci/hda/hdaa.c (working copy) >> >>>> @@ -5034,11 +5034,13 @@ >> >>>> pincap =3D w->wclass.pin.cap; >> >>>> >> >>>> /* Disable everything. */ >> >>>> + /* >> >>>> w->wclass.pin.ctrl &=3D ~( >> >>>> 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 =3D=3D 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), a= s >> >>> documented in >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200526 >> >>> -- 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=3D"as=3D2 seq=3D15" > sysctl dev.hdaa.0.reconfig=3D1 > > 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=3D"as=3D2 seq=3D15" > > Jakob > YES!! Thanks a million, Jakob! Based on your previous answers, I tried to figure it out for myself and tried this: dev.hdaa.0.nid18_config=3D"as=3D4 seq=3D15" dev.hdaa.0.nid33_config=3D"as=3D1 seq=3D15" which obviously didn't work. When you can (and if you wish to), could you elaborate on what as=3D and seq=3D do? Again, thank you for your time to solve this for all of us!! Count on a free beer here in Brasil from me!! --=20 Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]