diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-08-04 18:50:10 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-08-05 13:45:24 +0200 |
commit | a6be8569b6705cbc26e7ae1a8be476067cc5a78b (patch) | |
tree | 5bd01cb300312a7dbf37a1213105dba82863a858 /include/uapi | |
parent | 9854a6f929956c9099dcc837157fd344f6f1c227 (diff) | |
download | linux-stable-a6be8569b6705cbc26e7ae1a8be476067cc5a78b.tar.gz linux-stable-a6be8569b6705cbc26e7ae1a8be476067cc5a78b.tar.bz2 linux-stable-a6be8569b6705cbc26e7ae1a8be476067cc5a78b.zip |
HID: wiimote: work around broken DRM_KAI on GEN10
GEN10 and earlier devices seem to not support DRM_KAI if we run in basic
IR mode. Use DRM_KAIE instead. This might increases overhead slightly as
the extension port is read and streamed but we stream accelerometer data
constantly, too, so this is negligible.
Note that our parsers are hardcoded on IR-formats, so we cannot actually
use 96-bit IR DRMs for basic IR data. We would have to adjust the parsers.
But as only GEN20 and newer support this, we simply avoid mixed DRMs.
This fixes a bug where GEN10 devices didn't provide IR data if
accelerometer and IR are enabled simultaneously. As a workaround, you can
enable DRM_KAIE without this patch via (disables device power-management):
echo "37" >/sys/kernel/debug/hid/<dev>/drm
Cc: stable@vger.kernel.org
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reported-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions