Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3527424pxf; Mon, 15 Mar 2021 11:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4B+vi86ZRiM0K3sWLoIgmocWvCI8I5s00CjI0J+cj6ll2QvFMIqBoKpqlAoV02dyjmd5M X-Received: by 2002:a17:906:4150:: with SMTP id l16mr25477819ejk.90.1615833160783; Mon, 15 Mar 2021 11:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833160; cv=none; d=google.com; s=arc-20160816; b=zdybt4fOB420zI6M4VgjwOOt9rK7ZKLP5iTlqkB4A0PIKWh8HfOXGRoYk74zqZr+QF WkcZwpK5N1Mak5SnXYH7JwkxoceYnnOukIIHKuijp8DraxME4UcQuctUfxReVlDUW5pD 7nzOB41l1JD+ch2RFDxdWgGoWYktmV4Cdvs0IsltVaGmk3+zW7Y9hAkxEdGHR5Up31KY 3AXGE21f8asRwN9RrxU/6jTJBTcPGql928dIiWAA9OPiUO3Nnt9j5ieC9qYJu2vBSHBz 62HlCaJIFJeo/LtvsbjwAdWjqmbYpMgh29KPunksyf5VtkIwYrCladBms4WcseSVENOA i38A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vxXEwDXoUaCTCh1JZEUg9AlGbzQgVGRxwIi6cmbAOpg=; b=Mx1oHNiu/XSMSeE/sNpuqm6Mka9QaSnIEjkypzSi/PVzZ1LcaLTTa9GuxearTFsicR VUv/X6b+se6oHm5ZpYANo98UTROHtGvQJgo4tKN9eX9ih8o48hj5sWizZlUaTleNCVVL WS/7pVSmUjEv/ApascR4bZDRWEcRoQuh/cVSPy2qZNn/9KPr8ngGUU/gnFX6wrm27ghy kZTFeejxjvbf3Ai/Tp3zVG0OZmNE7eGlngN7D/YLO7hosmvmWp636GWWKRcBleDi4ASk KCitwq8Y4ZCBIZC1COhVbrpSQiCG2WOchPLsgK6NUQ5eSlIz5MCqIisVwanvYdnWxVaT 6goQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PMJ6dttt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si11599495ejz.420.2021.03.15.11.32.18; Mon, 15 Mar 2021 11:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PMJ6dttt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240586AbhCOOiI (ORCPT + 99 others); Mon, 15 Mar 2021 10:38:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:35904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbhCOOBW (ORCPT ); Mon, 15 Mar 2021 10:01:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9BF264F6B; Mon, 15 Mar 2021 14:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816861; bh=HB43tIWA/SDJJ+Ad8NreII/d3eY5xm7qwiFNHDfBMVA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PMJ6dtttofaFMJZaNAhdVj4WALjIFGXK7KRp8N0Eychq2kKyF13fAdvkKDKAqbgLI 3G8scPoFh7D707eVs/F+8prvpG973MlCZiDtUsjelzyiSPWHMO60dmq7LJDjTMei3K FfMX/qb3qqqXdm04aUrOlbBrzt8Bs8q6JMN2lRtw= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.11 168/306] ALSA: hda: Drop the BATCH workaround for AMD controllers Date: Mon, 15 Mar 2021 14:53:51 +0100 Message-Id: <20210315135513.305263241@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Takashi Iwai commit 28e96c1693ec1cdc963807611f8b5ad400431e82 upstream. The commit c02f77d32d2c ("ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)") introduced a few workarounds for the recent AMD HD-audio controller, and one of them is the forced BATCH PCM mode so that PulseAudio avoids the timer-based scheduling. This was thought to cover for some badly working applications, but this actually worsens for more others. In total, this wasn't a good idea to enforce it. This is a partial revert of the commit above for dropping the PCM BATCH enforcement part to recover from the regression again. Fixes: c02f77d32d2c ("ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)") BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=195303 Cc: Link: https://lore.kernel.org/r/20210308160726.22930-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_controller.c | 7 ------- 1 file changed, 7 deletions(-) --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -609,13 +609,6 @@ static int azx_pcm_open(struct snd_pcm_s 20, 178000000); - /* by some reason, the playback stream stalls on PulseAudio with - * tsched=1 when a capture stream triggers. Until we figure out the - * real cause, disable tsched mode by telling the PCM info flag. - */ - if (chip->driver_caps & AZX_DCAPS_AMD_WORKAROUND) - runtime->hw.info |= SNDRV_PCM_INFO_BATCH; - if (chip->align_buffer_size) /* constrain buffer sizes to be multiple of 128 bytes. This is more efficient in terms of memory