Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3518404pxf; Mon, 15 Mar 2021 11:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBBL5mvAv1ffXBU5G7k8nAkEBNRJDETy+2vhl1WUzgF3h8CZNSTMaN8u+bne1/1NidlpdT X-Received: by 2002:aa7:d588:: with SMTP id r8mr31316488edq.88.1615832388834; Mon, 15 Mar 2021 11:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832388; cv=none; d=google.com; s=arc-20160816; b=vS6rC+dn17PpffNB/LuZrbrEJy/a5qkblI4Yy9XbVjyb6BSyoA/Snz87MUnTz8d8hD IV2nzGx1L/qUToS2NJ44/2Gvr19PDmjFeHT9TkXZj5pETOlh4T9YpduJxdZIDv7chsBc qSIlx9qYxtpiJwt1GOJH0QTjbFwwFOC1G3IDSFRmNUvNp40eOiI09hGeopUKTRkTJPte lOGD6RkR8xoDYZrX+hncH4wFupUvPhmfPGzNV2z4twTfJ0dXf8jY+QS6snJ+OAlo149N 60AVOxb5+1c3SOfWNpMI6Yv1H1o4aVGAeGfQz2pvuXmMflE+gAxz6mJOjKIcOsy95Q8h U2CA== 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=rDxfPkX0zdEU7PA4KcWnpflXBsvG8nxk50AT6H2byZw=; b=ILp8+RZXUPy9GEsieCQzuB2PUcfDRnlMAZ1ec9wnDdBrZszN6yvBDID7V+NPd0c6Mt GAOzqQr4VBPwnrKZFF/cpVQGlxFZg++abs/JpP8UwlxRzcy/iVcZ0q02uHKfGr9SssqT RGss/eXgL7YBSqaa1wLZ9e5KcYCvu+09QJm/Kc2mK5REhuNSr8UwpMIaqCYAKEh6+chm jKKZuy6WIwfZSEbGtky/jV4oK3PlYRXTyD6QMFhtZH3Db7gPC7821O50HXX3wasftA/h z8ofwYGJMJbtjlvm/6yX7X7Tr+ynWCBsbANNtiKuEQSkSHDEtpoPrGFyrkg41TM7H3FL tzIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q9rl1+Go; 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 cw19si11292866edb.211.2021.03.15.11.19.26; Mon, 15 Mar 2021 11:19:48 -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=q9rl1+Go; 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 S237297AbhCOORh (ORCPT + 99 others); Mon, 15 Mar 2021 10:17:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:37582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232741AbhCON7i (ORCPT ); Mon, 15 Mar 2021 09:59:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 307E064F3C; Mon, 15 Mar 2021 13:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816761; bh=IFGX+ty+2mHuhdrdhuGDBm/bHqr9BQZXWJiAUlYB7PY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q9rl1+Gokg1xcr/uxm5KziXooYtWzCL4C0rodmLYc0znXLm0YcOK0V9QzH7FAX6nc 332b2+JX6LoJxdZ2oGz4je3wiA+ZssnmwSWJAZ5HoMcJyCVrKW1eL2y/OJbUGgaUlz XBUqDc+Tp62pssyVI4hEOaZjTF815mYuGbTDdX5g= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.4 091/168] ALSA: hda: Drop the BATCH workaround for AMD controllers Date: Mon, 15 Mar 2021 14:55:23 +0100 Message-Id: <20210315135553.365549694@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 @@ -613,13 +613,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