diff options
author | Mark Brown <broonie@kernel.org> | 2023-01-31 17:07:49 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-31 17:07:49 +0000 |
commit | 6570befb4fccce7ba49e5c74adbdae9bba5d9824 (patch) | |
tree | fb56c03ffa91d5a5130f635975148eee74759b9c /sound/soc/tegra/tegra20_ac97.c | |
parent | 01b17067f4f31a9c243ee06f4826279dae97abf2 (diff) | |
parent | 3653480c68120dc16ebfeb80e529200dbbd98f92 (diff) |
ASoC: use helper function and cleanup
Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
struct snd_soc_dai need to have info for playback/capture,
but it is using "playback/capture_xxx" or "tx/tx_xxx" or array.
This kind of random definition is very difficult to read.
This patch-set add helper functions and each driver use it.
And cleanup the definition.
Diffstat (limited to 'sound/soc/tegra/tegra20_ac97.c')
-rw-r--r-- | sound/soc/tegra/tegra20_ac97.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index 87facfbcdd11..d23d88a10899 100644 --- a/sound/soc/tegra/tegra20_ac97.c +++ b/sound/soc/tegra/tegra20_ac97.c @@ -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; } |