lkml.org 
[lkml]   [2005]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 16/26] HID - add support for Logitech UltraX Media Remote control
    Date
    From
    Subject: [PATCH] Input: HID - add support for Logitech UltraX Media Remote control
    From: Micah F. Galizia <mfgalizi@uwo.ca>
    Date: 1125897135 -0500

    The hid now supports the Logitech UltraX Media Remote control.
    For now, ID 45 on the consumer usage page has been incorrectly
    mapped to KEY_RADIO since no other devices uses it.

    Signed-off-by: Micah F. Galizia <mfgalizi@csd.uwo.ca>
    Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

    ---

    drivers/usb/input/hid-input.c | 28 ++++++++++++++++++++++++++--
    1 files changed, 26 insertions(+), 2 deletions(-)

    39fd748f56012fdde4cf862f127ce4cdec50d661
    diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
    --- a/drivers/usb/input/hid-input.c
    +++ b/drivers/usb/input/hid-input.c
    @@ -247,6 +247,7 @@ static void hidinput_configure_usage(str
    case 0x000: goto ignore;
    case 0x034: map_key_clear(KEY_SLEEP); break;
    case 0x036: map_key_clear(BTN_MISC); break;
    + case 0x045: map_key_clear(KEY_RADIO); break;
    case 0x08a: map_key_clear(KEY_WWW); break;
    case 0x08d: map_key_clear(KEY_PROGRAM); break;
    case 0x095: map_key_clear(KEY_HELP); break;
    @@ -318,10 +319,33 @@ static void hidinput_configure_usage(str

    case HID_UP_MSVENDOR:
    case HID_UP_LOGIVENDOR:
    - case HID_UP_LOGIVENDOR2:
    -
    goto ignore;

    + case HID_UP_LOGIVENDOR2: /* Reported on Logitech Ultra X Media Remote */
    +
    + set_bit(EV_REP, input->evbit);
    + switch(usage->hid & HID_USAGE) {
    + case 0x004: map_key_clear(KEY_AGAIN); break;
    + case 0x00d: map_key_clear(KEY_HOME); break;
    + case 0x024: map_key_clear(KEY_SHUFFLE); break;
    + case 0x025: map_key_clear(KEY_TV); break;
    + case 0x026: map_key_clear(KEY_MENU); break;
    + case 0x031: map_key_clear(KEY_AUDIO); break;
    + case 0x032: map_key_clear(KEY_SUBTITLE); break;
    + case 0x033: map_key_clear(KEY_LAST); break;
    + case 0x047: map_key_clear(KEY_MP3); break;
    + case 0x048: map_key_clear(KEY_DVD); break;
    + case 0x049: map_key_clear(KEY_MEDIA); break;
    + case 0x04a: map_key_clear(KEY_VIDEO); break;
    + case 0x04b: map_key_clear(KEY_ANGLE); break;
    + case 0x04c: map_key_clear(KEY_LANGUAGE); break;
    + case 0x04d: map_key_clear(KEY_SUBTITLE); break;
    + case 0x051: map_key_clear(KEY_RED); break;
    + case 0x052: map_key_clear(KEY_CLOSE); break;
    + default: goto ignore;
    + }
    + break;
    +
    case HID_UP_PID:

    set_bit(EV_FF, input->evbit);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-09-11 00:41    [W:0.021 / U:30.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site