diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-11-19 19:19:14 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-27 14:44:06 +0100 |
commit | 076357cd57c294fb185ac452b9ce5536b2853839 (patch) | |
tree | 36c08df3b2812aa46c0f518635f3feb811015c69 /sound/soc/sh | |
parent | ASoC: SOF: ipc4: Add support for control change (diff) | |
download | linux-076357cd57c294fb185ac452b9ce5536b2853839.tar.xz linux-076357cd57c294fb185ac452b9ce5536b2853839.zip |
ASoC: sh: 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/1a837f96f056fa3dcb02a77afa5892d40b354cb1.1700417934.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/fsi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 2ef47aa2c778..84601ba43b7d 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1379,7 +1379,9 @@ static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io, struct dev io->chan = dma_request_channel(mask, shdma_chan_filter, (void *)io->dma_id); #else - io->chan = dma_request_slave_channel(dev, is_play ? "tx" : "rx"); + io->chan = dma_request_chan(dev, is_play ? "tx" : "rx"); + if (IS_ERR(io->chan)) + io->chan = NULL; #endif if (io->chan) { struct dma_slave_config cfg = {}; |