From owner-freebsd-current@freebsd.org Thu Oct 4 12:24:37 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 F2C6910A7D98 for ; Thu, 4 Oct 2018 12:24:36 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (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 8C6189384F for ; Thu, 4 Oct 2018 12:24:35 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-ot1-x336.google.com with SMTP id q50so4780051otd.0 for ; Thu, 04 Oct 2018 05:24:35 -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=+Hq6ia/t5LESvQmniLQFKXERIrP0vfpJhMPi37wLx00=; b=JRo4RMJk/oEfrrl59pPIFuAl73UGMInNT1C4mXKM5FU1UOY/Jogj86h1uMtx2N28Ue yUsdjE3KiMOANuR5d8NP9U2UcJg54f8SIxw77SaF/Ujyrg0oNYaMco7FZqRJl7oR9+kS +bCljQ152hxbrRPIE4Pol4FOrFJKZQBMdlPuI= 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=+Hq6ia/t5LESvQmniLQFKXERIrP0vfpJhMPi37wLx00=; b=P+USCRWnKYNv/859F0JLvgU270UTRYjzSh+iTaSNM8H4V1O2e7RZuK99Kg3c22Qu2f AS63ggdvGpFzI8ofDm1w3HQPs9mZ7TyYTKQSBvmwnH/tL9BqIHuAnyZC3MyOXYm+Jzxa 3nZE/W6QG0SWwlTBgEqdVZVzwn9gjWCpHdAACzEdESfG49tmKUWawuCS2TaUrZmG7qSQ 9sn85BvtctExf3L0MDO9NO0pArtXJPlP+oU8Xdglc2DUvHslqBtQsexerLg9etyFekck ivLoLWIpS5MJ6aMRlzUiqB8U0bB9SWS4stRKzQRj6C7XWCo9F+ldzRT0ZNQTX3ZttyeL 2Eag== X-Gm-Message-State: ABuFfohoTauLXrdAmzZR0wTso6yWbuYZd6aoEh/3f+PyphgEA0XXdkUe PT4U8X3nYX8AUXXCakkdeexuLvrcnk+mk1hurCAH3T9Bjnk= X-Google-Smtp-Source: ACcGV60/dJhLolt4I0oqS4qEKKLZwlunNLZWkMV508KjHw6xM9RRKLnbrbPt1EYplLjKnHsf+tLuV7u4I4/cc14EqJQ= X-Received: by 2002:a9d:22a1:: with SMTP id y30-v6mr3314569ota.127.1538655875116; Thu, 04 Oct 2018 05:24:35 -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: <0d30cccd-352f-00cf-def6-94934be7a2ed@alvermark.net> From: Mario Lobo Date: Thu, 4 Oct 2018 09:24:29 -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 12:24:37 -0000 Sorry for the delay, Jakob. Here it is: [~]>sysctl dev.pcm dev.pcm.2.bitperfect: 0 dev.pcm.2.buffersize: 65536 dev.pcm.2.play.vchanformat: s16le:2.0 dev.pcm.2.play.vchanrate: 48000 dev.pcm.2.play.vchanmode: passthrough dev.pcm.2.play.vchans: 1 dev.pcm.2.play.32bit: 24 dev.pcm.2.%parent: hdaa1 dev.pcm.2.%pnpinfo: dev.pcm.2.%location: nid=3D3 dev.pcm.2.%driver: pcm dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch) dev.pcm.1.bitperfect: 0 dev.pcm.1.buffersize: 65536 dev.pcm.1.play.vchanformat: s16le:2.0 dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanmode: fixed dev.pcm.1.play.vchans: 1 dev.pcm.1.play.32bit: 24 dev.pcm.1.%parent: hdaa0 dev.pcm.1.%pnpinfo: dev.pcm.1.%location: nid=3D33 dev.pcm.1.%driver: pcm dev.pcm.1.%desc: Realtek ALC255 (Front Analog Headphones) dev.pcm.0.bitperfect: 0 dev.pcm.0.buffersize: 65536 dev.pcm.0.rec.vchanformat: s16le:2.0 dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanmode: fixed dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.autosrc: 2 dev.pcm.0.rec.32bit: 24 dev.pcm.0.play.vchanformat: s16le:2.0 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanmode: fixed dev.pcm.0.play.vchans: 1 dev.pcm.0.play.32bit: 24 dev.pcm.0.%parent: hdaa0 dev.pcm.0.%pnpinfo: dev.pcm.0.%location: nid=3D20,18 dev.pcm.0.%driver: pcm dev.pcm.0.%desc: Realtek ALC255 (Internal Analog) dev.pcm.%parent: 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), as > >>> documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200= 526 > >>> -- 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 > > --=20 Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]