From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25F13C88E53 for ; Tue, 15 Sep 2026 10:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=unkCLCcKHY56rsUQuuJhM9lplnY8sZMtXiwEiIG5bZc=; b=w7X7HmtD1rTlqMLml2TOEJcltP +smFktaXKRKJ80z1P0JCCPwCDPcJtvuPMCrNlw7OAPTEaMKItkr5mDI6q642wQU5NHdCzWjdPL+5C 0uX2XtCMHrVC7zei0ARJKHG2t3GMiWP7QWQvHfI7VyxzsyrmvnKmve2bauYez8RhiXeY4HpmWDdUw mjjIMOmxJExqLtM07bjsjaP2wbscoxm+1YQYA2YLHv/oy18Cos24rmlM/Pe9ZAFgzbC7MGcRlIh8M oUh6klVx+nBiKll1S+q3lHBnLX0QLjH1niMF7PWVBATDLV2bz/J0t34fczmwwHZzCsz8Pp5DOPCpN Azem53fA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6Q6o-00000005qrh-0ngu; Tue, 15 Sep 2026 10:09:50 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6Q6m-00000005qrU-3y2T for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Sep 2026 10:09:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=unkCLCcKHY56rsUQuuJhM9lplnY8sZMtXiwEiIG5bZc=; b=FDhtSgwwsb80ZDZiS1minWMI0g 2Iu71ZhUJ+kv/MRnB6Qmsrkvxcw3m6yA5LGNxCpiMe0DvEdyfOI2TNK3AHI6vEln8+S8KubEyejg3 RKrrHsVAjoOWTKTr1Dr8HJKIx9BEb6QcaeY4hOmoGufqTrhjtItb3QdMkDmWtcrmV4ZTs5rwEynv+ C5wHE4s/NoAmi/j1a2SAz3InBoostQFoedyoN3rqOM99ZyP1SpnvdxznkXo27FtIgj/V9ftsWKOsh oN1GH0lDercaimvplzxp7X8zZRWRpk1A31uLHXf7mRw4iVfcQXprig9A1H206miJUaka140WBbbDU HEgp4Esw==; Received: from mgamail.intel.com ([198.175.65.15]) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1x6Q6j-00000006X08-2XRq for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2026 10:09:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789466986; x=1821002986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jxYDYzHVYPq4YEIyup/T+qLWIcnk64L3iLPbr0dWZJU=; b=DrEKlbwfZ9sUjTBi85nYQiT0ktLUFJHSX42qn0g5lmeGKkLm+txosteU neo4ih0CTmA+KSzNGI55B4MoIkr9SwAjzWopM2NOMjKg+AE68Vff/KIUF 4GnlY4vmaAyiX7aPwggypRNkOll+fSgTEwfLGRON2bEYM8qBXkKq0gpUB zmHloEtWKitqqCIM9unMErz8E6aDPLkkmgckvivOyUeXU1upCuFsyzP2u LdwkQRg4XPLrJkocyeqlGu3gxWLDYjKt46c1zbu5fuieO1LuNpAr6ahR/ PlM8rKjTpWeXpPpjL9C37loAS1M0LC49/6kN4B+Sxwr4scNoRb01oM50D w==; X-CSE-ConnectionGUID: GWiEk9yVRI6Uk2AtCu6HpQ== X-CSE-MsgGUID: 6FEQ5RadRKuK6rFpviAolw== X-IronPort-AV: E=McAfee;i="6800,10657,11905"; a="93524800" X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="93524800" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2026 03:09:40 -0700 X-CSE-ConnectionGUID: xOLmSWPLQt6bUxhTM7s3Ow== X-CSE-MsgGUID: YCeL3QUOR+uEihCX/mCHZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="269670281" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa007.fm.intel.com with ESMTP; 15 Sep 2026 03:09:33 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 6E192A1; Tue, 15 Sep 2026 12:09:32 +0200 (CEST) From: Andy Shevchenko To: Frank Li , Andy Shevchenko , Mark Brown , Shengjiu Wang , bui duc phuc , Tianchu Chen , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Dave Penkler , Greg Kroah-Hartman , Vinod Koul , Frank Li , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Lars-Peter Clausen , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v1 4/7] ASoC: pxa: Replace dma_request_slave_channel() by dma_request_chan() Date: Tue, 15 Sep 2026 12:04:25 +0200 Message-ID: <20260915100931.3593242-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260915100931.3593242-1-andriy.shevchenko@linux.intel.com> References: <20260915100931.3593242-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260915_110946_067506_67F9C5BB X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. Signed-off-by: Andy Shevchenko --- sound/soc/pxa/pxa2xx-pcm-lib.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sound/soc/pxa/pxa2xx-pcm-lib.c b/sound/soc/pxa/pxa2xx-pcm-lib.c index 88a9d3226302..0ccf88aa1138 100644 --- a/sound/soc/pxa/pxa2xx-pcm-lib.c +++ b/sound/soc/pxa/pxa2xx-pcm-lib.c @@ -79,6 +79,7 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *substream) struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct snd_pcm_runtime *runtime = substream->runtime; struct snd_dmaengine_dai_dma_data *dma_params; + struct dma_chan *chan; int ret; runtime->hw = pxa2xx_pcm_hardware; @@ -107,9 +108,12 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *substream) if (ret < 0) return ret; - return snd_dmaengine_pcm_open( - substream, dma_request_slave_channel(snd_soc_rtd_to_cpu(rtd, 0)->dev, - dma_params->chan_name)); + chan = dma_request_chan(snd_soc_rtd_to_cpu(rtd, 0)->dev, dma_params->chan_name); + ret = PTR_ERR_OR_ZERO(chan); + if (ret) + return ret; + + return snd_dmaengine_pcm_open(substream, chan); } static int pxa2xx_pcm_close(struct snd_pcm_substream *substream) -- 2.50.1