Skip to contentSkip to conversation

ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()

PATCH Applied Xiubo Li 2 participants 2 messages Dec 20, 2013 – Dec 21, 2013

Subsystems (3)
lore
Share & tools
lore

Xiubo Li

author
#0 lore raw

PATCH 1/1 ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()

Makes the code slightly shorter

---
 sound/soc/fsl/fsl_sai.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/fsl/fsl_sai.c +2 -2
index 50a797e..9c89f97 100644
@@ -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);
 
-	cpu_dai->playback_dma_data = &sai->dma_params_tx;
-	cpu_dai->capture_dma_data = &sai->dma_params_rx;
+	snd_soc_dai_init_dma_data(cpu_dai, &sai->dma_params_tx,
+				&sai->dma_params_rx);
 
 	snd_soc_dai_set_drvdata(cpu_dai, sai);
 
Signature · 1 line
1.8.4
maintainer Applied
#1 lore raw
Quoted 1 line · Xiubo Li

Makes the code slightly shorter

Applied, thanks.