ASoC: fsl_ssi: Use snd_soc_init_dma_data instead

Since there is a helper function, use it to help readability.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Tested-by: Caleb Crome <caleb@crome.org>
Tested-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Reviewed-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Nicolin Chen 2018-02-12 14:03:19 -08:00 committed by Mark Brown
parent 702d7965e4
commit 40f2563377
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1110,10 +1110,9 @@ static int fsl_ssi_dai_probe(struct snd_soc_dai *dai)
{ {
struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai);
if (ssi->soc->imx && ssi->use_dma) { if (ssi->soc->imx && ssi->use_dma)
dai->playback_dma_data = &ssi->dma_params_tx; snd_soc_dai_init_dma_data(dai, &ssi->dma_params_tx,
dai->capture_dma_data = &ssi->dma_params_rx; &ssi->dma_params_rx);
}
return 0; return 0;
} }