From: Kuninori Morimoto Date: Tue, 31 Jan 2023 02:00:29 +0000 (+0000) Subject: ASoC: spear: use helper function X-Git-Tag: microblaze-v6.6~970^2~4^2~96^2~14 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=c4d78c4127f9371dcfc77e71417addddcc5a9533;p=linux-2.6-microblaze.git ASoC: spear: use helper function Current ASoC has many helper function. This patch use it. Signed-off-by: Kuninori Morimoto Link: https://lore.kernel.org/r/87wn53ea4i.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c index fb107c5790ad..469373d1bb41 100644 --- a/sound/soc/spear/spdif_out.c +++ b/sound/soc/spear/spdif_out.c @@ -244,7 +244,8 @@ static int spdif_soc_dai_probe(struct snd_soc_dai *dai) struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); host->dma_params_tx.filter_data = &host->dma_params; - dai->playback_dma_data = &host->dma_params_tx; + + snd_soc_dai_dma_data_set_playback(dai, &host->dma_params_tx); return snd_soc_add_dai_controls(dai, spdif_out_controls, ARRAY_SIZE(spdif_out_controls));