From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v3 3/3] ALSA: hda: add support for Huawei WMI micmute LED Date: Fri, 09 Nov 2018 14:28:12 +0100 Message-ID: References: <20181108171701.4444-1-ayman.bagabas@gmail.com> <20181108171701.4444-4-ayman.bagabas@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Ayman Bagabas Cc: ALSA Development Mailing List , Hui Wang , Andy Shevchenko , Darren Hart , Jaroslav Kysela , Kailang Yang , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org List-Id: platform-driver-x86.vger.kernel.org On Fri, 09 Nov 2018 14:20:47 +0100, Ayman Bagabas wrote: > > [1 ] > > On Fri, Nov 9, 2018, 4:01 AM Takashi Iwai > On Thu, 08 Nov 2018 18:16:55 +0100, > Ayman Bagabas wrote: > > > > diff --git a/drivers/platform/x86/huawei_wmi.c b/drivers/platform/x86/ > huawei_wmi.c > > index 658c44ab2126..f06aa967c311 100644 > > --- a/drivers/platform/x86/huawei_wmi.c > > +++ b/drivers/platform/x86/huawei_wmi.c > > @@ -23,6 +23,7 @@ > >  #include > >  #include > > >  #include > > +#include > >  > >  MODULE_AUTHOR("Ayman Bagabas "); > >  MODULE_DESCRIPTION("Huawei WMI hotkeys"); > > diff --git a/include/linux/platform_data/x86/huawei_wmi.h b/include/ > linux/platform_data/x86/huawei_wmi.h > > new file mode 100644 > > index 000000000000..dd251780ee5c > > --- /dev/null > > +++ b/include/linux/platform_data/x86/huawei_wmi.h > > @@ -0,0 +1,9 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +#if IS_ENABLED(CONFIG_HUAWEI_LAPTOP) > > +#ifndef __HUAWEI_WMI_H__ > > +#define __HUAWEI_WMI_H__ > > + > > +int huawei_wmi_micmute_led_set(bool on); > > + > > +#endif > > +#endif > > These changes should belong to the WMI patch. > > > @@ -5765,6 +5769,10 @@ static const struct hda_fixup alc269_fixups[] = { > >               .chained = true, > >               .chain_id = ALC269_FIXUP_HEADSET_MIC > >       }, > > +     [ALC256_FIXUP_HUAWEI_WMI_MICMUTE_LED] = { > > +             .type = HDA_FIXUP_FUNC, > > +             .v.func = alc_fixup_huawei_wmi > > +     }, > >       [ALC256_FIXUP_HUAWEI_MBXP_PINS] = { > >               .type = HDA_FIXUP_PINS, > >               .v.pins = (const struct hda_pintbl[]) { > > @@ -5779,7 +5787,9 @@ static const struct hda_fixup alc269_fixups[] = { > >                       {0x1e, 0x411111f0}, > >                       {0x21, 0x04211020}, > >                       { } > > -             } > > +             }, > > +             .chained = true, > > +             .chain_id = ALC256_FIXUP_HUAWEI_WMI_MICMUTE_LED > >       }, > >       [ALC269_FIXUP_ASUS_X101_FUNC] = { > >               .type = HDA_FIXUP_FUNC, > > This means that ALC256_FIXUP_HUAWEI_MBXP_PINS performs both the pin > config fixup and the mic-mute LED enablement. > > > @@ -6609,6 +6619,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl > [] = { > >       SND_PCI_QUIRK(0x17aa, 0x5109, "Thinkpad", > ALC269_FIXUP_LIMIT_INT_MIC_BOOST), > >       SND_PCI_QUIRK(0x17aa, 0x511e, "Thinkpad", > ALC298_FIXUP_TPT470_DOCK), > >       SND_PCI_QUIRK(0x17aa, 0x511f, "Thinkpad", > ALC298_FIXUP_TPT470_DOCK), > > +     SND_PCI_QUIRK(0x19e5, 0x3200, "Huawei MBX", > ALC256_FIXUP_HUAWEI_WMI_MICMUTE_LED), > >       SND_PCI_QUIRK(0x19e5, 0x3204, "Huawei MBXP", > ALC256_FIXUP_HUAWEI_MBXP_PINS), > >       SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FIXUP_PCM_44K), > >       SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", > ALC269_FIXUP_LENOVO_EAPD), > > ... and yet you add a new entry for performing only mic-mute LED. > I guess the chaining is done wrongly above? > > They are suppose to be two different devices. MBXP should apply both, but the > MBX should only perform the LED. Then please write it the changelog. Otherwise readers have no idea whether it's an intentional change or an oversight. thanks, Takashi