18 May, 2011

1 commit

  • I've got a Tivo Slide bluetooth remote/dongle, which uses a fair number
    of hid usages that aren't currently mapped in hid-input.c. I'd initially
    written additions to hid-input.c with just this device in mind,
    including some bits that were specific to the device. This go around,
    I'm looking at adding/correcting as many generic HID usages from the HID
    Usage Tables, version 1.12, as I can -- which also serves to enable all
    but four of the buttons on the Tivo Slide remote[*].

    Outside of fixing the obviously incorrect mapping of 0xc 0x45 from
    KEY_RADIO to KEY_RIGHT, and making use of the new KEY_IMAGES (just added
    in 2.6.39-rc4) for AL Image Browser instead of KEY_MEDIA, these are
    purely additions, and thus should have no negative impact on any already
    functional HID devices. Most of the added mappings seemed to be
    perfectly logical to me, but there were a few that were mapped on more
    of an "I think this makes the most sense" basis.

    [*] I'll handle the last four tivo buttons via an hid-tivo.c follow-up.

    CC: Dmitry Torokhov
    CC: Jiri Kosina
    Signed-off-by: Jarod Wilson
    Signed-off-by: Jiri Kosina

    Jarod Wilson
     

20 Mar, 2011

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (64 commits)
    Input: tsc2005 - remove 'disable' sysfs attribute
    Input: tsc2005 - add open/close
    Input: tsc2005 - handle read errors from SPI layer
    Input: tsc2005 - do not rearm timer in hardirq handler
    Input: tsc2005 - don't use work for 'pen up' handling
    Input: tsc2005 - do not use 0 in place of NULL
    Input: tsc2005 - use true/false for boolean variables
    Input: tsc2005 - hide selftest attribute if we can't reset
    Input: tsc2005 - rework driver initialization code
    Input: tsc2005 - set up bus type in input device
    Input: tsc2005 - set up parent device
    Input: tsc2005 - clear driver data after unbinding
    Input: tsc2005 - add module description
    Input: tsc2005 - remove driver banner message
    Input: tsc2005 - remove incorrect module alias
    Input: tsc2005 - convert to using dev_pm_ops
    Input: tsc2005 - use spi_get/set_drvdata()
    Input: introduce tsc2005 driver
    Input: xen-kbdfront - move to drivers/input/misc
    Input: xen-kbdfront - add grant reference for shared page
    ...

    Linus Torvalds
     

17 Mar, 2011

1 commit


02 Mar, 2011

1 commit

  • When the multi input quirk is set, there is a new input device
    created for every feature report. Since the idea is to present
    features per hid device, not per input device, revert back to
    the original report loop and change the feature_mapping() callback
    to not take the input device as argument.

    Signed-off-by: Henrik Rydberg
    Tested-by: Benjamin Tissoires
    Signed-off-by: Jiri Kosina

    Henrik Rydberg
     

16 Feb, 2011

1 commit


01 Feb, 2011

1 commit


14 Jan, 2011

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    HID: hid-multitouch: minor fixes based on additional review
    HID: Switch turbox/mosart touchscreen to hid-mosart
    HID: add Add Cando touch screen 10.1-inch product id
    HID: hid-mulitouch: add support for the 'Sensing Win7-TwoFinger'
    HID: hid-multitouch: add support for Cypress TrueTouch panels
    HID: hid-multitouch: support for PixCir-based panels
    HID: set HID_MAX_FIELD at 128
    HID: add feature_mapping callback

    Linus Torvalds
     

12 Jan, 2011

1 commit

  • Currently hid doesn't export the features it knows to the specific modules.
    Some information can be really important in such features: MosArt and
    Cypress devices are by default not in a multitouch mode.
    We have to send the value 2 on the right feature.

    This patch exports to the module the features report so they can find the
    right feature to set up the correct mode.

    Signed-off-by: Benjamin Tissoires
    Acked-by: Henrik Rydberg
    Signed-off-by: Jiri Kosina

    Benjamin Tissoires
     

14 Dec, 2010

1 commit


10 Dec, 2010

