projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5180df
)
ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()
author
Xiubo Li
<Li.Xiubo@freescale.com>
Fri, 20 Dec 2013 04:35:33 +0000
(12:35 +0800)
committer
Mark Brown
<broonie@linaro.org>
Sat, 21 Dec 2013 14:33:10 +0000
(14:33 +0000)
Makes the code slightly shorter
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_sai.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/fsl_sai.c
b/sound/soc/fsl/fsl_sai.c
index 262d3107892e0c05326266df8d26472fbbafe8c9..b8cdbf8660fe5d1414f2acb6345c5d301c0f83f8 100644
(file)
--- 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);