Skip to content

Commit 2bde198

Browse files
Codrin Ciubotariubroonie
authored andcommitted
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: 5029165 ("ASoC: atmel: mchp-pdmc: add PDMC driver") Suggested-by: Sascha Hauer <sha@pengutronix.de> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Link: https://lore.kernel.org/r/20220421125403.2180824-2-codrin.ciubotariu@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 13fcf67 commit 2bde198

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/atmel/mchp-pdmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ static int mchp_pdmc_process(struct snd_pcm_substream *substream,
966966

967967
static struct snd_dmaengine_pcm_config mchp_pdmc_config = {
968968
.process = mchp_pdmc_process,
969+
.prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config,
969970
};
970971

971972
static int mchp_pdmc_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)