From patchwork Sat Nov 11 17:37:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 164154 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp344422vqg; Sat, 11 Nov 2023 09:38:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiEzRsuJzx/BRbfwc1T2KJj8/K+RYgnF4DYwZMSyKPnPLjSQW6M9a+2stGF6HO2vV7Cx8r X-Received: by 2002:a05:6a00:3a0c:b0:6c6:b5ae:15ac with SMTP id fj12-20020a056a003a0c00b006c6b5ae15acmr784703pfb.32.1699724299600; Sat, 11 Nov 2023 09:38:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699724299; cv=none; d=google.com; s=arc-20160816; b=oEgDZWvqt0/pQkL1Qt6s8xtU2Q/XXkAjpALMlAYZYjGl0GeLTtxH+/Z6d3hXXMClqX X1CNnlGiQM5ePw/Lm6J2DQ8SvFmCvh4GqtGWzJRsS1aKwqpyBSvfgBEbr3XAKfnb+6WP e5K8YUKzzoWZURHT6s5EY4/J0ukpHmcKHG2AKOo2jt+TWXy72oZOKEhXWNN09NvKndZe IG50a9LIk04EjdB8ve68KXPwJdoydlknsLkqq+fNH9gFGtfUyz7/8cPhsxEJMqP3l9xe peOSXSQKhPIxha8N467UJs6cTOJC6m/rNZzlvbISHCyiVgP5unTjndhE4efE8qzaGejG u4xQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3p8y78zf3gHeF4GPQWXy2DVL3f5hRqnTpp31RIibFuo=; fh=e/CuIXXMUOQ+VIE8K5mozlqpelWSof1e4N3q/WRMxX4=; b=THMNnWRcbr+cP57bD+lEgDU5vSMlvP/fJnXallkbWh2tpBS48vke4H1x/tcSRTe0Uc g5Baw0F9Ac6jIKtJC/cDEErb7VdUKRfUAu2cA/RX25h5xsK7oSO4rseAvUjSdJxc19X0 lwkE6Fof0s2nwWxWCqVxf9EecMT/SwXoBaePbhBMPrLEN2tXPNcjjaRQAi+PBR2nesrq 6S+dUm8EUF1yn22LFWjfQH14Po/btjGTc9iInF1RkZgamPQ7ffOux7XjB+bpVxF+46Rw WX8iMNwsnTTr0euLekyef5x37SdSUILY0c+lY9k2U4H5e0QR26Sf/hQJ2Fta4quoB52z h7+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Fxc8kV+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p30-20020a056a000a1e00b006c0fe1a6e78si2148123pfh.22.2023.11.11.09.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 09:38:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Fxc8kV+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6DC488041FEB; Sat, 11 Nov 2023 09:38:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229461AbjKKRhu (ORCPT + 29 others); Sat, 11 Nov 2023 12:37:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKKRht (ORCPT ); Sat, 11 Nov 2023 12:37:49 -0500 Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F4903A81 for ; Sat, 11 Nov 2023 09:37:44 -0800 (PST) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 1rvQrNcO1Fh5i1rvRrEGB4; Sat, 11 Nov 2023 18:37:42 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1699724262; bh=3p8y78zf3gHeF4GPQWXy2DVL3f5hRqnTpp31RIibFuo=; h=From:To:Cc:Subject:Date; b=Fxc8kV+G8Enn/8tu+igh6v6COk98EiwnJVmlpbcFYaZIrcxRrvynh6DZ/M/TkI5WN 3A7a+d14YAeGc7xAs2uR0D3HAM08xyed7ofWB6IIwvfauN0t2+IOUaKnT1mNwan4KN HWXcmQ16uuwE3JsnQsbusDOocXQnvPED21hOTzCbu0Cm2atUzIRyM1uGjYzKUn93CS 9qbqJlemRNitnBTl+4CdDIRa+qP2P8XS968v7AlMsd3TwDYg867MdakUj9Gjr8TQVS dih9KCXCwL4tovkOHhzUAnMQaAe5W5AEZJyiP3VXCavv7Awy7ePhx5WBiugdJE8dCG HFzH7Q3UnW4Og== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 11 Nov 2023 18:37:42 +0100 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Thierry Reding , Jonathan Hunter Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-sound@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH] ASoC: tegra: convert not to use dma_request_slave_channel() Date: Sat, 11 Nov 2023 18:37:39 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 11 Nov 2023 09:38:17 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782290107324118278 X-GMAIL-MSGID: 1782290107324118278 dma_request_slave_channel() is deprecated. dma_request_chan() should be used directly instead. Switch to the preferred function and update the error handling accordingly. Signed-off-by: Christophe JAILLET --- sound/soc/tegra/tegra_pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c index 142e8d4eefd5..42acb56543db 100644 --- a/sound/soc/tegra/tegra_pcm.c +++ b/sound/soc/tegra/tegra_pcm.c @@ -98,8 +98,8 @@ int tegra_pcm_open(struct snd_soc_component *component, return ret; } - chan = dma_request_slave_channel(cpu_dai->dev, dmap->chan_name); - if (!chan) { + chan = dma_request_chan(cpu_dai->dev, dmap->chan_name); + if (IS_ERR(chan)) { dev_err(cpu_dai->dev, "dmaengine request slave channel failed! (%s)\n", dmap->chan_name);