summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen2015-05-19 21:49:09 +0200
committerMark Brown2015-05-20 12:18:32 +0200
commiteb13bd563a21c34696c942690586e64389b3e054 (patch)
treecb8a4b9be644d3ed43d518bc6713382a9135419c /sound
parentASoC: rt5640: Replace direct snd_soc_codec dapm field access (diff)
downloadkernel-qcow2-linux-eb13bd563a21c34696c942690586e64389b3e054.tar.gz
kernel-qcow2-linux-eb13bd563a21c34696c942690586e64389b3e054.tar.xz
kernel-qcow2-linux-eb13bd563a21c34696c942690586e64389b3e054.zip
ASoC: rt5651: 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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5651.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c
index f03c6fc1a7e9..a3506e193abc 100644
--- a/sound/soc/codecs/rt5651.c
+++ b/sound/soc/codecs/rt5651.c
@@ -1571,7 +1571,7 @@ static int rt5651_set_bias_level(struct snd_soc_codec *codec,
{
switch (level) {
case SND_SOC_BIAS_PREPARE:
- if (SND_SOC_BIAS_STANDBY == codec->dapm.bias_level) {
+ if (SND_SOC_BIAS_STANDBY == snd_soc_codec_get_bias_level(codec)) {
snd_soc_update_bits(codec, RT5651_PWR_ANLG1,
RT5651_PWR_VREF1 | RT5651_PWR_MB |
RT5651_PWR_BG | RT5651_PWR_VREF2,