* [morimoto-linux:fw-cleanup-2019-11-13-v2 420/454] sound/soc/codecs/rt5645.c:3274:9: error: implicit declaration of function 'snd_soc_component_read32'
@ 2019-11-16 14:16 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-16 14:16 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 9325 bytes --]
tree: https://github.com/morimoto/linux fw-cleanup-2019-11-13-v2
head: 0c62b9a75f01baceac377b92daa288c4e59ee926
commit: 8df30474244cca81df273624bdf788a14a44ddb9 [420/454] ASoC: remove snd_soc_component_read32()
config: x86_64-randconfig-a003-20191116 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
git checkout 8df30474244cca81df273624bdf788a14a44ddb9
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
sound/soc/codecs/rt5645.c: In function 'rt5645_jack_detect_work':
>> sound/soc/codecs/rt5645.c:3274:9: error: implicit declaration of function 'snd_soc_component_read32' [-Werror=implicit-function-declaration]
val = snd_soc_component_read32(rt5645->component, RT5645_A_JD_CTRL1) & 0x002;
^
cc1: some warnings being treated as errors
vim +/snd_soc_component_read32 +3274 sound/soc/codecs/rt5645.c
f3fa1bbd836a7d Oder Chiou 2014-09-19 3250
cd6e82b814ca73 Oder Chiou 2014-10-07 3251 static void rt5645_jack_detect_work(struct work_struct *work)
cd6e82b814ca73 Oder Chiou 2014-10-07 3252 {
cd6e82b814ca73 Oder Chiou 2014-10-07 3253 struct rt5645_priv *rt5645 =
cd6e82b814ca73 Oder Chiou 2014-10-07 3254 container_of(work, struct rt5645_priv, jack_detect_work.work);
6e747d5311fc67 Bard Liao 2015-04-28 3255 int val, btn_type, gpio_state = 0, report = 0;
6e747d5311fc67 Bard Liao 2015-04-28 3256
79223bf1909191 Kuninori Morimoto 2018-01-29 3257 if (!rt5645->component)
f136dce4511602 Nicolas Boichat 2015-07-20 3258 return;
f2a5ded38592e5 Nicolas Boichat 2015-07-17 3259
6e747d5311fc67 Bard Liao 2015-04-28 3260 switch (rt5645->pdata.jd_mode) {
6e747d5311fc67 Bard Liao 2015-04-28 3261 case 0: /* Not using rt5645 JD */
0b0cefc8fd105f Oder Chiou 2015-06-10 3262 if (rt5645->gpiod_hp_det) {
0b0cefc8fd105f Oder Chiou 2015-06-10 3263 gpio_state = gpiod_get_value(rt5645->gpiod_hp_det);
79223bf1909191 Kuninori Morimoto 2018-01-29 3264 dev_dbg(rt5645->component->dev, "gpio_state = %d\n",
0b0cefc8fd105f Oder Chiou 2015-06-10 3265 gpio_state);
79223bf1909191 Kuninori Morimoto 2018-01-29 3266 report = rt5645_jack_detect(rt5645->component, gpio_state);
6e747d5311fc67 Bard Liao 2015-04-28 3267 }
6e747d5311fc67 Bard Liao 2015-04-28 3268 snd_soc_jack_report(rt5645->hp_jack,
6e747d5311fc67 Bard Liao 2015-04-28 3269 report, SND_JACK_HEADPHONE);
6e747d5311fc67 Bard Liao 2015-04-28 3270 snd_soc_jack_report(rt5645->mic_jack,
6e747d5311fc67 Bard Liao 2015-04-28 3271 report, SND_JACK_MICROPHONE);
f312bc59d21bed Nicolas Boichat 2015-07-14 3272 return;
e7cfd867fd9842 Jacob Rasmussen 2019-11-11 3273 case 4:
e7cfd867fd9842 Jacob Rasmussen 2019-11-11 @3274 val = snd_soc_component_read32(rt5645->component, RT5645_A_JD_CTRL1) & 0x002;
e7cfd867fd9842 Jacob Rasmussen 2019-11-11 3275 break;
6b5da66322c50b Bard Liao 2017-06-28 3276 default: /* read rt5645 jd1_1 status */
db8723832de14a Kuninori Morimoto 2019-09-17 3277 val = snd_soc_component_read(rt5645->component, RT5645_INT_IRQ_ST) & 0x1000;
6e747d5311fc67 Bard Liao 2015-04-28 3278 break;
6e747d5311fc67 Bard Liao 2015-04-28 3279
6e747d5311fc67 Bard Liao 2015-04-28 3280 }
6e747d5311fc67 Bard Liao 2015-04-28 3281
6b5da66322c50b Bard Liao 2017-06-28 3282 if (!val && (rt5645->jack_type == 0)) { /* jack in */
79223bf1909191 Kuninori Morimoto 2018-01-29 3283 report = rt5645_jack_detect(rt5645->component, 1);
6b5da66322c50b Bard Liao 2017-06-28 3284 } else if (!val && rt5645->jack_type != 0) {
6e747d5311fc67 Bard Liao 2015-04-28 3285 /* for push button and jack out */
6e747d5311fc67 Bard Liao 2015-04-28 3286 btn_type = 0;
db8723832de14a Kuninori Morimoto 2019-09-17 3287 if (snd_soc_component_read(rt5645->component, RT5645_INT_IRQ_ST) & 0x4) {
6e747d5311fc67 Bard Liao 2015-04-28 3288 /* button pressed */
6e747d5311fc67 Bard Liao 2015-04-28 3289 report = SND_JACK_HEADSET;
79223bf1909191 Kuninori Morimoto 2018-01-29 3290 btn_type = rt5645_button_detect(rt5645->component);
6e747d5311fc67 Bard Liao 2015-04-28 3291 /* rt5650 can report three kinds of button behavior,
6e747d5311fc67 Bard Liao 2015-04-28 3292 one click, double click and hold. However,
6e747d5311fc67 Bard Liao 2015-04-28 3293 currently we will report button pressed/released
6e747d5311fc67 Bard Liao 2015-04-28 3294 event. So all the three button behaviors are
6e747d5311fc67 Bard Liao 2015-04-28 3295 treated as button pressed. */
6e747d5311fc67 Bard Liao 2015-04-28 3296 switch (btn_type) {
6e747d5311fc67 Bard Liao 2015-04-28 3297 case 0x8000:
6e747d5311fc67 Bard Liao 2015-04-28 3298 case 0x4000:
6e747d5311fc67 Bard Liao 2015-04-28 3299 case 0x2000:
6e747d5311fc67 Bard Liao 2015-04-28 3300 report |= SND_JACK_BTN_0;
6e747d5311fc67 Bard Liao 2015-04-28 3301 break;
6e747d5311fc67 Bard Liao 2015-04-28 3302 case 0x1000:
6e747d5311fc67 Bard Liao 2015-04-28 3303 case 0x0800:
6e747d5311fc67 Bard Liao 2015-04-28 3304 case 0x0400:
6e747d5311fc67 Bard Liao 2015-04-28 3305 report |= SND_JACK_BTN_1;
6e747d5311fc67 Bard Liao 2015-04-28 3306 break;
6e747d5311fc67 Bard Liao 2015-04-28 3307 case 0x0200:
6e747d5311fc67 Bard Liao 2015-04-28 3308 case 0x0100:
6e747d5311fc67 Bard Liao 2015-04-28 3309 case 0x0080:
6e747d5311fc67 Bard Liao 2015-04-28 3310 report |= SND_JACK_BTN_2;
6e747d5311fc67 Bard Liao 2015-04-28 3311 break;
6e747d5311fc67 Bard Liao 2015-04-28 3312 case 0x0040:
6e747d5311fc67 Bard Liao 2015-04-28 3313 case 0x0020:
6e747d5311fc67 Bard Liao 2015-04-28 3314 case 0x0010:
6e747d5311fc67 Bard Liao 2015-04-28 3315 report |= SND_JACK_BTN_3;
6e747d5311fc67 Bard Liao 2015-04-28 3316 break;
6e747d5311fc67 Bard Liao 2015-04-28 3317 case 0x0000: /* unpressed */
6e747d5311fc67 Bard Liao 2015-04-28 3318 break;
6e747d5311fc67 Bard Liao 2015-04-28 3319 default:
79223bf1909191 Kuninori Morimoto 2018-01-29 3320 dev_err(rt5645->component->dev,
6e747d5311fc67 Bard Liao 2015-04-28 3321 "Unexpected button code 0x%04x\n",
6e747d5311fc67 Bard Liao 2015-04-28 3322 btn_type);
6e747d5311fc67 Bard Liao 2015-04-28 3323 break;
6e747d5311fc67 Bard Liao 2015-04-28 3324 }
6e747d5311fc67 Bard Liao 2015-04-28 3325 }
6e747d5311fc67 Bard Liao 2015-04-28 3326 if (btn_type == 0)/* button release */
6e747d5311fc67 Bard Liao 2015-04-28 3327 report = rt5645->jack_type;
7ff6319e7da5c0 Bard Liao 2015-12-30 3328 else {
7ff6319e7da5c0 Bard Liao 2015-12-30 3329 mod_timer(&rt5645->btn_check_timer,
7ff6319e7da5c0 Bard Liao 2015-12-30 3330 msecs_to_jiffies(100));
7ff6319e7da5c0 Bard Liao 2015-12-30 3331 }
6b5da66322c50b Bard Liao 2017-06-28 3332 } else {
6e747d5311fc67 Bard Liao 2015-04-28 3333 /* jack out */
6e747d5311fc67 Bard Liao 2015-04-28 3334 report = 0;
79223bf1909191 Kuninori Morimoto 2018-01-29 3335 snd_soc_component_update_bits(rt5645->component,
6e747d5311fc67 Bard Liao 2015-04-28 3336 RT5645_INT_IRQ_ST, 0x1, 0x0);
79223bf1909191 Kuninori Morimoto 2018-01-29 3337 rt5645_jack_detect(rt5645->component, 0);
6e747d5311fc67 Bard Liao 2015-04-28 3338 }
6e747d5311fc67 Bard Liao 2015-04-28 3339
6e747d5311fc67 Bard Liao 2015-04-28 3340 snd_soc_jack_report(rt5645->hp_jack, report, SND_JACK_HEADPHONE);
6e747d5311fc67 Bard Liao 2015-04-28 3341 snd_soc_jack_report(rt5645->mic_jack, report, SND_JACK_MICROPHONE);
6e747d5311fc67 Bard Liao 2015-04-28 3342 if (rt5645->en_button_func)
6e747d5311fc67 Bard Liao 2015-04-28 3343 snd_soc_jack_report(rt5645->btn_jack,
e0b5d90669139c Bard Liao 2015-04-30 3344 report, SND_JACK_BTN_0 | SND_JACK_BTN_1 |
e0b5d90669139c Bard Liao 2015-04-30 3345 SND_JACK_BTN_2 | SND_JACK_BTN_3);
f312bc59d21bed Nicolas Boichat 2015-07-14 3346 }
6e747d5311fc67 Bard Liao 2015-04-28 3347
:::::: The code at line 3274 was first introduced by commit
:::::: e7cfd867fd9842f346688f28412eb83dec342900 ASoC: rt5645: Fixed buddy jack support.
:::::: TO: Jacob Rasmussen <jacobraz@chromium.org>
:::::: CC: Mark Brown <broonie@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29604 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-16 14:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-16 14:16 [morimoto-linux:fw-cleanup-2019-11-13-v2 420/454] sound/soc/codecs/rt5645.c:3274:9: error: implicit declaration of function 'snd_soc_component_read32' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.