mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
ASoC: tegra: use helper function
Current ASoC has many helper function. This patch use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87mt5zea3a.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
323f09a61d
commit
1c1a778401
@ -212,8 +212,8 @@ static int tegra20_ac97_probe(struct snd_soc_dai *dai)
|
||||
{
|
||||
struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai);
|
||||
|
||||
dai->capture_dma_data = &ac97->capture_dma_data;
|
||||
dai->playback_dma_data = &ac97->playback_dma_data;
|
||||
snd_soc_dai_init_dma_data(dai, &ac97->playback_dma_data,
|
||||
&ac97->capture_dma_data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -256,8 +256,8 @@ static int tegra20_i2s_probe(struct snd_soc_dai *dai)
|
||||
{
|
||||
struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai);
|
||||
|
||||
dai->capture_dma_data = &i2s->capture_dma_data;
|
||||
dai->playback_dma_data = &i2s->playback_dma_data;
|
||||
snd_soc_dai_init_dma_data(dai, &i2s->playback_dma_data,
|
||||
&i2s->capture_dma_data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -236,8 +236,7 @@ static int tegra20_spdif_probe(struct snd_soc_dai *dai)
|
||||
{
|
||||
struct tegra20_spdif *spdif = dev_get_drvdata(dai->dev);
|
||||
|
||||
dai->capture_dma_data = NULL;
|
||||
dai->playback_dma_data = &spdif->playback_dma_data;
|
||||
snd_soc_dai_init_dma_data(dai, &spdif->playback_dma_data, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -544,8 +544,8 @@ static int tegra_admaif_dai_probe(struct snd_soc_dai *dai)
|
||||
{
|
||||
struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai);
|
||||
|
||||
dai->capture_dma_data = &admaif->capture_dma_data[dai->id];
|
||||
dai->playback_dma_data = &admaif->playback_dma_data[dai->id];
|
||||
snd_soc_dai_init_dma_data(dai, &admaif->playback_dma_data[dai->id],
|
||||
&admaif->capture_dma_data[dai->id]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -297,8 +297,8 @@ static int tegra30_i2s_probe(struct snd_soc_dai *dai)
|
||||
{
|
||||
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
|
||||
|
||||
dai->capture_dma_data = &i2s->capture_dma_data;
|
||||
dai->playback_dma_data = &i2s->playback_dma_data;
|
||||
snd_soc_dai_init_dma_data(dai, &i2s->playback_dma_data,
|
||||
&i2s->capture_dma_data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user