Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp508299pxb; Thu, 9 Sep 2021 06:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsYOOeUvwz3LbfE+rg2HFowIw/jLyTmtjsefnLK2di8HKD2XaqV9C0Zrapl+AMQqlJ9od1 X-Received: by 2002:a17:906:51d4:: with SMTP id v20mr3388346ejk.9.1631192829209; Thu, 09 Sep 2021 06:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631192829; cv=none; d=google.com; s=arc-20160816; b=Av91oKjE+iCc0Yp2HYVY8tq1W/ZnmvE5ED7KDXXiFvNijhnH+ZShrVG6VhzSCtfrcC Y7lqEGqIjtdva9ZXvrgW9FllDuAFlpDmEU6cjNn9n48bkXABpcf2mdwuiKKYW+Qp5Y6c eewdGZhlitieZLHWXr+PUH2+JRKRzyxpuyvKp9JppYRFK7k4oTeqywgDvoYF/THKFZCm ftAPkN52wphiG6Ww+cVyg3f1PN4Wr0ksDHEtjvvA9eKc7S6W1lsVnSFyMcLn/wITc1O8 o8SGQWGW+fUcnhDxABK1sIu5CKvnzUfJtkdDtutKweFFIifHECitrUSL9ZFE4kKt0gXk NIvA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XHomDioQ8z5VtcAtLjPcBURniM/gb8laTO9Roooe6to=; b=OwQCD5Lsz8cYAMl6723McQL3DBm0PzbC9Sl5o1dxkg8wOuMJ6mI2iGc5bfRaJvS14F kN6fJzsrTMorkzRwJoeSFNIUjQGeQaZJXUa+mX8FSLGEmuY9tXqTjRmUKn3qcEuZFxUW NXB6C9xHfKdpMoyS8q1g3+JrD4EF66ksU7sJn1W1r/EbSSV9Qb0NV3gHL8wQJKbo7C9d sYtINpjSq4hFAnhJCH5Q+VGyrtG8OsEgVcBDxsGXnPMUUFMgSuqFzxUTsBEwVlZQY2Eg qJT0p8Q+3bNcHaQotKSeqHl5EQPig/QAp7UsGrxGTXcw53lYonnrViKJx4CaN1CwELke QbAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TEll6y+V; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu15si1638544ejb.164.2021.09.09.06.06.35; Thu, 09 Sep 2021 06:07:09 -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=@kernel.org header.s=k20201202 header.b=TEll6y+V; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356655AbhIINBU (ORCPT + 99 others); Thu, 9 Sep 2021 09:01:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:42302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355239AbhIIMtl (ORCPT ); Thu, 9 Sep 2021 08:49:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 76D6F63212; Thu, 9 Sep 2021 11:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188614; bh=0OAIQSn2+lMCKkm9MukIrYLyF/l4Hgjf7LgoW1dyzu4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TEll6y+VMvtPTys0tCHtoApWQdzqOJJqY8TeuycNI+Jja9xpf/XOAcsFNMrlW3HpI KX38mIdfzTdMOA9HPPYT2vzQ0MT7G5KDHRe84DlrPHyeEFN202R1s39ehq3PED3JU0 MAPEX7vZ6uga1Om9WgI1bbPEzoQzb3Xsgxyq9HB/OteRYONMDTEcNJa3xJpUQvvMY1 YGPkqnE/3DZm7En71dCIQjbPAigWFelScpUckBVrI5A6hhWzlrpksqfvQCAeeyvHrd g1TWTBh+69StrlQGLGTFP6zoIoXrN1HC8yHbC8ahz+Ui3s48lW/LgsiLLYCi43hLss HyB/gmpNXwqwA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Takashi Iwai , Sasha Levin , alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.4 084/109] ASoC: intel: atom: Revert PCM buffer address setup workaround again Date: Thu, 9 Sep 2021 07:54:41 -0400 Message-Id: <20210909115507.147917-84-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115507.147917-1-sashal@kernel.org> References: <20210909115507.147917-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai [ Upstream commit e28ac04a705e946eddc5e7d2fc712dea3f20fe9e ] We worked around the breakage of PCM buffer setup by the commit 65ca89c2b12c ("ASoC: intel: atom: Fix breakage for PCM buffer address setup"), but this isn't necessary since the CONTINUOUS buffer type also sets runtime->dma_addr since commit f84ba106a018 ("ALSA: memalloc: Store snd_dma_buffer.addr for continuous pages, too"). Let's revert the change again. Link: https://lore.kernel.org/r/20210822072127.9786-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index 7d59846808b5..216e88624c5f 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -127,7 +127,7 @@ static void sst_fill_alloc_params(struct snd_pcm_substream *substream, snd_pcm_uframes_t period_size; ssize_t periodbytes; ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); - u32 buffer_addr = virt_to_phys(substream->runtime->dma_area); + u32 buffer_addr = substream->runtime->dma_addr; channels = substream->runtime->channels; period_size = substream->runtime->period_size; -- 2.30.2