aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/wl1273.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-05-15 09:47:11 +0900
committerMark Brown <broonie@kernel.org>2020-05-18 16:15:07 +0100
commit5e518eddd11e8f71aaffc954dc7ee9572fc59808 (patch)
treea885e0a28834eed7d684678fdd037b994169bf50 /sound/soc/codecs/wl1273.c
parentASoC: cirrus: use snd_soc_xxx_active() (diff)
downloadwireguard-linux-5e518eddd11e8f71aaffc954dc7ee9572fc59808.tar.xz
wireguard-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/wl1273.c')
-rw-r--r--sound/soc/codecs/wl1273.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c
index b30bfcd6a125..c56b9329240f 100644
--- a/sound/soc/codecs/wl1273.c
+++ b/sound/soc/codecs/wl1273.c
@@ -183,7 +183,7 @@ static int snd_wl1273_set_audio_route(struct snd_kcontrol *kcontrol,
return 0;
/* Do not allow changes while stream is running */
- if (snd_soc_component_is_active(component))
+ if (snd_soc_component_active(component))
return -EPERM;
if (ucontrol->value.enumerated.item[0] >= ARRAY_SIZE(wl1273_audio_route))