Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8972821rwp; Wed, 19 Jul 2023 19:39:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHx0JwA1mVvsI+zUncsu/IsGC3QHdmG+Dl5TllCw3u+whqYZXu++j+UNf2xZ3oblVhkbhlA X-Received: by 2002:a05:6870:f587:b0:1b0:2f70:15a5 with SMTP id eh7-20020a056870f58700b001b02f7015a5mr249603oab.52.1689820767107; Wed, 19 Jul 2023 19:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689820767; cv=none; d=google.com; s=arc-20160816; b=gRReR6Ly9PaCQdBhgUB+cZFsvnD2oYnLY2Qk36UbAyp/e7Of/w1LFTAh5HBOSN2DCP lJNv5MFw6dwWdFkOJIgK2OnuGkYqLhIcfal+Pdmxr/fdNYaJI4Xh1CspEJYG+046Iwgl HEDYSWUKr5Rfg7seOr6qYKj2nE7A7Ek/Tinnrkv6dwqKv99VIJmJeR6mcJVXiKqT6ro/ CMTFKdM4fn1CshO6PT/iwtsEFODPkPSRf85kkVHlsYUoz4Vz9A6vyb4i1E7WWXfwdykz GTz2YtY+z9sIMzVwwKY/LKx4qZbjQsyvClLnVtKvc7txRJ4PrcBQGui1wUW7mekObD0b QwzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vl39SjEBBiEHeU35YyItlKLjlmuTsJZ5BIP+awmUSUU=; fh=KdDDbuFo7rLrLTwblsDaf4BukSjQiHzTxQZQz4KCW4E=; b=qb0nUM5RwcgAfsmUPNJctZ0l4TxOAT9Q/H8++ykDnOunZcwEcBUdFIIvgXVUbLa5Uq /kOrHEwrhrxkUkjQJYhyMpJ0gLiTUd7zNWBiGuL0XeaUKBtl96+9l+0I3kB7vy5/f1KG /W+DjIovEKE3/kNtrhBXc5tQ0KNRJnumGLQMEKp6My3N8f6/smi2d31ZwAcCJS6QylMz QOq4+EM9jOsVwT39xNJCSKnf4M5x/ZkiOQkeVHY1doFaKG60mmZGmlmw9CA6Oz/IZFoi ZxBFJ6zaRtFbD37RQ69gFCsJlLMob+rkmg6dIK87sfPoJYke3egflVkqonWgjIzGuyDi 8Vvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nuCKAiKA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a631b55000000b0053f2551834fsi4477288pgm.552.2023.07.19.19.39.14; Wed, 19 Jul 2023 19:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nuCKAiKA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229797AbjGTCDZ (ORCPT + 99 others); Wed, 19 Jul 2023 22:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjGTCDW (ORCPT ); Wed, 19 Jul 2023 22:03:22 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA89F2107 for ; Wed, 19 Jul 2023 19:03:19 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b70bfc8db5so3322221fa.2 for ; Wed, 19 Jul 2023 19:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689818598; x=1692410598; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vl39SjEBBiEHeU35YyItlKLjlmuTsJZ5BIP+awmUSUU=; b=nuCKAiKAZHEPzdQuvsihNK2guhH9LSMV+QkCdAgcUL+ZAOgqWmx49M0o7aoN/j1D4U uv0nqL/dssH0wBjCVs2HgqQaJl80gHVqSJ8Q9tLsuwV8WjZ9NO02X/UwTvsbvtUBhMS2 fmjKm+eBFUOgyYu0JjyHwjT9EKNFu6lrk11aow5E44BUcJUDe+j2tEPM0Uhgu6PkUZMw l+SimakqjaCHw1mHnPGgWaCEuW7cDf6HtPYEHw559awZkM1SzKX2ZCEDlPXGBkoS6H0l igYqzhRwwiyN3mVqiPBkDtETUllv6E08srnvcn6+5z18xY+xq6fFXWcLCwxRjZww3q2O Gdpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689818598; x=1692410598; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vl39SjEBBiEHeU35YyItlKLjlmuTsJZ5BIP+awmUSUU=; b=M3C1c3nPpJZqai5P9v/L8nOSEz7tpXaJSrIofnvTMatJwtTn+gMsxQCbFdzYMLSrHq D5U7cf7JcBfFHSqqUuwnRFKGkh8PrVdnhfeBaR/vjn+In8rLWeZvWOsbuJjoTi0p3bc7 lXmRX5nf/2V+W9v/zQsB5CAmoRqsf3wlU1t+f87siwp2RsOdWL3X9zOJJO829xFqTEBu d+TNozS72v8Pssq0dSJD50la8EGVdCr5eWFKOC3ANoPzIfhRm/0l4NwXlRq34jaWWs/r LULIOtf67GxzWGhMEhSUKoqYLm5VOgtdOhsOIKlSqlp3xsOwJKYlPkQxIVWdnxHmXLIc vK4w== X-Gm-Message-State: ABy/qLa89Gitpuva14t1fBW4IAQwBpIA+zPR5OnT7j0pYR0RNY/Q71pb U4XPy6aTz/V6rJBGxXnp1AwAb/JozqG8tTUh5dE= X-Received: by 2002:a05:651c:14b:b0:2b6:d63d:cc1e with SMTP id c11-20020a05651c014b00b002b6d63dcc1emr1251563ljd.51.1689818597920; Wed, 19 Jul 2023 19:03:17 -0700 (PDT) MIME-Version: 1.0 References: <3ee79b53-5c1b-1542-ceea-e51141e3ab74@gmail.com> In-Reply-To: <3ee79b53-5c1b-1542-ceea-e51141e3ab74@gmail.com> From: Racinglee Date: Wed, 19 Jul 2023 19:03:06 -0700 Message-ID: Subject: Re: 6.4 and higher causes audio distortion To: Bagas Sanjaya Cc: Jaroslav Kysela , Takashi Iwai , Linux Kernel Mailing List , Linux Regressions , Linux ALSA Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 15, 2023 at 3:56=E2=80=AFAM Bagas Sanjaya wrote: > > Hi, > > I notice a regression report on Bugzilla [1]. Quoting from it: > > > I have a Lenovo ThinkPad X1 Yoga Gen 7 running Arch Linux. Linux 6.4 an= d higher, cause audio distortion. Sometimes, this occurs to the point that = nearly nothing is discernible. This carries over to wired headphones. The i= ssue occurs on the entire mainline 6.4.x kernel series and also the 6.4.3 s= table and 6.5 RC1 kernel, which are the latest at the time of writing. The = issue occurs on both the Arch distributed kernels, and the mainline kernels= . > > > > Linux kernels 6.3.x are not affected and neither is the 6.1 LTS kernel = series which is what I am temporarily using. On Windows 10/11 too, the audi= o works as it should. This indicates that my hardware is not at fault. Blue= tooth audio is not impacted from my testing, either. > > > > The distortion doesn't start immediately. It either occurs automaticall= y after a random amount of time, or when I increase/decrease the volume, or= when I skip forward/backward to a section. In order to stop the distortion= , I have to either increase/decrease the volume until it stops, or skip for= ward/backward until it stops, or restart Pipewire via systemd, however it s= tarts again due to one of the aforementioned reasons. > > > > At the time of this report, I am running Pipewire 0.3.74 and Wireplumbe= r 0.4.14. This also doesn't seem like a Pipewire/Wireplumber issue, since t= hese same versions work fine on the 6.1 LTS kernels without causing any aud= io distortion. > > > > I wrote about this on the Arch Linux forums, too, and seems like at lea= st two other people are facing this issue. Here's the forum post: https://b= bs.archlinux.org/viewtopic.php?id=3D287068 > > > > Furthermore, I filed a bug report on the Arch Linux Bug Reporter, where= they suggested that the issue is a kernel regression and should be reporte= d upstream, here. Here's the bug report that I filed on the Arch Linux Bug = Reporter for anyone interested: https://bugs.archlinux.org/task/79081?proje= ct=3D1&pagenum=3D10 > > > > I have attached the dmesg outputs of the mainline 6.5 RC1 kernel. > > > > Here's some audio related hardware information from my device: > > > > inxi -A > > > > Audio: > > Device-1: Intel Alder Lake PCH-P High Definition Audio > > driver: sof-audio-pci-intel-tgl > > API: ALSA v: k6.5.0-rc1-1-mainline status: kernel-api > > > > > > pactl info > > > > Server String: /run/user/1000/pulse/native > > Library Protocol Version: 35 > > Server Protocol Version: 35 > > Is Local: yes > > Client Index: 138 > > Tile Size: 65472 > > User Name: tux > > Host Name: NSA-Terminal-4 > > Server Name: PulseAudio (on PipeWire 0.3.74) > > Server Version: 15.0.0 > > Default Sample Specification: float32le 2ch 48000Hz > > Default Channel Map: front-left,front-right > > Default Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic= .HiFi__hw_sofhdadsp__sink > > Default Source: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generi= c.HiFi__hw_sofhdadsp_6__source > > Cookie: f9dc:5e7a > > > > > > I can't figure out why this is happening. Kindly ask for any more infor= mation that is necessary. Thank you. > > See Bugzilla for the full thread and attached dmesg. > > Anyway, I'm adding it to regzbot so that it doesn't fall through > cracks unnoticed: > > #regzbot introduced: v6.3..v6.4 https://bugzilla.kernel.org/show_bug.cgi?= id=3D217673 > #regzbot title: PipeWire + Wireplumber audio distortion on Lenovo ThinkPa= d X1 Yoga Gen 7 > #regzbot link: https://bbs.archlinux.org/viewtopic.php?id=3D287068 > #regzbot link: https://bugs.archlinux.org/task/79081?project=3D1&pagenum= =3D10 > > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=3D217673 > > -- > An old man doll... just what I always wanted! - Clara Updating regzbot after newer findings and determinations about the possible culprit commit #regzbot title: 6.4 and higher causes audio distortion #regzbot introduced: v6.4-rc1..1bf83fa6654c https://bugzilla.kernel.org/show_bug.cgi?id=3D217673#c5