From owner-freebsd-hackers@freebsd.org Wed May 16 18:04:21 2018 Return-Path: Delivered-To: freebsd-hackers@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 96438EF0BAD for ; Wed, 16 May 2018 18:04:21 +0000 (UTC) (envelope-from qdk@quickdekay.net) Received: from francine.edoropolis.org (francine.edoropolis.org [IPv6:2a01:7c8:fffb:2d1::2:25]) (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 EF78B741F4 for ; Wed, 16 May 2018 18:04:20 +0000 (UTC) (envelope-from qdk@quickdekay.net) Received: from francine.edoropolis.org (francine.edoropolis.org [37.97.242.148]) by francine.edoropolis.org (OpenSMTPD) with ESMTP id 401c2e42 for ; Wed, 16 May 2018 20:04:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on francine.edoropolis.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.1 Received: from Seska.fritz.box (powered-by.xenosite.net [188.240.24.123]) by francine.edoropolis.org (OpenSMTPD) with ESMTPSA id dbf0f827 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Wed, 16 May 2018 20:04:12 +0200 (CEST) Date: Wed, 16 May 2018 22:04:18 +0200 From: K Staring To: freebsd-hackers@freebsd.org Subject: snd_hda(4) pin patches WIP (was: Re: new laptop, no sound in spite of driver attaching) Message-Id: <20180516220418.1b7c25454c1d30bf2dbf9cbe@quickdekay.net> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA256"; boundary="Signature=_Wed__16_May_2018_22_04_19_+0200_tqVtnb=hcM56Zes3" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 18:04:21 -0000 --Signature=_Wed__16_May_2018_22_04_19_+0200_tqVtnb=hcM56Zes3 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable After initial success with getting the jack plug output on my Dell XPS 9650= to work (since been merged into -CURRENT), I've been busy to port some of = the pin patches from Linux to FreeBSD's snd_hda(4) driver. Apparently Intel's HDA specification is very difficult to implement correct= ly, or "we'll fix it in software" prevails: there are a *lot* of patches to= make hardware work in the Linux source... There are three kinds of patches present in snd_hda (and similarly in the h= da Linux code) : - pin patches - GPIO patches - "other" (manual fiddling in code) I've been focussing on pin patches for now, for Realtek chipsets. So if you= run CURRENT, have problems with the snd_hda(4) driver and your system has = a Realtek audio chipset, this github branch might be useful: https://github= .com/kstaring/freebsd/tree/hda_pin_fixes_realtek . At the moment, most pin = patches for the Realtek ALC260, ALC268, ALC269, ALC271, ACL280 and ALC880 a= re ported (barring some unclear or strange entries in the Linux source). I'd appreciate all feedback! --=20 K Staring --Signature=_Wed__16_May_2018_22_04_19_+0200_tqVtnb=hcM56Zes3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEQdP3BANRX65TrEyuO++4CB4086wFAlr8jsMACgkQO++4CB40 86x2IggAt9JBExUmlWGZPIziQgRXtsXGOK1kZ9ggMwrbdGCrpTpt8+1A8yM7uHFu XfBMR5Ts8IV706vG8uX/L7ZP8O/jecb+koE4io607JBQV3yTN2HWg6O4qOenIIbI VvZHqM1S5H1Oakpm7uQ+vFmZFjtKreaR2QOXmOn6HvkXciuRc5PmyHP77JIp0pLs n7YEresAcT6uSQRUjmg4GxOAERBhS3iu02KLq7Jo18YJ/8z8caw3q+yvzEz9oLqE FSM727t/XifR5MXaMKgI6cBZirn1wKinCSLOWokGytqYQkWu3uMe5DTAYw37BD9d vmD5/QIbZIYQhRWinFhsU/IN3+Yz0g== =2ff4 -----END PGP SIGNATURE----- --Signature=_Wed__16_May_2018_22_04_19_+0200_tqVtnb=hcM56Zes3--