2 commits

  • Jiri Kosina
     
  • Neaten current uses of dev_ by adding and using
    hid specific hid_ macros.

    Convert existing uses of dev_ uses to hid_.
    Convert hid-pidff printk uses to hid_.

    Remove err_hid and use hid_err instead.

    Add missing newlines to logging messages where necessary.
    Coalesce format strings.

    Add and use pr_fmt(fmt) KBUILD_MODNAME ": " fmt

    Other miscellaneous changes:

    Add const struct hid_device * argument to hid-core functions
    extract() and implement() so hid_ can be used by them.
    Fix bad indentation in hid-core hid_input_field function
    that calls extract() function above.

    Signed-off-by: Joe Perches
    Signed-off-by: Jiri Kosina

    Joe Perches
     

08 Dec, 2010

1 commit


03 Dec, 2010

1 commit


02 Dec, 2010

1 commit


03 Nov, 2010

1 commit


25 Oct, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (75 commits)
    Input: wacom - specify Cinitq supported tools
    Input: ab8500-ponkey - fix IRQ freeing in error path
    Input: adp5588-keys - use more obvious i2c_device_id name string
    Input: ad7877 - switch to using threaded IRQ
    Input: ad7877 - use attribute group to control visibility of attributes
    Input: serio - add support for PS2Mult multiplexer protocol
    Input: wacom - properly enable runtime PM
    Input: ad7877 - filter events where pressure is beyond the maximum
    Input: ad7877 - implement EV_KEY:BTN_TOUCH reporting
    Input: ad7877 - implement specified chip select behavior
    Input: hp680_ts_input - use cancel_delayed_work_sync()
    Input: mousedev - correct lockdep annotation
    Input: ads7846 - switch to using threaded IRQ
    Input: serio - support multiple child devices per single parent
    Input: synaptics - simplify pass-through port handling
    Input: add ROHM BU21013 touch panel controller support
    Input: omap4-keypad - wake-up on events & long presses
    Input: omap4-keypad - fix interrupt line configuration
    Input: omap4-keypad - SYSCONFIG register configuration
    Input: omap4-keypad - use platform device helpers
    ...

    Linus Torvalds
     

24 Oct, 2010

2 commits


15 Oct, 2010

1 commit


21 Sep, 2010

1 commit

  • As of lately, HID devices which send per-frame data split over several
    HID reports have started to emerge. This patch adds a quirk which
    allows the HID driver to take over the input layer synchronization,
    and hence the control of the frame boundary.

    Signed-off-by: Henrik Rydberg
    Signed-off-by: Jiri Kosina

    Henrik Rydberg
     

16 Sep, 2010

1 commit

  • Currently HID layer only allows to remap keycodes for known usages,
    and responds with -EINVAL when user tries to map new usage code.
    This precludes us form relying on udev/keymap for establishing correct
    mappings and forces us to write dummy HID drivers responsible only for
    setting up keymaps.

    Let's allow remapping not only usages that have been set up as keys
    (usage->type == EV_KEY) but also yet-unmapped usages (usage->type == 0).

    Acked-by: Jarod Wilson
    Acked-by: Jiri Kosina
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

10 Sep, 2010

1 commit


10 Aug, 2010

1 commit

  • Many tablet input drivers use BTN_STYLUS2 code to report a second
    tablet stylus button. Yet, the generic HID input driver doesn't map it.
    Apparently, because there is no corresponding usage in the HID Usage Tables.

    This patch selects a compromise usage - "Tablet Pick" (0x46) to be mapped to
    BTN_STYLUS2. Some tablets use "Eraser" usage, but mapping it to a button
    wouldn't be entirely correct, because the specification says it may be "a
    pressure quantity".

    Signed-off-by: Nikolai Kondrashov
    Signed-off-by: Jiri Kosina

    Nikolai Kondrashov
     

