mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-03 07:41:40 +00:00
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:
parent
702d7965e4
commit
40f2563377
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user