summaryrefslogtreecommitdiff
path: root/sound/soc/ti/omap-mcbsp.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-05-15 03:47:48 +0300
committerMark Brown <broonie@kernel.org>2020-05-18 18:15:13 +0300
commit36ad1a87104e4a54f6acaffbe2d9533f80179e74 (patch)
tree47e34493a2fc68b6f1f7d7c94fb753ef9ff8dead /sound/soc/ti/omap-mcbsp.c
parentaaeb5fb59965217789258486080105337483a9e7 (diff)
downloadlinux-36ad1a87104e4a54f6acaffbe2d9533f80179e74.tar.xz
ASoC: ti: use snd_soc_xxx_active()
We have snd_soc_dai/dai_stream/component_active() macro This patch uses it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/87mu6a58i3.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti/omap-mcbsp.c')
-rw-r--r--sound/soc/ti/omap-mcbsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c
index 6c83b9888467..4e67769b795a 100644
--- a/sound/soc/ti/omap-mcbsp.c
+++ b/sound/soc/ti/omap-mcbsp.c
@@ -786,7 +786,7 @@ static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream,
struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai);
int err = 0;
- if (!cpu_dai->active)
+ if (!snd_soc_dai_active(cpu_dai))
err = omap_mcbsp_request(mcbsp);
/*
@@ -841,7 +841,7 @@ static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream,
mcbsp->latency[stream1] = 0;
- if (!cpu_dai->active) {
+ if (!snd_soc_dai_active(cpu_dai)) {
omap_mcbsp_free(mcbsp);
mcbsp->configured = 0;
}