diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-03-05 13:17:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-06 10:04:55 +0100 |
commit | 5c898e74d135a23ce12e0263c1a3c78eeae1b52b (patch) | |
tree | 987d9a6a06174368d141d6caee65ad4c9e6349bf /sound/soc/codecs/wm8711.c | |
parent | ASoC: Fix active count tracking for CODEC to CODEC links (diff) | |
download | linux-5c898e74d135a23ce12e0263c1a3c78eeae1b52b.tar.xz linux-5c898e74d135a23ce12e0263c1a3c78eeae1b52b.zip |
ASoC: Add helper function to check whether a CODEC is active
Instead of directly checking the 'active' field of the CODEC struct add a new
helper function that will return either true or false depending on whether the
CODEC is active. This will make the migration to the component level easier.
The patch also updates all CODEC drivers that check the active attribute to use
the new helper function.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r-- | sound/soc/codecs/wm8711.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index d99f948c513c..6efcc40a7cb3 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c @@ -201,7 +201,7 @@ static void wm8711_shutdown(struct snd_pcm_substream *substream, struct snd_soc_codec *codec = dai->codec; /* deactivate */ - if (!codec->active) { + if (!snd_soc_codec_is_active(codec)) { udelay(50); snd_soc_write(codec, WM8711_ACTIVE, 0x0); } |