Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tegra: convert not to use dma_request_slave_channel()

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>

authored by

Christophe JAILLET and committed by
Mark Brown
8df73570 6d02f355

+2 -2
+2 -2
sound/soc/tegra/tegra_pcm.c
··· 98 98 return ret; 99 99 } 100 100 101 - chan = dma_request_slave_channel(cpu_dai->dev, dmap->chan_name); 102 - if (!chan) { 101 + chan = dma_request_chan(cpu_dai->dev, dmap->chan_name); 102 + if (IS_ERR(chan)) { 103 103 dev_err(cpu_dai->dev, 104 104 "dmaengine request slave channel failed! (%s)\n", 105 105 dmap->chan_name);