18 Mar, 2008
5 commits
-
F5 and F6 have no second function printed on them. Thus their definitions have
been removed from the table.KEY_CYCLEWINDOWS doesn't name the function of Mac OS X' Expose properly and
because we couldn't find a better key code, we decided to use KEY_FN_F4
instead.We also changed KEY_BACK and KEY_FORWARD, which apply to browser functions, to
KEY_PREVIOUSSONG and KEY_NEXTSONG, since the keys are intended to control a
music player.Signed-off-by: Michael Hanselmann
Signed-off-by: Jiri Kosina -
The hid_input_report() in debug mode of course outputs the report itself, not
the device report descriptor.Fix this error in comment.
Signed-off-by: Jiri Kosina
-
Add quirk entry for BADPAD for the NATSU Playstation USB adapter. The
adapter is supported under Linux, but with bad direction detection.Signed-off-by: Andrew Burton
Signed-off-by: Jiri Kosina -
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.Signed-off-by: Julia Lawall
Signed-off-by: Jiri Kosina -
4th generation MacBook (product id 0x022a) from Apple doesn't need
HID_QUIRK_APPLE_ISO_KEYBOARD fix anymore.Signed-off-by: Tobias Mueller
Signed-off-by: Jiri Kosina
14 Feb, 2008
1 commit
-
Add support for Macbook 3rd generation special mappings.
Signed-off-by: Tobias Mueller
Signed-off-by: Jiri Kosina
11 Feb, 2008
3 commits
-
We need to blacklist this device, as it should be handled by
ldusb driver.Reported-by: stephen
Signed-off-by: Jiri Kosina -
The old code (before move) stopped further processing of the
event after it has been already processed by the quirk handler.The new code didn't propagate the return value properly, and
therefore the processing always proceeded, which was wrong.This patch fixes it. Pointed out in kernel.org bugzilla #9842
Signed-off-by: Jiri Kosina
-
Adds new GTCO CalComp USB device PIDs to the blacklist.
Signed-off-by: Jeremy A. Roberson
Signed-off-by: Jiri Kosina
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 -
Logitech Extreme 3D needs NOGET quirk, otherwise it times out at
the time of connect.Reported-by: Mike Sharov
Signed-off-by: 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 = LeftSigned-off-by: Jan Kiszka
Signed-off-by: Jiri Kosina -
0x045e/0x0701 also needs the hid-input mapping quirk established by
quirk_microsoft_presenter_8k().Reported-by: Jonas Delrue
Signed-off-by: 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 -
We can use the blacklist only if usbhid code is compiled.
Reported-by: jurriaan
Cc: Pascal Terjan
Signed-off-by: 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 -
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 -
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
-
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 -
This fixes wacom tablets not working if usbmouse is loaded.
Signed-off-by: Pascal Terjan
Signed-off-by: Jiri Kosina -
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
-
Remove unused variable in quirk event handler.
Signed-off-by: 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 -
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
-
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
-
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 -
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 -
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 -
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 -
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 -
Reuse the existing quirks for Apple laptop USB keyboards.
Signed-off-by: Michel Daenzer
Signed-off-by: Jiri Kosina -
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 -
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
31 Oct, 2007
4 commits
-
input_{get|set}_drvdata() helpers should be used instead.
Signed-off-by: Dmitry Torokhov
Signed-off-by: Jiri Kosina -
hidinput_connect() ignores retval from input_register_device(). Fix it
by properly undoing all the registrations that have been already done,
and return error.Signed-off-by: Dirk Hohndel
Signed-off-by: Jiri Kosina -
drivers/hid/usbhid/hiddev.c: In function 'hiddev_compat_ioctl':
drivers/hid/usbhid/hiddev.c:746: warning: passing argument 4 of 'hiddev_ioctl' makes
integer from pointer without a castAdd cast to hiddev_compat_ioctl()
Signed-off-by: Jiri Kosina
-
GoTop devices are handled by usbtouchscreen driver, make sure HID
ignores them.Signed-off-by: Daniel Ritz
Signed-off-by: Dmitry Torokhov
Signed-off-by: Jiri Kosina
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 -
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 -
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