Skip to content

Commit

Permalink
ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()
Browse files Browse the repository at this point in the history
Makes the code slightly shorter

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Xiubo Li authored and Mark Brown committed Dec 21, 2013
1 parent e5180df commit dd9f406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/fsl/fsl_sai.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dd9f406

Please sign in to comment.