Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1301103rwr; Wed, 3 May 2023 13:05:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5P3D1guOyxG0spKb5Ews49HPnhrEjYBtotyt43SeQMBme6AFEmsXflDkrhpb/ELtqBUpOx X-Received: by 2002:a17:902:db05:b0:1a6:9f09:866d with SMTP id m5-20020a170902db0500b001a69f09866dmr1367818plx.61.1683144342703; Wed, 03 May 2023 13:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683144342; cv=none; d=google.com; s=arc-20160816; b=v7Kh6UcXDWsiM4YQ9z+RUhUtBrVr2idvuPyagx34UovoT0IjPh/fdQWveuBvH9hMQp oXGIoHdnVbMg1Sin3lRs847LGBLvjH+OAqsTED5ifhCBqKyJia8oqGf7OHQasS7MkB1e NeDA0syJCUJbNy4Ag/dtS+h9e35j8k65OL7a/Ja4p7/vS5MlJI1bP8/Sv/cUR6gxxKha 5Um6VjZJ4wkxd/pEHNsuHslGfz5ofKP2CK87nYvtpgwrwn0oyz92xO2TMm0VHtPgsDUI vTZTpLbkUtOo0Z6MsjcHAEYVNuhjjc7GJ4xKjpv2t8AjREaHvCKQLxBE/SrCB0oLjZqP BBHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=nxXnn4np9biDg+bexTXR7vguUAEj19fdAgvIesNvZ1U=; b=CDrqtvjUkggKd6J/F28FgzSaLtGY1qMVgz0UPCBYs9+ZAE74xaI2KiU5Mg2mERn84c K6KVFXQ9K+BdtCQc+93oVE2EwOuDi9no2yMwfbapamVxwwliXR6voP5wDhxEz3fgX+Mx kxXqkuKJWKNJWRQETufl5Uo62XrIBLXrZPP76ROSDTMsl+aBvvD4nhrw7+X6iBdd1uJN cL2LDcgBG0730wRm3CBL9Js5Z0fXvrjKFSQADtDCjzas4BjhcVSEO1PsTC8xxg+xMVLn KcQm1qAGtd/Hsr1w6JWxdudjo8cRerCFuMmyau6xB/eDjLbuhyQSq1GT49aphrPKr7cS Vieg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170902e80900b001a979141a24si2148791plg.214.2023.05.03.13.05.26; Wed, 03 May 2023 13:05:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbjECUA5 (ORCPT + 99 others); Wed, 3 May 2023 16:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbjECUAv (ORCPT ); Wed, 3 May 2023 16:00:51 -0400 Received: from bluemchen.kde.org (bluemchen.kde.org [IPv6:2001:470:142:8::100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3C50869E for ; Wed, 3 May 2023 13:00:42 -0700 (PDT) Received: from ugly.fritz.box (localhost [127.0.0.1]) by bluemchen.kde.org (Postfix) with ESMTP id 3C63B23FA3; Wed, 3 May 2023 16:00:38 -0400 (EDT) Received: by ugly.fritz.box (masqmail 0.3.4, from userid 1000) id 1puIeT-40E-00; Wed, 03 May 2023 22:00:37 +0200 Date: Wed, 3 May 2023 22:00:37 +0200 From: Oswald Buddenhagen To: Jaroslav Kysela Cc: Takashi Iwai , Jeff Chua , lkml , Bagas Sanjaya , ALSA development Subject: Re: linux-6.4 alsa sound broken Message-ID: Mail-Followup-To: Jaroslav Kysela , Takashi Iwai , Jeff Chua , lkml , Bagas Sanjaya , ALSA development References: <87wn1pmm4d.wl-tiwai@suse.de> <7b80ef1e-23dd-c523-0663-4bf311c1823a@perex.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <7b80ef1e-23dd-c523-0663-4bf311c1823a@perex.cz> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,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 Wed, May 03, 2023 at 09:32:02PM +0200, Jaroslav Kysela wrote: >On 03. 05. 23 18:10, Takashi Iwai wrote: >> The dmix uses the silence_size=boundary as a fill-all operation, and >> it's a free-wheel mode, so supposedly something was overlooked in your >> code refactoring. >> >> Could you check it and address quickly? I'd like to fix it before >> 6.4-rc1 release, so if no fix comes up in a couple of days, I'll have >> to revert the change for 6.4-rc1. > >I would revert this patch. > It seems that this "do silence right after the playback is finished" > mechanism is not handled in the updated code (and I overlooked that, > too): > no, there is nothing wrong with the code _per se_. what's happening is that the dmix plugin doesn't update the application pointer, and somehow gets away with it. that means that it would have never worked with thresholded silencing mode, either, but, well, it uses top-up mode. anyway, this means that we need to revert the code path for top-up mode, which means reverting most of the patch's "meat". i think i can do better than your proposal, but not today anymore. fwiw, the echo results from the plugin apparently summing up the samples in the buffer without clearing it first, that is, it relies on the auto-silencing doing the clearing, which the patch broke under the given circumstances. rather obvious in retrospect. regards