Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5024349rwr; Sun, 30 Apr 2023 21:32:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IJVGMgb234n5ChFTf6xG+eAMO5ENA40AQspRiAYZgJav7gIK/00M5iy5FZhgB/jtHn1rw X-Received: by 2002:a05:6a20:e19b:b0:ee:aa9e:945a with SMTP id ks27-20020a056a20e19b00b000eeaa9e945amr14083472pzb.26.1682915545172; Sun, 30 Apr 2023 21:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682915545; cv=none; d=google.com; s=arc-20160816; b=g/mIt9QM36hLjnG+OOJFVvsSspKdG6xf3a8ZDm1US7AiivZUPgMTn2k4xadeNaax/s 8sQtlLpTXVm3GarPwX/NcrKSjKhXybcFAp8dgILQI9lwGlP/F1LqygQbNnrcFtHNwu7U d3sdR+yoJ+KJ+kXYwYPvFQ2973qthdY7pg0ywjrUmJOAOsifNTvcaPmp+dn0kQegc7Qr n3x3NlyH9jNFGrlbVsAfC97dg1JPQUqq16eyC/nF8yG+rPiK+fBTzlAXQmpX6MkYv9tk TszrErCvVk1QoxwQuRZFPKk0IE+B+bhJhBYS/1QYmcVVoN83rbzGzp2GRmbLy/o32lV8 fhBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=wlcWHBp5U9pKjvAervbggqWQHpGZVcQMASIP1AoxR/I=; b=AETr5KThhBbGEUbWD0iQsl9xaFSDYqLhJ8gG66hOZoTVKF4Nmewkp6JZA6GzE6Xthn wfhw6CdvbjmWYu4E4CfNBTZriAEJ9jGuTsGtfjJOY01dqayOU4W3QqiYX4es3hULz2lh pm/VtyF4PJujOv5w40ZJPeM+lxV7oxGxpPRVK75t6uyrcaJDSS3raZnk7WTf27edapRF rc0hdtFRPmj9Y9Xx+fOqNxpGKIzmkyVxNHF1pRZYUJVFG7VaNvD9LAnYuipKde6M0meQ 0qvc45KuyMYXIsIYNBVKRmJsDnqWSmbon4pnWuFftd1EDI+Kf2dPYDAvBto3Mu4U6FFE THEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=myzwtOMY; 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 w14-20020a1709027b8e00b001ab012a1ba9si2370pll.402.2023.04.30.21.32.14; Sun, 30 Apr 2023 21:32:25 -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=myzwtOMY; 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 S229785AbjEAECk (ORCPT + 99 others); Mon, 1 May 2023 00:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232307AbjEAECM (ORCPT ); Mon, 1 May 2023 00:02:12 -0400 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715B694 for ; Sun, 30 Apr 2023 20:59:24 -0700 (PDT) Received: by mail-ua1-x92b.google.com with SMTP id a1e0cc1a2514c-77d0fcbce6bso247666241.1 for ; Sun, 30 Apr 2023 20:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682913563; x=1685505563; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wlcWHBp5U9pKjvAervbggqWQHpGZVcQMASIP1AoxR/I=; b=myzwtOMYaSxjDGrCGSFKSSggOzmKMiDAQmNPFOrf7hvHNMc7q1Q2liwfV7n1RhjWeF jIvZ8NzSDF9ACaAsA1KgIoNHFafy2nMAgzsu5EIpPZMcRwYy10ty6YP6KmRJCZEGz+NS YjWrUpjw36+2Rw9w8OtuSJjimgyT/E8boY7z6TXqnyYmfYugsdvL/Vgt/T/FfhepoIMv VHttEqVRgaKPtnRBQJR+5j5YjAT3FGdOCt2Gj1z7v5tY5FLgpq2GbFgaprMaXa8AlyMx k9VFxnfPQDEyuWbaElSy7fHIHljDiR+L+5D00yjZFazlvp9lUzhaVKe2tUShydns0Eyu a9Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682913563; x=1685505563; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wlcWHBp5U9pKjvAervbggqWQHpGZVcQMASIP1AoxR/I=; b=iJJ8WAHql9zDnEUXraACQcxul4NAbQFQCEbRyenFpwuo6Esf+UpdcZzzn5XG8zlOVp SGgzm86gDdfoyhq7wiFBKHAvEFsQLZ+h9Yu+TTr7iBn5yvN28uF48M+dr14+dDwpFrts zNNlKqpbNE/giUmYeUtcGTT4Hw+VGJiy0/ARYjr0gUoxjti/+1HYf5EfDHLoflgFStZh R7IcwT4SlB3ipLsCk0dPdPDy1SNBHQd6xzRSrqKcUbgQhHG5Vzums9A6qEV8w85jt/Kc LeOwP49oWLsoe9gxZP7D3c3SPzsqWeqeVMBUs6rvAZNqmwUQXCcwhnq+vRkdUGDXkQni rlLA== X-Gm-Message-State: AC+VfDzumJol6zh8eGgWUDlFvtYIFoJBliH17KOPkGqnIXfz/fb1FdST mU8UG3uT+vY6/p8psY27bn3hfDZ9Z2mtmJBJ1Cl+rsmu8GU= X-Received: by 2002:a1f:4d81:0:b0:40f:f3e1:53c with SMTP id a123-20020a1f4d81000000b0040ff3e1053cmr3624176vkb.1.1682913563055; Sun, 30 Apr 2023 20:59:23 -0700 (PDT) MIME-Version: 1.0 From: Jeff Chua Date: Mon, 1 May 2023 11:59:12 +0800 Message-ID: Subject: linux-6.4 alsa sound broken To: lkml , Bagas Sanjaya , Oswald Buddenhagen , Takashi Iwai Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Latest git pull from Linus's tree ... playing a simple sound file will resulted in a lot of echo. Running on Lenovo X1 with .. 00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01) I've bisected and reverted the following patch fixed the problem. My best, Jeff commit 9f656705c5faa18afb26d922cfc64f9fd103c38d Author: Oswald Buddenhagen Date: Thu Apr 20 13:33:23 2023 +0200 ALSA: pcm: rewrite snd_pcm_playback_silence() The auto-silencer supports two modes: "thresholded" to fill up "just enough", and "top-up" to fill up "as much as possible". The two modes used rather distinct code paths, which this patch unifies. The only remaining distinction is how much we actually want to fill. This fixes a bug in thresholded mode, where we failed to use new_hw_ptr, resulting in under-fill. Top-up mode is now more well-behaved and much easier to understand in corner cases. This also updates comments in the proximity of silencing-related data structures. Signed-off-by: Oswald Buddenhagen Reviewed-by: Jaroslav Kysela Link: https://lore.kernel.org/r/20230420113324.877164-1-oswald.buddenhagen@gmx.de Signed-off-by: Takashi Iwai