05 Aug, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (30 commits)
    Revert "HID: add support for the Wacom Intuos 4 wireless"
    HID: fix up Kconfig entry for ACRUX driver
    HID: add ACRUX game controller force feedback support
    HID: Force input registration for "VEC footpedal"
    HID: add HID_QUIRK_HIDINPUT_FORCE
    HID: hid-input.c: indentation fixes
    HID: hiddev: use usb_find_interface, get rid of BKL
    HID: ignore digitizer usage Undefined (0x00)
    HID: Add support for Conceptronic CLLRCMCE
    HID: hid-ids.h: Whitespace fixup, align using TABs
    HID: picolcd: implement refcounting of framebuffer
    HID: picolcd: do not reallocate memory on depth change
    HID: picolcd: Add minimal palette required by fbcon on 8bpp
    HID: magicmouse: Correct parsing of large X and Y motions.
    HID: magicmouse: report last touch up
    HID: picolcd: fix deferred_io init/cleanup to fb ordering
    HID: hid-ids.h: keep vendor ids in alphabetical order
    HID: add proper support for Elecom BM084 bluetooth mouse
    HID: magicmouse: enable horizontal scrolling
    HID: magicmouse: add param for scroll speed
    ...

    Linus Torvalds
     

04 Aug, 2010

1 commit


19 Jul, 2010

1 commit


14 Jul, 2010

1 commit

  • SMART Technologies has recommended this change to fix a problem reported
    with SMART Board series interactive whiteboards.

    A description of the device-specific symptom follows:

    When the board is connected my mouse bounces up to the top left corner.

    Bjorn has tested this fix with model SB680.

    Tested-by: Bjorn Behrendt
    Signed-off-by: Forest Bond
    Signed-off-by: Jiri Kosina

    Forest Bond
     

24 Jun, 2010

1 commit

  • The MT devices produce a lot of data. Tell the underlying input device
    approximately how many events will be sent per synchronization, to allow
    for better buffering. The number is a template based on continuously
    reporting details for each finger on a single hand.

    Signed-off-by: Henrik Rydberg
    Acked-by: Jiri Kosina
    Signed-off-by: Dmitry Torokhov

    Henrik Rydberg
     

09 Mar, 2010

1 commit

  • The HID layer has some scan codes of the form 0xffbc0000 for logitech
    devices which do not work if scancode is typed as signed int, so we need
    to switch to unsigned it instead. While at it keycode being signed does
    not make much sense either.

    Acked-by: Márton Németh
    Acked-by: Matthew Garrett
    Acked-by: Jiri Kosina
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

17 Feb, 2010

1 commit


09 Feb, 2010

1 commit


03 Feb, 2010

1 commit


04 Jan, 2010

1 commit

  • Current HID code doesn't properly handle HID joysticks which have
    larger number of buttons than what fits into current range reserved
    for BTN_JOYSTICK.

    One such joystick reported to not work properly is Saitek X52 Pro
    Flight System.

    We can't extend the range to fit more buttons in, because of backwards
    compatibility reasons.

    Therefore this patch introduces a new BTN_TRIGGER_HAPPY range, and
    uses these to map the buttons which are over BTN_JOYSTICK limit.

    Acked-by: Dmitry Torokhov [for the input.h part]
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     

12 Jun, 2009

1 commit

  • It is a little bit inconvenient for people who have some non-standard
    HID hardware (usually violating the HID specification) to have to
    recompile kernel with CONFIG_HID_DEBUG to be able to see kernel's perspective
    of the HID report descriptor and observe the parsed events. Plus the messages
    are then mixed up inconveniently with the rest of the dmesg stuff.

    This patch implements /sys/kernel/debug/hid//rdesc file, which
    represents the kernel's view of report descriptor (both the raw report
    descriptor data and parsed contents).

    With all the device-specific debug data being available through debugfs, there
    is no need for keeping CONFIG_HID_DEBUG, as the 'debug' parameter to the
    hid module will now only output only driver-specific debugging options, which has
    absolutely minimal memory footprint, just a few error messages and one global
    flag (hid_debug).

    We use the current set of output formatting functions. The ones that need to be
    used both for one-shot rdesc seq_file and also for continuous flow of data
    (individual reports, as being sent by the device) distinguish according to the
    passed seq_file parameter, and if it is NULL, it still output to kernel ringbuffer,
    otherwise the corresponding seq_file is used for output.

    The format of the output is preserved.

    Signed-off-by: Jiri Kosina

    Jiri Kosina
     

15 Oct, 2008

6 commits