* [PATCH] ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()
@ 2013-12-20 4:35 Xiubo Li
2013-12-21 14:33 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Xiubo Li @ 2013-12-20 4:35 UTC (permalink / raw)
To: broonie; +Cc: alsa-devel, linux-kernel
Makes the code slightly shorter
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
---
sound/soc/fsl/fsl_sai.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 50a797e..9c89f97 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);
--
1.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()
2013-12-20 4:35 [PATCH] ASoC: fsl-sai: Use snd_soc_dai_init_dma_data() Xiubo Li
@ 2013-12-21 14:33 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-12-21 14:33 UTC (permalink / raw)
To: Xiubo Li; +Cc: alsa-devel, linux-kernel
On Fri, Dec 20, 2013 at 12:35:33PM +0800, Xiubo Li wrote:
> Makes the code slightly shorter
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-21 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 4:35 [PATCH] ASoC: fsl-sai: Use snd_soc_dai_init_dma_data() Xiubo Li
2013-12-21 14:33 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).