diff options
author | Kuninori Morimoto | 2020-03-23 14:21:14 +0900 |
---|---|---|
committer | Mark Brown | 2020-03-27 14:44:52 +0000 |
commit | 2842b87148af9ab7a0f3913022f2935e47cedd97 (patch) | |
tree | 79eb120e80352ab33aaa7ceaa3fc57b1eec0db49 /sound/soc/ti/omap-mcbsp-st.c | |
parent | 0b25cffb2c117186ee6c9701c6680afa1a1748f2 (diff) |
ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/875zevir3p.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti/omap-mcbsp-st.c')
-rw-r--r-- | sound/soc/ti/omap-mcbsp-st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/omap-mcbsp-st.c b/sound/soc/ti/omap-mcbsp-st.c index 1a3fe854e856..5a32b54bbf3b 100644 --- a/sound/soc/ti/omap-mcbsp-st.c +++ b/sound/soc/ti/omap-mcbsp-st.c @@ -489,7 +489,7 @@ OMAP_MCBSP_ST_CONTROLS(3); int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id) { - struct snd_soc_dai *cpu_dai = rtd->cpu_dai; + struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai); if (!mcbsp->st_data) { |