diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2013-12-20 12:35:33 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-21 14:33:10 +0000 |
commit | dd9f40602e96353c210805a99abd9af6abd28473 (patch) | |
tree | 4de95207ee8b07f327349217073b3f67f0bfb5dd /sound/soc/fsl | |
parent | e5180df3960b6130f17f3c5ab50d23674cdb2b5a (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>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 262d3107892..b8cdbf8660f 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) { 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); |