aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/ti/omap-dmic.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-05-15 09:47:48 +0900
committerMark Brown <broonie@kernel.org>2020-05-18 16:15:13 +0100
commit36ad1a87104e4a54f6acaffbe2d9533f80179e74 (patch)
tree47e34493a2fc68b6f1f7d7c94fb753ef9ff8dead /sound/soc/ti/omap-dmic.c
parentASoC: pxa: use snd_soc_xxx_active() (diff)
downloadwireguard-linux-36ad1a87104e4a54f6acaffbe2d9533f80179e74.tar.xz
wireguard-linux-36ad1a87104e4a54f6acaffbe2d9533f80179e74.zip
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-dmic.c')
-rw-r--r--sound/soc/ti/omap-dmic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/ti/omap-dmic.c b/sound/soc/ti/omap-dmic.c
index 913579c43e9d..01abf1be5d78 100644
--- a/sound/soc/ti/omap-dmic.c
+++ b/sound/soc/ti/omap-dmic.c
@@ -95,7 +95,7 @@ static int omap_dmic_dai_startup(struct snd_pcm_substream *substream,
mutex_lock(&dmic->mutex);
- if (!dai->active)
+ if (!snd_soc_dai_active(dai))
dmic->active = 1;
else
ret = -EBUSY;
@@ -114,7 +114,7 @@ static void omap_dmic_dai_shutdown(struct snd_pcm_substream *substream,
cpu_latency_qos_remove_request(&dmic->pm_qos_req);
- if (!dai->active)
+ if (!snd_soc_dai_active(dai))
dmic->active = 0;
mutex_unlock(&dmic->mutex);