diff options
author | Codrin Ciubotariu <[email protected]> | 2022-04-21 15:54:03 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-04-25 13:58:17 +0100 |
commit | 2bde1985e39173d8cb64005dad6f34e9bee4c750 (patch) | |
tree | 746917713e34c3ab09c9040c1c282a73c3084c7f | |
parent | 13fcf676d9e102594effc686d98521ff5c90b925 (diff) |
ASoC: atmel: mchp-pdmc: set prepare_slave_config
Since a pointer to struct snd_dmaengine_pcm_config is passed,
snd_dmaengine_pcm_prepare_slave_config() is no longer called unless it's
explicitly set in prepare_slave_config.
Fixes: 50291652af52 ("ASoC: atmel: mchp-pdmc: add PDMC driver")
Suggested-by: Sascha Hauer <[email protected]>
Signed-off-by: Codrin Ciubotariu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/atmel/mchp-pdmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c index 1a7802fbf23c..a3856c73e221 100644 --- a/sound/soc/atmel/mchp-pdmc.c +++ b/sound/soc/atmel/mchp-pdmc.c @@ -966,6 +966,7 @@ static int mchp_pdmc_process(struct snd_pcm_substream *substream, static struct snd_dmaengine_pcm_config mchp_pdmc_config = { .process = mchp_pdmc_process, + .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, }; static int mchp_pdmc_probe(struct platform_device *pdev) |