]> git.itanic.dy.fi Git - linux-stable/commitdiff
ASoC: tegra: convert not to use dma_request_slave_channel()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 11 Nov 2023 17:37:39 +0000 (18:37 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Nov 2023 01:26:12 +0000 (01:26 +0000)
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 <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/b78685e4103f12931ddb09c1654bc6b04b640868.1699724240.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra_pcm.c

index 142e8d4eefd574878e859cb759c5dbf4d8f81a00..42acb56543db66763f6445907bf7094aba3354d9 100644 (file)
@@ -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);