lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 31 Oct 2021 11:33:02 +0800
From:   kernel test robot <>
To:     Jonathan Clarke <>
        Jonathan Clarke <>,
        Jaroslav Kysela <>,
        Takashi Iwai <>,,
Subject: Re: [PATCH] Make top/rear speaker, mute and micmute leds work on HP
 x360 14-ea000 laptops that use Realtek 245 codec

Hi Jonathan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tiwai-sound/for-next]
[cannot apply to v5.15-rc7 next-20211029]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in]

base: for-next
config: nds32-randconfig-r033-20211031 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add linux-review
        git fetch --no-tags linux-review Jonathan-Clarke/Make-top-rear-speaker-mute-and-micmute-leds-work-on-HP-x360-14-ea000-laptops-that-use-Realtek-245-codec/20211029-234508
        git checkout a4b221979b51a8d3256056869efc55d4dc80a4ad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <>

All warnings (new ones prefixed by >>):

   sound/pci/hda/patch_realtek.c: In function 'alc245_fixup_hp_x360_amp':
>> sound/pci/hda/patch_realtek.c:4417:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    4417 |                 static const hda_nid_t conn1[] = { 0x02 };
         |                 ^~~~~~

vim +4417 sound/pci/hda/patch_realtek.c

  4401	/* HP Spectre x360 14 model needs a unique workaround for enabling the amp;
  4402	 * it needs to toggle the GPIO0 once on and off at each time (bko#210633)
  4403	 */
  4404	static void alc245_fixup_hp_x360_amp(struct hda_codec *codec,
  4405					     const struct hda_fixup *fix, int action)
  4406	{
  4407		struct alc_spec *spec = codec->spec;
  4409		switch (action) {
  4411			spec->gpio_mask |= 0x01;
  4412			spec->gpio_dir |= 0x01;
  4414			/* use only amp at 0x02 for bottom(front) speaker,
  4415			 * otherwise it is set to use 0x02,0x03,0x06 and when used in conjunction
  4416			 * with top(rear) speaker 0x14, gets locked at full volume */
> 4417			static const hda_nid_t conn1[] = { 0x02 };
  4418			snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn1), conn1);
  4420			break;
  4421		case HDA_FIXUP_ACT_INIT:
  4422			/* need to toggle GPIO to enable the amp */
  4423			alc_update_gpio_data(codec, 0x01, true);
  4424			msleep(100);
  4425			alc_update_gpio_data(codec, 0x01, false);
  4426			break;
  4427		}
  4428	}

0-DAY CI Kernel Test Service, Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (32681 bytes)

Powered by blists - more mailing lists