aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2013-12-19 23:35:33 -0500
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:57:36 -0400
commite5aa76b1d434a14fe574cb657c51ad75b58696f4 (patch)
tree17d261eed619992a838c24d7ba2ecff91ff8cb4b /sound/soc/fsl/fsl_sai.c
parent5c9f1ff544592a758cf22acdf5fd17bf0d1e93a0 (diff)
ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()
Makes the code slightly shorter Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> (cherry picked from commit dd9f40602e96353c210805a99abd9af6abd28473) Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r--sound/soc/fsl/fsl_sai.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 262d3107892e..b8cdbf8660fe 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -377,8 +377,8 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai)
377{ 377{
378 struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev); 378 struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev);
379 379
380 cpu_dai->playback_dma_data = &sai->dma_params_tx; 380 snd_soc_dai_init_dma_data(cpu_dai, &sai->dma_params_tx,
381 cpu_dai->capture_dma_data = &sai->dma_params_rx; 381 &sai->dma_params_rx);
382 382
383 snd_soc_dai_set_drvdata(cpu_dai, sai); 383 snd_soc_dai_set_drvdata(cpu_dai, sai);
384 384