diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-15 02:47:11 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-18 17:15:07 +0200 |
commit | 5e518eddd11e8f71aaffc954dc7ee9572fc59808 (patch) | |
tree | a885e0a28834eed7d684678fdd037b994169bf50 /sound/soc/codecs/arizona.c | |
parent | ASoC: cirrus: use snd_soc_xxx_active() (diff) | |
download | linux-5e518eddd11e8f71aaffc954dc7ee9572fc59808.tar.xz linux-5e518eddd11e8f71aaffc954dc7ee9572fc59808.zip |
ASoC: codecs: 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>
Link: https://lore.kernel.org/r/87wo5e58j4.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/arizona.c')
-rw-r--r-- | sound/soc/codecs/arizona.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 70341b30f567..9716c9624a89 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1926,7 +1926,7 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai, if (clk_id == dai_priv->clk) return 0; - if (dai->active) { + if (snd_soc_dai_active(dai)) { dev_err(component->dev, "Can't change clock on active DAI %d\n", dai->id); return -EBUSY; |