18 Mar, 2008

5 commits


14 Feb, 2008

1 commit


11 Feb, 2008

3 commits


28 Jan, 2008

24 commits

  • This patch adds blacklist entries in hid-quirks.c to let the usbhid driver
    ignore the si470x radio devices. They are now handled by the new radio-si470x
    driver.

    Signed-off-by: Tobias Lorenz
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jiri Kosina

    Tobias Lorenz
     
  • Logitech Extreme 3D needs NOGET quirk, otherwise it times out at
    the time of connect.

    Reported-by: Mike Sharov
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • Following the suggestion of Jonas, this patch maps the special keys of
    the MS Presenter 8000 to targets that should allow for better re-mapping
    according to individual use cases (i.e. I avoided hard-wiring to
    standard keys). This time I also included the last missing key event
    (switching back from presentation mode).

    The optimal Xmodmap customization for using the Presenter with
    OpenOffice now looks like this for me:

    keycode 175 = Escape
    keycode 179 = F5
    keysym XF86Forward = Right
    keysym XF86Back = Left

    Signed-off-by: Jan Kiszka
    Signed-off-by: Jiri Kosina

    Jan Kiszka
     
  • 0x045e/0x0701 also needs the hid-input mapping quirk established by
    quirk_microsoft_presenter_8k().

    Reported-by: Jonas Delrue
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • Samsung USB remotes (0419:0001) are rejected by kernel 2.6.23, because the
    report descriptor from the remote contains a 48 bit HID report field. HID 1.11
    states: Fields may span at most 4 bytes.

    This patch, based on 2.6.23, fixes this by modifying the internal report
    descriptor in hid-quirks.c. Additional user space support (e.g. LIRC) is
    required to fetch the information from the hiddev interface.

    The burden to reconstruct the data is moved into userspace (lirc through hiddev).
    There is no need to set HID_QUIRK_HIDDEV quirk, as the device has also output
    applications, which trigger the creation of hiddev device automatically.

    Signed-off-by: Robert Schedel
    Signed-off-by: Jiri Kosina

    Robert Schedel
     
  • We can use the blacklist only if usbhid code is compiled.

    Reported-by: jurriaan
    Cc: Pascal Terjan
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • The Gretag-Macbeth Huey display colorimeter claims to be an HID device but
    isn't. As a result the linux HID device will claim it, preventing FLOSS
    software like Argyll CMS from talking to it.

    Tested-by: Frederic Crozat
    Signed-off-by: Nicolas Mailhot
    Signed-off-by: Jiri Kosina

    Nicolas Mailhot
     
  • Fix a panic, by changing
    hidinput_mapping_quirks(,, unsigned long *bit,)
    to
    hidinput_mapping_quirks(,, unsigned long **bit,)

    The `bit' in this function is an out parameter.

    Signed-off-by: Fengguang Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Jiri Kosina

    Fengguang Wu
     
  • The WARN_ON() in implement() and extract() spit out stacktraces and
    a lot of other information that might make users think that there is
    something seriously wrong with the system. WARN_ON() should not be
    deliberately triggerable by userspace application, which these can be.
    Usually this WARN_ON() triggers when hid2hci utility is sending the
    data that don't correspond to the device's report descriptor.

    Convert these messages to more friendly printk().

    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • The device is not discoverable, and needs to be poked to set its master, the
    Bluetooth device it will try to connect to when the "Home" button is pressed
    without a cable plugged in.

    Using libusb means disconnecting the device from its driver to get the report
    descriptor. Using hiddev, we can poke it without relinquishing control over it,
    so when you plug it in, it would still work as a pad.

    This could be then used by sixpair program, after it is rewritten to use
    hiddev instead of libusb.

    Signed-off-by: Bastien Nocera
    Signed-off-by: Jiri Kosina

    Bastien Nocera
     
  • This fixes wacom tablets not working if usbmouse is loaded.

    Signed-off-by: Pascal Terjan
    Signed-off-by: Jiri Kosina

    Pascal Terjan
     
  • This removes ugly macros IS_* to distinguish devices that
    need special handling in hid-input, and establish proper
    quirks for them.

    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • Remove unused variable in quirk event handler.

    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • BTC 8193 keyboard handles its scrollwheel in very non-standard way.
    It produces two non-standard usages for scrolling up and down, in
    both cases with postive value equaling to 1. We handle this by temporary
    mapping, which we then catch in quirk event handler, and remap to
    negative HWHEEL even in order to introduce correct behavior.

    Also the button requires special mapping, as it triggers standard-violating
    usage code.

    Reported in kernel.org bugzilla #9385

    Reported-by: Kir Kolyshkin
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • This patch separates also the hid-input quirks that have to be
    applied at the time the event occurs, so that the generic code
    handling HUT-compliant devices is not messed up by them too much.

    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • Currently, the handling of mapping between hid and input for devices
    that don't conform to HUT 1.12 specification is very messy -- no per-device
    handling, no blacklists, conditions on idVendor and idProduct placed
    all over the code.

    This patch moves all the device-specific input mapping to a separate
    file, and introduces a blacklist-style handling for non-standard
    device-specific mappings.

    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • Make the Microsoft Wireless Optical Desktop 3.0 work as a mouse.

    Microsoft Wireless Optical Desktop 3.0 doesn't properly describe its interface
    class. Specifically, since it doesn't mark the second interface as a mouse
    (bInterfaceSubclass = 0), it doesn't get HID_QUIRK_NOGET applied to the
    interface, and then acts broken when polled.

    Signed-off-by: Drew Fisher
    Signed-off-by: Jiri Kosina

    Drew Fisher
     
  • Reuse the quirks from the Cordless Desktop LX500 - stops some of the extra
    keys being reported as mouse buttons.

    Signed-off-by: Carlos Corbacho
    Signed-off-by: Jiri Kosina

    Carlos Corbacho
     
  • Genius KB-29E has broken report descriptor, which causes some of the
    Consumer usages to appear incorrectly as Button usages. We fix it by
    fixing the report descriptor before it is being parsed.

    Also a few of the keys violate the HUT standard, so they need a special
    handling. They currently fall into "Reserved" range as per HUT 1.12.

    Reported-by: Szekeres Istvan
    Signed-off-by: Jiri Kosina

    Jiri Kosina
     
  • Don't directly cast list_head * to foo *, this works only when list
    is the first member of struct foo, and we should not make the assumption
    how members are ordered in the structure.

    i.e. struct *f = (struct *f)pos will work if:
    struct foo {
    struct list_head list;
    int i;
    };

    but will fail if:
    struct foo {
    int i;
    struct list_head list;
    }

    Signed-off-by: Li Zefan
    Signed-off-by: Jiri Kosina

    Li Zefan
     
  • This mouse distinguishes horizontal wheel from vertical by a special "pseudo
    event" GenericDesktop.00b8, with values of 0 for vertical and 8 for horizontal
    wheel. Because this event is supplied by the parser too late, we need to delay
    a wheel event, wait for this one and send either REL_WHEEL or REL_HWHEEL to
    input depending on the event value.

    Signed-off-by: Pavel Troller
    Signed-off-by: Jiri Kosina

    Pavel Troller
     
  • Reuse the existing quirks for Apple laptop USB keyboards.

    Signed-off-by: Michel Daenzer
    Signed-off-by: Jiri Kosina

    Michel Daenzer
     
  • Preserve identifiers exposed in build and run time configuration though in
    order not to break existing configurations.

    This is in preparation for adding support for Apple aluminum USB keyboards.

    Signed-off-by: Michel Daenzer
    Signed-off-by: Jiri Kosina

    Michel Daenzer
     
  • The MS Presenter 8000 bluetooth mouse is a "dual-use" device: If you
    press a button on the top, you can turn it around and find special keys
    on the other side, useful for presentations. This patch maps those three
    bottom-keys that are not already detected to the intended functions. The
    magic bottom on the top is mapped to F5 when we switch from mouse to
    presenter mode in order to activate the presentation mode in the related
    software (e.g. OpenOffice).

    Signed-off-by: Jan Kiszka
    Signed-off-by: Jiri Kosina

    Jan Kiszka
     

31 Oct, 2007

4 commits


20 Oct, 2007

3 commits

  • Changed email address of Johann Deneux (myself)
    Also removed CVS tags in comments (no longer using cvs)

    Signed-off-by: Johann Deneux
    Signed-off-by: Adrian Bunk

    Johann Deneux
     
  • The task_struct->pid member is going to be deprecated, so start
    using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in
    the kernel.

    The first thing to start with is the pid, printed to dmesg - in
    this case we may safely use task_pid_nr(). Besides, printks produce
    more (much more) than a half of all the explicit pid usage.

    [akpm@linux-foundation.org: git-drm went and changed lots of stuff]
    Signed-off-by: Pavel Emelyanov
    Cc: Dave Airlie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Emelyanov
     
  • get rid of input BIT* duplicate defines

    use newly global defined macros for input layer. Also remove includes of
    input.h from non-input sources only for BIT macro definiton. Define the
    macro temporarily in local manner, all those local definitons will be
    removed further in this patchset (to not break bisecting).
    BIT macro will be globally defined (1<
    Cc:
    Acked-by: Jiri Kosina
    Cc:
    Acked-by: Marcel Holtmann
    Cc:
    Acked-by: Mauro Carvalho Chehab
    Cc:
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby