Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1630045 > unrolled thread
| Started by | Maarten Maathuis <madman2003@gmail.com> |
|---|---|
| First post | 2017-04-24 23:40 +0200 |
| Last post | 2017-04-25 14:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] platform/x86/intel-vbtn: add volume up and down Maarten Maathuis <madman2003@gmail.com> - 2017-04-24 23:40 +0200
Re: [PATCH] platform/x86/intel-vbtn: add volume up and down Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-04-25 14:20 +0200
| From | Maarten Maathuis <madman2003@gmail.com> |
|---|---|
| Date | 2017-04-24 23:40 +0200 |
| Subject | [PATCH] platform/x86/intel-vbtn: add volume up and down |
| Message-ID | <tzTS9-3S5-7@gated-at.bofh.it> |
Tested on HP Elite X2 1012 G1.
Matches event report of Lenovo Helix 2
(https://www.spinics.net/lists/ibm-acpi-devel/msg03982.html).
V2: Fix indent and add sign-off
V3: Missing whitespace correction
Signed-off-by: Maarten Maathuis <madman2003@shikahr.net>
---
drivers/platform/x86/intel-vbtn.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c
index 554e82ebe83c..dc270fe793a1 100644
--- a/drivers/platform/x86/intel-vbtn.c
+++ b/drivers/platform/x86/intel-vbtn.c
@@ -37,6 +37,10 @@ static const struct acpi_device_id intel_vbtn_ids[] = {
static const struct key_entry intel_vbtn_keymap[] = {
{ KE_IGNORE, 0xC0, { KEY_POWER } }, /* power key press */
{ KE_KEY, 0xC1, { KEY_POWER } }, /* power key release */
+ { KE_KEY, 0xC4, { KEY_VOLUMEUP } }, /* volume-up key press */
+ { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* volume-up key release */
+ { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* volume-down key press */
+ { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* volume-down key release */
{ KE_END },
};
--
2.12.2
[toc] | [next] | [standalone]
| From | Andy Shevchenko <andy.shevchenko@gmail.com> |
|---|---|
| Date | 2017-04-25 14:20 +0200 |
| Message-ID | <tA7BL-4B0-7@gated-at.bofh.it> |
| In reply to | #1630045 |
On Tue, Apr 25, 2017 at 12:35 AM, Maarten Maathuis <madman2003@gmail.com> wrote:
> Tested on HP Elite X2 1012 G1.
> Matches event report of Lenovo Helix 2
> (https://www.spinics.net/lists/ibm-acpi-devel/msg03982.html).
>
> V2: Fix indent and add sign-off
> V3: Missing whitespace correction
Slightly modified (*) version pushed to testing, thanks!
*) Fixed subject, removed changelog from commit message, improved indentation
>
> Signed-off-by: Maarten Maathuis <madman2003@shikahr.net>
> ---
> drivers/platform/x86/intel-vbtn.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c
> index 554e82ebe83c..dc270fe793a1 100644
> --- a/drivers/platform/x86/intel-vbtn.c
> +++ b/drivers/platform/x86/intel-vbtn.c
> @@ -37,6 +37,10 @@ static const struct acpi_device_id intel_vbtn_ids[] = {
> static const struct key_entry intel_vbtn_keymap[] = {
> { KE_IGNORE, 0xC0, { KEY_POWER } }, /* power key press */
> { KE_KEY, 0xC1, { KEY_POWER } }, /* power key release */
> + { KE_KEY, 0xC4, { KEY_VOLUMEUP } }, /* volume-up key press */
> + { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* volume-up key release */
> + { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* volume-down key press */
> + { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* volume-down key release */
> { KE_END },
> };
>
> --
> 2.12.2
>
--
With Best Regards,
Andy Shevchenko
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web