ASoC: Add helper function to check whether a CODEC is active
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 5 Mar 2014 12:17:45 +0000 (13:17 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 6 Mar 2014 09:04:55 +0000 (17:04 +0800)
commit5c898e74d135a23ce12e0263c1a3c78eeae1b52b
tree987d9a6a06174368d141d6caee65ad4c9e6349bf
parenta1a0cc0646e38b41bfaac94f2b84422bb1df40e0
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>
include/sound/soc.h
sound/soc/codecs/adav80x.c
sound/soc/codecs/tlv320aic23.c
sound/soc/codecs/tlv320dac33.c
sound/soc/codecs/uda1380.c
sound/soc/codecs/wl1273.c
sound/soc/codecs/wm8711.c
sound/soc/codecs/wm8753.c