From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:58794 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932423AbbLXGoX (ORCPT ); Thu, 24 Dec 2015 01:44:23 -0500 Date: Thu, 24 Dec 2015 07:44:22 +0100 Message-ID: From: Takashi Iwai To: Hui Wang Cc: alsa-devel@alsa-project.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] ALSA: hda - Add mic mute hotkey quirk for Lenovo ThinkCentre AIO In-Reply-To: <1450928798-31191-1-git-send-email-hui.wang@canonical.com> References: <1450928798-31191-1-git-send-email-hui.wang@canonical.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: stable-owner@vger.kernel.org List-ID: On Thu, 24 Dec 2015 04:46:37 +0100, Hui Wang wrote: > > From: Kailang > > The Lenovo ThinkCenter AIO uses Line2 (NID 0x1b) to implement the > micmute hotkey, here we register an input device and use Line2 unsol > event to collect the hotkey pressing or releasing. > > In the meanwhile, the micmute led is controlled by GPIO2, so we > use an existing function alc_fixup_gpio_mic_mute_hook() to control > the led. > > Cc: > Signed-off-by: Kailang Is it mandatory expose this as a key event? I mean, wouldn't it suffice just toggle the mic mute by the driver itself? User-space will get the notification by the mixer status change in anyway. Takashi