Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2596342ybb; Mon, 30 Mar 2020 09:10:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsztxk5bABBRxdio6prNSJ9FPUFlwXpSxUZo4FjOg+5JNiqhXyueUrkjr4iR4jGMOJqsa8J X-Received: by 2002:a54:4797:: with SMTP id o23mr65387oic.12.1585584638185; Mon, 30 Mar 2020 09:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585584638; cv=none; d=google.com; s=arc-20160816; b=THrPk2O995C7OQ8LiEFU4oiT4vGaLAtmlvRsKvgtrk1m2xqSq1Wrt6wMMWgN9ftISn kuallpP84wBcZ3Rif5n8JUjM21jRWlG2Uk2ZXcEl29KChUaiReoBWgUL09JzY2C6aQGT 08Uc/A5d+NZXG2gNLRKTBK6f564hinpSAROALSimeW4dHdWiQzHaqdHTF2D9Zc+oEJol NMX9ETTMZ1r/hxBFXhqHQGOfv+SHIE3pc0QMPHzhwx/i+heNeVNtXD36awTEpICNpFKv dGa0M09iG978PAXt6Z+8clddOIYLYqRjhuvytm+yyCLC+c81sosfrwqK7zvPDNY/dV3d c0ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UtnZua9sH2Iz7Lmw4x/rdjkPSeBWQLU1aJEbCn/TIY4=; b=nTlyD6f0+RiOmwJI7s91xiVOhIYPDib4SlDYSKs+3SUav6QGG5gbOCkTNbYZ/HS91H 2vjVOeXe3IkJZ+PP6zre54myo9JAfjhl8/yE+Gag9/zYCN9ObQX9BumtuhiZqNocldiA K+bdcCRoafef9+ge8kV36nyll4kHpCMGMQKXczPFE3zsO/VqFOFDiIp4aLQMCNa4/73I +zk3TwkINMcjcsLTT4kMFg9IAdCb7qjws736ggPWU+kIMepK2yioO4s/1iydDQT9SdVK lof72RlkN4xJua1Jtx73t/+C24pcJJzSYZn6bugttmCov+Lxd6vCmfhI6kSw60qTMsW6 RoYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bpq7LsqJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c125si6708308ooc.50.2020.03.30.09.10.21; Mon, 30 Mar 2020 09:10:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bpq7LsqJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729954AbgC3QJy (ORCPT + 99 others); Mon, 30 Mar 2020 12:09:54 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:40058 "EHLO mail-qk1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727890AbgC3QJx (ORCPT ); Mon, 30 Mar 2020 12:09:53 -0400 Received: by mail-qk1-f182.google.com with SMTP id l25so19567434qki.7; Mon, 30 Mar 2020 09:09:53 -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=UtnZua9sH2Iz7Lmw4x/rdjkPSeBWQLU1aJEbCn/TIY4=; b=bpq7LsqJ6UNpk2gk9z/Tl5PrVf64JY3bOJ3Di3Vg97FIDygLrz9nK6Re0fdMXazZ/F /Beo8zSsS2BXoyBYZNu7q7BPgBTyt50DWidVdeYzEcDjuOm3vY1+2e2yn4Fz4pDvOkL3 qFy+kqIEqFDzZ3UY6tNcSpKKAdMgHGShtno8lRa1Aon8joF8bE4L8U/jWa87OopMVxMB s1BY0r5hOMQNlZYVEyFIRYunxexRpqrPzvrcTal6T+FcFEQkcVRfac1hZV7VaKXzVItQ hTNT24N/FOcfA2USXvDPc3RAlHF5UnoClWLLgWHSlPgs3bE0zInO6J8ieXT/867NfS2t hPrQ== 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=UtnZua9sH2Iz7Lmw4x/rdjkPSeBWQLU1aJEbCn/TIY4=; b=kQdaC5u3V6p0UShiBqgAkBSQ3safHT26i/FkHk2F8+q5e6uKInuvqxzzuZa0RYARk2 3cnHR+HgyObhgVq6aL41MipRRzxMUAn4taRz46ml3nWVtO790G6wrnucy3L4+QrmImh3 XVORHFYOZVEV48mdXT0iMVTzlZD6c1FYyVGv7ObQb2vWbFW3r5KaxHDLJvsNyJr/uoI+ 7n9CBMSYYkZ83jp7R8PPq39o4rI2CHGF6WlT+7qN1vU5fO6e654LGURjOtadAx1eKo7J zfQuckC3icbzLjTKi9G1jqGfO0gNcav+7IogX0Z4bhqZfRuf1hQSnqfTWCtR4es8IxO/ eJeg== X-Gm-Message-State: ANhLgQ02+tD/JvVznnZsVE9z3CXYz8tD49Bia+EZMh5Q0+tv1A1sZOJl UvJafW+9wGtydzSdrhS2bHxrAMysBr386Q== X-Received: by 2002:a37:8044:: with SMTP id b65mr727931qkd.238.1585584592639; Mon, 30 Mar 2020 09:09:52 -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 z18sm11789091qtz.77.2020.03.30.09.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 09:09:52 -0700 (PDT) From: Thomas Hebb To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, 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 Subject: [PATCH v2 0/3] Properly fix headphone noise on the XPS 13 and other ALC256 devices Date: Mon, 30 Mar 2020 12:09:36 -0400 Message-Id: X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. Changes in v2: - Change fixed value from 0x4727 to 0x5757, which should behave identically, on advice from Kailang. 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