From: Ike Panhc <ike.pan@canonical.com>
To: Darren Hart <dvhart@infradead.org>
Cc: Alex Hung <alex.hung@canonical.com>, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] ideapad_laptop: add an event for mic mute hotkey
Date: Wed, 8 Jun 2016 11:26:44 +0800 [thread overview]
Message-ID: <57579074.1080303@canonical.com> (raw)
In-Reply-To: <20160607215404.GB3829@f23x64.localdomain>
On 06/08/2016 05:54 AM, Darren Hart wrote:
> On Fri, Jun 03, 2016 at 04:33:34PM +0800, Ike Panhc wrote:
>> On 05/30/2016 03:26 PM, Alex Hung wrote:
>>> Newer ideapad supports new mic new hotkey, and it is implemented
>>> via ACPI interface. This patch conver the mic mute event to
>>> a keycode KEY_MICMUTE
>>>
>>> Signed-off-by: Alex Hung <alex.hung@canonical.com>
>>> ---
>>> drivers/platform/x86/ideapad-laptop.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
>>> index 4a23fbc..aa87a42 100644
>>> --- a/drivers/platform/x86/ideapad-laptop.c
>>> +++ b/drivers/platform/x86/ideapad-laptop.c
>>> @@ -567,6 +567,7 @@ static void ideapad_sysfs_exit(struct ideapad_private *priv)
>>> static const struct key_entry ideapad_keymap[] = {
>>> { KE_KEY, 6, { KEY_SWITCHVIDEOMODE } },
>>> { KE_KEY, 7, { KEY_CAMERA } },
>>> + { KE_KEY, 8, { KEY_MICMUTE } },
>>> { KE_KEY, 11, { KEY_F16 } },
>>> { KE_KEY, 13, { KEY_WLAN } },
>>> { KE_KEY, 16, { KEY_PROG1 } },
>>> @@ -809,6 +810,9 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
>>> break;
>>> case 13:
>>> case 11:
>>> + case 8:
>>
>> fall through is easier to read
>>
>>> + ideapad_input_report(priv, vpc_bit);
>>> + break;
>>
>> so above two lines are not necessary.
>
> Are you happy with the changes otherwise Ike?
>
>>
>>> case 7:
>>> case 6:
>>> ideapad_input_report(priv, vpc_bit);
>>>
>
> Thanks,
>
Yes. Looks good to me.
next prev parent reply other threads:[~2016-06-08 3:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-30 7:26 [PATCH] ideapad_laptop: add an event for mic mute hotkey Alex Hung
2016-06-03 8:33 ` Ike Panhc
2016-06-07 21:54 ` Darren Hart
2016-06-08 3:26 ` Ike Panhc [this message]
2016-06-08 20:02 ` Darren Hart
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=57579074.1080303@canonical.com \
--to=ike.pan@canonical.com \
--cc=alex.hung@canonical.com \
--cc=dvhart@infradead.org \
--cc=platform-driver-x86@vger.kernel.org \
/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