From: kernel test robot <lkp@intel.com>
To: Jonathan Clarke <jonathan.a.clarke@gmail.com>
Cc: kbuild-all@lists.01.org,
Jonathan Clarke <jonathan.a.clarke@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Make top/rear speaker, mute and micmute leds work on HP x360 14-ea000 laptops that use Realtek 245 codec
Date: Sun, 31 Oct 2021 11:33:02 +0800 [thread overview]
Message-ID: <202110311128.2bJJBYyF-lkp@intel.com> (raw)
In-Reply-To: <20211029154313.1005394-1-jonathan.a.clarke@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3171 bytes --]
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
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jonathan-Clarke/Make-top-rear-speaker-mute-and-micmute-leds-work-on-HP-x360-14-ea000-laptops-that-use-Realtek-245-codec/20211029-234508
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git 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 https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/a4b221979b51a8d3256056869efc55d4dc80a4ad
git remote add linux-review https://github.com/0day-ci/linux
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 <lkp@intel.com>
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
4400
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;
4408
4409 switch (action) {
4410 case HDA_FIXUP_ACT_PRE_PROBE:
4411 spec->gpio_mask |= 0x01;
4412 spec->gpio_dir |= 0x01;
4413
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);
4419
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 }
4429
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32681 bytes --]
next prev parent reply other threads:[~2021-10-31 3:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 15:43 [PATCH] Make top/rear speaker, mute and micmute leds work on HP x360 14-ea000 laptops that use Realtek 245 codec Jonathan Clarke
2021-10-30 10:01 ` Takashi Iwai
2021-11-01 10:34 ` Jonathan Clarke
2021-11-02 8:19 ` Takashi Iwai
2021-11-02 12:45 ` Jonathan Clarke
2021-10-31 3:33 ` kernel test robot [this message]
2021-10-31 17:23 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110311128.2bJJBYyF-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=jonathan.a.clarke@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox