diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-15 03:47:48 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-18 18:15:13 +0300 |
commit | 36ad1a87104e4a54f6acaffbe2d9533f80179e74 (patch) | |
tree | 47e34493a2fc68b6f1f7d7c94fb753ef9ff8dead /sound/soc/ti/omap-dmic.c | |
parent | aaeb5fb59965217789258486080105337483a9e7 (diff) | |
download | linux-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-dmic.c')
-rw-r--r-- | sound/soc/ti/omap-dmic.c | 4 |
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); |