Commit dd9f4060 authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown

ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()

Makes the code slightly shorter
Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e5180df3
...@@ -377,8 +377,8 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai) ...@@ -377,8 +377,8 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai)
{ {
struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev); struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev);
cpu_dai->playback_dma_data = &sai->dma_params_tx; snd_soc_dai_init_dma_data(cpu_dai, &sai->dma_params_tx,
cpu_dai->capture_dma_data = &sai->dma_params_rx; &sai->dma_params_rx);
snd_soc_dai_set_drvdata(cpu_dai, sai); snd_soc_dai_set_drvdata(cpu_dai, sai);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment