Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3519861pxf; Mon, 15 Mar 2021 11:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy850IRGnYrWbWdQQvbrSRrJ0gxRWDDA4vhPx8Z4raiK2vyTCS5IDVCAdjfhL154arz1m2t X-Received: by 2002:a17:906:9714:: with SMTP id k20mr24998098ejx.519.1615832525298; Mon, 15 Mar 2021 11:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832525; cv=none; d=google.com; s=arc-20160816; b=ulOkMtdmJijJPSbFxrI1aXWO+DSgtWsWmQywrXU+kuJpxB/myuVt/hTFssAUaa1+lT Pf4SzsT34pD19f1G3FDtBkQJMBtUsyBoP0KiDYaAaFaITK270/Hlf3uSJdhggczde759 2RZv2v+fJJzQyz54cMTm5nb6yP2FOfeHLZ/Ly+TzqBlVisN5mq4T9h/tkK0oJEHx0x+b dSV9uSft8JOMJLHQcaL0IExnn8WaoKOBXIT1Ft6KAQa0jry/2kFxLG02IHQSC3Ns5YEy h0Nuq+1vyYQ/4hQNH8cJ2gTq9PQWsvasURAzFCJpuAH7BufiYoIkNGaYT+nirQXaKSX6 mqFA== 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=wB7oQyqoTbyNxu5y58hr5fopnHjmI88WsX9u988Pfcw=; b=FRb6QHv4hBm3mhReapFk2pseF6reW72I3HURJ7qknzCltmTZx/Z23B60fdnLIsde3j 0IfA3CzzftP9G3wLCVWDVU0wtmshS4w+r3W1WlBa2BU62U3IV9x7DucRvodsWfkdlqAH 8EeXK8d1EVkER9jgNPQuuR/YDoHxeOteBJtSyym9o6FP41B6041rotrmGhOYl+GHkEyz Sp9Gkg7WOAIbbBUSnXw9lyRgmJBcSQfcqj+FWAwAGCCK5Tin/72LEes+Cg/lWc1fnXX2 IAU+Jmutdpb2E/LyXP5G2GpDKcb6jF7RxQlAUAiwTrQuOAyNUnMUIHgmexhBkmYW7Xxx 9brg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Bv4NxLYg; 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 j7si11651273ejm.408.2021.03.15.11.21.42; Mon, 15 Mar 2021 11:22:05 -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=Bv4NxLYg; 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 S233427AbhCOOU7 (ORCPT + 99 others); Mon, 15 Mar 2021 10:20:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:37540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232798AbhCON75 (ORCPT ); Mon, 15 Mar 2021 09:59:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 979B064F12; Mon, 15 Mar 2021 13:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816778; bh=Cx7Z6Teu877+PcieRFJ0pOYWFpG8cXlCbz19Qlmfev0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bv4NxLYgDGJ87ttc2Iz8HWW32FnwG66joAKQEOpecE61QcH8LV5VWI4pByhbCtzy8 szY0cEMAaAGP76+FXqBQionbEOzoMi9yvAOEohjEHVOTZZIunTpWKa35T8g1Rnjkez zNdVwjPDfJbj+K+xVyyDtjprSCCerXVXyvpz1rWo= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.19 061/120] ALSA: hda: Drop the BATCH workaround for AMD controllers Date: Mon, 15 Mar 2021 14:56:52 +0100 Message-Id: <20210315135721.977471732@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135720.002213995@linuxfoundation.org> References: <20210315135720.002213995@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 @@ -624,13 +624,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