diff options
author | Keguang Zhang <keguang.zhang@gmail.com> | 2023-11-06 20:51:03 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-13 01:26:07 +0000 |
commit | bb341f75a05238ccd35b1ec1eb1849a3955eebb3 (patch) | |
tree | 7b4848588f1d2668e62af37675d23416b819591b | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | lwn-bb341f75a05238ccd35b1ec1eb1849a3955eebb3.tar.gz lwn-bb341f75a05238ccd35b1ec1eb1849a3955eebb3.zip |
ASoC: sti-uniperf: Use default pcm_config instead
The sti-uniperf pcm_config is the same as the default pcm_config.
Since commit 43556516fffe ("ASoC: soc-generic-dmaengine-pcm:
Use default config when none is given"), passing a NULL pointer
could let this driver use the default config.
Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Link: https://lore.kernel.org/r/20231106-sti-uniperf-v1-1-b2d8749cfa2e@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sti/sti_uniperif.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c index 2c21a86421e6..ba824f14a39c 100644 --- a/sound/soc/sti/sti_uniperif.c +++ b/sound/soc/sti/sti_uniperif.c @@ -461,10 +461,6 @@ static int sti_uniperiph_cpu_dai_of(struct device_node *node, return 0; } -static const struct snd_dmaengine_pcm_config dmaengine_pcm_config = { - .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, -}; - static int sti_uniperiph_probe(struct platform_device *pdev) { struct sti_uniperiph_data *priv; @@ -493,8 +489,7 @@ static int sti_uniperiph_probe(struct platform_device *pdev) if (ret < 0) return ret; - return devm_snd_dmaengine_pcm_register(&pdev->dev, - &dmaengine_pcm_config, 0); + return devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0); } static struct platform_driver sti_uniperiph_driver = { |