From: Jiri Kosina Date: Wed, 4 Jul 2007 14:45:59 +0000 (+0200) Subject: HID: handle cases of volume knobs generating relative values X-Git-Tag: v2.6.23-rc1~1200^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c1d8aea2ca76df1b1de2aed23e3ceda2a044ed1;p=pandora-kernel.git HID: handle cases of volume knobs generating relative values There are some devices (for example Dell Multimedia Keyboard SK-8135) that have a volume control knob which generates relative events instead of absolute. hid-input maps them to ABS_VOLUME. HUT pages don't restrict volume to absolute values. Adding REL_VOLUME doesn't seem feasible, nothing knows how to handle it. This patch translates relative ABS_VOLUME events into appropriate number of series of VOLUME_UP or VOLUME_DOWN events respectively, so that userspace sees the correct values in the end. kernel.org bugzilla 5233 Reported-by: Jochen Eisinger Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed