From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D896FC43331 for ; Mon, 30 Mar 2020 07:32:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5B3982073B for ; Mon, 30 Mar 2020 07:32:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="KtptOr7S"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L/okOLdH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B3982073B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DDFC11677; Mon, 30 Mar 2020 09:31:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DDFC11677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585553528; bh=ujJgj16Euh517R6aWGyBUzrpK5bKsNHHiLNbcxOnVWU=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=KtptOr7STyS0qqXrJXe6wLvpZKbPNBJLgxxNMCU09D38/AuDIzLxM170Gf9ZQVrQp s2vENQHf/V9tOdS0uuIOqK4mPYPvxxt93Pg8qXRMv+IbC7VHJ3nQoSwHxKqYlOhRw5 b8b2f+yNYxuj/THCdrf7hAZHNnQHnMJp/NBnXUZg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 55CE7F8028E; Mon, 30 Mar 2020 09:30:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 47103F80290; Mon, 30 Mar 2020 09:30:44 +0200 (CEST) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BF390F8028C for ; Mon, 30 Mar 2020 09:30:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BF390F8028C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L/okOLdH" Received: by mail-qk1-x729.google.com with SMTP id b62so17974766qkf.6 for ; Mon, 30 Mar 2020 00:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KgOVarC5Gb1tAd5I3fGYDa2zpN7MJ6Uuz52KOLYGanQ=; b=L/okOLdH86baVZyZ0NOr+A4oqr/SPdXBmtulKV97oshRvL1hxv4SP7BtkYpmFWi5T9 pytvP+qG2XqPxzyXXhRmbb0IjvZwy8vdBAHJ0Udb7vGbkCb+R40R18sJepqSElxnMw0W daoMppxVRNM84Ngj/sljn4j/IIMjWw6WNdA+0jiByGexLvcEqpAitq98Sf0oP+KjI2/f usySMgc6wYvubeQpoAuRgAV0Jkdl7/nPnofoZuEGP+5cVIFDg8f4PnNLppe0oKTIGhlX DlDfWfecVsmSjBgDR12yQxwBkA+9KJ/JFG2gPR6lvUra1l4Gyf6C8vt/Pyn3PI5pU41f 0HwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KgOVarC5Gb1tAd5I3fGYDa2zpN7MJ6Uuz52KOLYGanQ=; b=TddUuyVsG6t+qEqbHaG/zRA9uSpJtEs/vhQLngj59dKr00ZWZMryQfqm3evGfzaqL5 2e25amEjJEDIvmm5FuyqhfkpABSvT3j0E8n/ULzkhGA4x2kIG7GeGIA42W0h36nx47hq WkpoxRB4dMkFa6YXBJ2gCLsL2NPjmUB5shvPNqPkIrpMCCi9pOa77B8ks+e8M18j/6yY qBDq9X+pMCZ5kck6D63EHLjWnAG4P1XRB4bfsrE1JcPSHLgTlwC9kfe078qTuVOdFMPy JctLeO84TVYABDc2qzLLb6U5GxHLC6ceAY1+3vXxcto81+Ot7j2FNg46/2YMAwIHttpS JAKA== X-Gm-Message-State: ANhLgQ3n3a2RgOaeafyEZGmVWVJoF1Blb01N8sI4pWhnnZpJfwNlsXNN uc6u59/Zz7wjfVI/zvnQbykLQZ6KQJj3rQ== X-Google-Smtp-Source: ADFU+vssqFPLcGdnO2Q89jK3dr/TohKRvbQBzjgTN5nI6NDUSGI7SDZRmc1O+sT+H7rwonU+43a19A== X-Received: by 2002:a37:79c6:: with SMTP id u189mr10225793qkc.96.1585553438353; Mon, 30 Mar 2020 00:30:38 -0700 (PDT) Received: from stingray.lan (pool-173-76-255-234.bstnma.fios.verizon.net. [173.76.255.234]) by smtp.gmail.com with ESMTPSA id n63sm10078499qka.80.2020.03.30.00.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 00:30:37 -0700 (PDT) From: Thomas Hebb To: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.or Subject: [PATCH 0/3] Properly fix headphone noise on the XPS 13 and other ALC256 devices Date: Mon, 30 Mar 2020 03:30:29 -0400 Message-Id: X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Kai-Heng Feng , Kailang Yang , Tomas Espeleta , Jonathan Corbet , Greg Kroah-Hartman , Sergey Bostandzhyan , linux-doc@vger.kernel.org, Takashi Iwai , Hui Wang , Thomas Hebb , Jian-Hong Pan , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The root cause of various pervasive audio problems on the XPS 13 9350/9360, mostly relating to the headphone jack, turns out to be an undocumented feature of the ALC256 and similar codecs that routes audio along paths not exposed in the HDA node graph. The best we've had so far to configure this feature is magic numbers provided by Realtek, none of which have fully fixed all issues. This series documents the "PC Beep Hidden Register", which controls the feature and which I've reverse engineered using black box techniques, and uses my findings to hopefully fix the headphone issues on my XPS 13 once and for all. Thomas Hebb (3): ALSA: doc: Document PC Beep Hidden Register on Realtek ALC256 ALSA: hda/realtek - Set principled PC Beep configuration for ALC256 ALSA: hda/realtek - Remove now-unnecessary XPS 13 headphone noise fixups Documentation/sound/hd-audio/index.rst | 1 + Documentation/sound/hd-audio/models.rst | 2 - .../sound/hd-audio/realtek-pc-beep.rst | 129 ++++++++++++++++++ sound/pci/hda/patch_realtek.c | 49 ++----- 4 files changed, 139 insertions(+), 42 deletions(-) create mode 100644 Documentation/sound/hd-audio/realtek-pc-beep.rst -- 2.25.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFA39C43331 for ; Mon, 30 Mar 2020 07:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A03322073B for ; Mon, 30 Mar 2020 07:30:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L/okOLdH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729457AbgC3Hak (ORCPT ); Mon, 30 Mar 2020 03:30:40 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:41739 "EHLO mail-qk1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729197AbgC3Hak (ORCPT ); Mon, 30 Mar 2020 03:30:40 -0400 Received: by mail-qk1-f179.google.com with SMTP id q188so17934891qke.8; Mon, 30 Mar 2020 00:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KgOVarC5Gb1tAd5I3fGYDa2zpN7MJ6Uuz52KOLYGanQ=; b=L/okOLdH86baVZyZ0NOr+A4oqr/SPdXBmtulKV97oshRvL1hxv4SP7BtkYpmFWi5T9 pytvP+qG2XqPxzyXXhRmbb0IjvZwy8vdBAHJ0Udb7vGbkCb+R40R18sJepqSElxnMw0W daoMppxVRNM84Ngj/sljn4j/IIMjWw6WNdA+0jiByGexLvcEqpAitq98Sf0oP+KjI2/f usySMgc6wYvubeQpoAuRgAV0Jkdl7/nPnofoZuEGP+5cVIFDg8f4PnNLppe0oKTIGhlX DlDfWfecVsmSjBgDR12yQxwBkA+9KJ/JFG2gPR6lvUra1l4Gyf6C8vt/Pyn3PI5pU41f 0HwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KgOVarC5Gb1tAd5I3fGYDa2zpN7MJ6Uuz52KOLYGanQ=; b=mXZLoeR/+eJTk3Rsl1ndAHdtxRQIyhjuvsexp1azZfqwfesJSQPMh16dAndflX7vLG GdiSncMLdHLKeRsI++/TWL/oPaG5+dTBAhHKEMRupnfCBzF58146LRJ45R712CxWCaIy 9edTAJLYpSPogatT74vxHumm5g4Imlb6vmDUDp1FsFLvI3xcVEZokzYJOMQUivEAIR52 6fAplZ12a5i/8n6orRdfPmlKyvpUzEJlhMvQQJFZhKf08FDcNDTFKC4JFNPmchMdM0Dg PXim9q75skZANDoEkXuQqRbR+ZtddKMt7QaR9kia8qqrLocQomfYGITCV1HAXO85L8iT QHGQ== X-Gm-Message-State: ANhLgQ17+3A7zuGvZoHcIMaGiT+WBJk2x6rUtg8YrjSefS8r9ZHX4UuR 1AoQPYhli/09yYifwVVjLsY= X-Google-Smtp-Source: ADFU+vssqFPLcGdnO2Q89jK3dr/TohKRvbQBzjgTN5nI6NDUSGI7SDZRmc1O+sT+H7rwonU+43a19A== X-Received: by 2002:a37:79c6:: with SMTP id u189mr10225793qkc.96.1585553438353; Mon, 30 Mar 2020 00:30:38 -0700 (PDT) Received: from stingray.lan (pool-173-76-255-234.bstnma.fios.verizon.net. [173.76.255.234]) by smtp.gmail.com with ESMTPSA id n63sm10078499qka.80.2020.03.30.00.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 00:30:37 -0700 (PDT) From: Thomas Hebb To: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.or Cc: Kailang Yang , Thomas Hebb , Greg Kroah-Hartman , Hui Wang , Jaroslav Kysela , Jian-Hong Pan , Jonathan Corbet , Kai-Heng Feng , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Sergey Bostandzhyan , Takashi Iwai , Tomas Espeleta , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Properly fix headphone noise on the XPS 13 and other ALC256 devices Date: Mon, 30 Mar 2020 03:30:29 -0400 Message-Id: X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org The root cause of various pervasive audio problems on the XPS 13 9350/9360, mostly relating to the headphone jack, turns out to be an undocumented feature of the ALC256 and similar codecs that routes audio along paths not exposed in the HDA node graph. The best we've had so far to configure this feature is magic numbers provided by Realtek, none of which have fully fixed all issues. This series documents the "PC Beep Hidden Register", which controls the feature and which I've reverse engineered using black box techniques, and uses my findings to hopefully fix the headphone issues on my XPS 13 once and for all. Thomas Hebb (3): ALSA: doc: Document PC Beep Hidden Register on Realtek ALC256 ALSA: hda/realtek - Set principled PC Beep configuration for ALC256 ALSA: hda/realtek - Remove now-unnecessary XPS 13 headphone noise fixups Documentation/sound/hd-audio/index.rst | 1 + Documentation/sound/hd-audio/models.rst | 2 - .../sound/hd-audio/realtek-pc-beep.rst | 129 ++++++++++++++++++ sound/pci/hda/patch_realtek.c | 49 ++----- 4 files changed, 139 insertions(+), 42 deletions(-) create mode 100644 Documentation/sound/hd-audio/realtek-pc-beep.rst -- 2.25.2