Re: [PATCH 3/3] ASoC: wm8998: Initial WM8998 codec driver
From: kbuild test robot
Date: Mon Sep 28 2015 - 08:46:37 EST
Hi Richard,
[auto build test results on next-20150925 -- if it's inappropriate base, please ignore]
config: i386-allmodconfig (attached as .config)
reproduce:
git checkout ab5dc265e390dfc32011868e02eef600f40efc41
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
sound/soc/codecs/wm8998.c: In function 'wm8998_in1mux_put':
>> sound/soc/codecs/wm8998.c:155:45: error: 'struct snd_soc_codec' has no member named 'dapm'
return snd_soc_dapm_mux_update_power(&codec->dapm, kcontrol,
^
sound/soc/codecs/wm8998.c: In function 'wm8998_in2mux_put':
sound/soc/codecs/wm8998.c:190:45: error: 'struct snd_soc_codec' has no member named 'dapm'
return snd_soc_dapm_mux_update_power(&codec->dapm, kcontrol,
^
sound/soc/codecs/wm8998.c: In function 'wm8998_codec_probe':
sound/soc/codecs/wm8998.c:1308:35: error: 'struct snd_soc_codec' has no member named 'dapm'
priv->core.arizona->dapm = &codec->dapm;
^
sound/soc/codecs/wm8998.c:1313:33: error: 'struct snd_soc_codec' has no member named 'dapm'
snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS");
^
sound/soc/codecs/wm8998.c:1315:35: error: 'struct snd_soc_codec' has no member named 'dapm'
priv->core.arizona->dapm = &codec->dapm;
^
sound/soc/codecs/wm8998.c: In function 'wm8998_in2mux_put':
>> sound/soc/codecs/wm8998.c:193:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
sound/soc/codecs/wm8998.c: In function 'wm8998_in1mux_put':
sound/soc/codecs/wm8998.c:158:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +155 sound/soc/codecs/wm8998.c
149 ARIZONA_IN1L_SRC_MASK |
150 ARIZONA_IN1L_SRC_SE_MASK,
151 src_val);
152 break;
153 }
154
> 155 return snd_soc_dapm_mux_update_power(&codec->dapm, kcontrol,
156 ucontrol->value.enumerated.item[0],
157 e, NULL);
158 }
159
160 static int wm8998_in2mux_put(struct snd_kcontrol *kcontrol,
161 struct snd_ctl_elem_value *ucontrol)
162 {
163 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol);
164 struct wm8998_priv *wm8998 = snd_soc_codec_get_drvdata(codec);
165 struct arizona *arizona = wm8998->core.arizona;
166 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
167 unsigned int mux, inmode, src_val, mode_val;
168
169 mux = ucontrol->value.enumerated.item[0];
170 if (mux > 1)
171 return -EINVAL;
172
173 inmode = arizona->pdata.inmode[1 + (2 * mux)];
174 if (inmode & ARIZONA_INMODE_DMIC)
175 mode_val = 1 << ARIZONA_IN2_MODE_SHIFT;
176 else
177 mode_val = 0;
178
179 src_val = mux << ARIZONA_IN2L_SRC_SHIFT;
180 if (inmode & ARIZONA_INMODE_SE)
181 src_val |= 1 << ARIZONA_IN2L_SRC_SE_SHIFT;
182
183 snd_soc_update_bits(codec, ARIZONA_IN2L_CONTROL,
184 ARIZONA_IN2_MODE_MASK, mode_val);
185
186 snd_soc_update_bits(codec, ARIZONA_ADC_DIGITAL_VOLUME_2L,
187 ARIZONA_IN2L_SRC_MASK | ARIZONA_IN2L_SRC_SE_MASK,
188 src_val);
189
190 return snd_soc_dapm_mux_update_power(&codec->dapm, kcontrol,
191 ucontrol->value.enumerated.item[0],
192 e, NULL);
> 193 }
194
195 static const char * const wm8998_inmux_texts[] = {
196 "A",
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data