summaryrefslogtreecommitdiffstats
path: root/include/sound/soc-card.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2023-09-11 23:47:02 +0000
committerMark Brown <broonie@kernel.org>2023-09-25 14:16:13 +0200
commit1d5a2b5dd0a8d2b2b535b5266699429dbd48e62f (patch)
treebd8cdbca06c197ab441e0a6f127847dfe579c701 /include/sound/soc-card.h
parent39fce972fd7259395663586e59388d702afec30e (diff)
downloadlinux-1d5a2b5dd0a8d2b2b535b5266699429dbd48e62f.tar.gz
linux-1d5a2b5dd0a8d2b2b535b5266699429dbd48e62f.tar.bz2
linux-1d5a2b5dd0a8d2b2b535b5266699429dbd48e62f.zip
ASoC: soc.h: convert asoc_xxx() to snd_soc_xxx()
ASoC is using 2 type of prefix (asoc_xxx() vs snd_soc_xxx()), but there is no particular reason about that [1]. To reduce confusing, standarding these to snd_soc_xxx() is sensible. This patch adds asoc_xxx() macro to keep compatible for a while. It will be removed if all drivers were switched to new style. Link: https://lore.kernel.org/r/87h6td3hus.wl-kuninori.morimoto.gx@renesas.com [1] Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87fs3ks26i.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-card.h')
-rw-r--r--include/sound/soc-card.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/soc-card.h b/include/sound/soc-card.h
index e8ff2e089cd0..ecc02e955279 100644
--- a/include/sound/soc-card.h
+++ b/include/sound/soc-card.h
@@ -115,8 +115,8 @@ struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card,
struct snd_soc_pcm_runtime *rtd;
for_each_card_rtds(card, rtd) {
- if (!strcmp(asoc_rtd_to_codec(rtd, 0)->name, dai_name))
- return asoc_rtd_to_codec(rtd, 0);
+ if (!strcmp(snd_soc_rtd_to_codec(rtd, 0)->name, dai_name))
+ return snd_soc_rtd_to_codec(rtd, 0);
}
return NULL;