From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v4 3/3] ALSA: hda: add support for Huawei WMI micmute LED Date: Sun, 11 Nov 2018 09:44:51 +0100 Message-ID: References: <20181109234526.4280-1-ayman.bagabas@gmail.com> <20181109234526.4280-4-ayman.bagabas@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Andy Shevchenko Cc: ALSA Development Mailing List , Ayman Bagabas , Linux Kernel Mailing List , Hui Wang , Kailang Yang , Darren Hart , Platform Driver , Andy Shevchenko List-Id: platform-driver-x86.vger.kernel.org On Sat, 10 Nov 2018 15:26:55 +0100, Andy Shevchenko wrote: > > On Sat, Nov 10, 2018 at 1:46 AM Ayman Bagabas wrote: > > > > Some of Huawei laptops come with a LED in the micmute key. This patch > > enables and disable this LED accordingly. > > This enables micmute LED for: > > 1. Matebook X (19e5:3200), (19e5:3201) > > 2. Matebook X Pro (19e5:3204) > > > > Signed-off-by: Ayman Bagabas > > --- > > sound/pci/hda/huawei_wmi_helper.c | 47 +++++++++++++++++++++++++++++++ > > sound/pci/hda/patch_realtek.c | 14 ++++++++- > > 2 files changed, 60 insertions(+), 1 deletion(-) > > create mode 100644 sound/pci/hda/huawei_wmi_helper.c > > > > diff --git a/sound/pci/hda/huawei_wmi_helper.c b/sound/pci/hda/huawei_wmi_helper.c > > new file mode 100644 > > index 000000000000..7c91f914ffba > > --- /dev/null > > +++ b/sound/pci/hda/huawei_wmi_helper.c > > @@ -0,0 +1,47 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* Helper functions for Huawei WMI micmute LED; > > + * to be included from codec driver > > + */ > > + > > > +#if IS_ENABLED(CONFIG_HUAWEI_LAPTOP) > > ENABLED or REACHABLE? FWIW, other similar codes take ENABLED. It's dynamic binding, and the codec driver may be re-bound even if it's a built-in. Takashi