Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: twl4030: Replace direct snd_soc_codec dapm field access

The dapm field of the snd_soc_codec struct is eventually going to be
removed, in preparation for this replace all manual access to
codec->dapm.bias_level with snd_soc_codec_get_bias_level().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Lars-Peter Clausen and committed by
Mark Brown
1682c8e5 37e931c1

+1 -1
+1 -1
sound/soc/codecs/twl4030.c
··· 1588 1588 case SND_SOC_BIAS_PREPARE: 1589 1589 break; 1590 1590 case SND_SOC_BIAS_STANDBY: 1591 - if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) 1591 + if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) 1592 1592 twl4030_codec_enable(codec, 1); 1593 1593 break; 1594 1594 case SND_SOC_BIAS_OFF: