lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMFK4TOjQaCWbhyNbe7MrDg+12WY0TMTh_=s3QsziJVu=XgH6A@mail.gmail.com>
Date:	Fri, 9 Jan 2015 13:42:09 +0100
From:	Henk <henk.vergonet@...il.com>
To:	linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Fwd: [RFC PATCH 2/2] USB: input: yealink.c: add mapping for "RING"
 and "MUTE" keys

Signed-off-by: Henk Vergonet <henk.vergonet@...il.com>


On Mon, Dec 22, 2014 at 3:41 PM, Daniele Forsi <dforsi@...il.com> wrote:
>
> According to the user manual of the "VOIP-3 SKY" USB phone, the RING
> key is used to select different ring tones and the MUTE key is used
> to mute the microphone.
>
> Signed-off-by: Daniele Forsi <dforsi@...il.com>
> ---
>  drivers/input/misc/yealink.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c
> index e9403da..0b86c49 100644
> --- a/drivers/input/misc/yealink.c
> +++ b/drivers/input/misc/yealink.c
> @@ -189,7 +189,9 @@ static int setChar(struct yealink_dev *yld, int el, int chr)
>   * USB-P1K button layout:
>   *
>   *             up
> + *            ring
>   *       IN           OUT
> + *            mute
>   *            down
>   *
>   *     pickup   C    hangup
> @@ -207,7 +209,9 @@ static int map_p1k_to_key(int scancode)
>         switch(scancode) {              /* phone key:   */
>         case 0x23: return KEY_LEFT;     /*   IN         */
>         case 0x33: return KEY_UP;       /*   up         */
> +       case 0x44: return KEY_SOUND;    /*   ring       */
>         case 0x04: return KEY_RIGHT;    /*   OUT        */
> +       case 0x41: return KEY_MICMUTE;  /*   mute       */
>         case 0x24: return KEY_DOWN;     /*   down       */
>         case 0x03: return KEY_ENTER;    /*   pickup     */
>         case 0x14: return KEY_BACKSPACE; /*  C          */
> --
> 2.1.3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