<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/android_kernel_m2note/drivers/input/joystick, branch ng-7.1.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://gitea.privatedns.org/xavi/android_kernel_m2note/atom?h=ng-7.1.2</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/atom?h=ng-7.1.2'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/'/>
<updated>2017-07-04T09:51:20+00:00</updated>
<entry>
<title>Input: iforce - validate number of endpoints before using them</title>
<updated>2017-07-04T09:51:20+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2017-03-16T18:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=2459faa29d2448d4b6242e73172b671dfe241b87'/>
<id>urn:sha1:2459faa29d2448d4b6242e73172b671dfe241b87</id>
<content type='text'>
commit 59cf8bed44a79ec42303151dd014fdb6434254bb upstream.

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer or accessing memory that lie beyond the end of the endpoint
array should a malicious device lack the expected endpoints.

Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
</content>
</entry>
<entry>
<title>Input: xpad - x360w: report dpad as buttons and axes</title>
<updated>2017-04-11T08:57:31+00:00</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-10-10T16:33:52+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=78bf85e8ba95a3bb9c797a6d1d2f508b43bedefe'/>
<id>urn:sha1:78bf85e8ba95a3bb9c797a6d1d2f508b43bedefe</id>
<content type='text'>
as discussed here[0], x360w is the only pad that maps dpad_to_button.
This is bad for downstream developers as they have to differ between
x360 and x360w which is not intuitive.

This patch implements the suggested solution of exposing the dpad both
as axes and as buttons. This retains backward compatibility with software
already dealing with the difference while makes new software work as
expected across x360/ x360w pads.

[0] http://www.spinics.net/lists/linux-input/msg34421.html

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - factor out URB submission in xpad_play_effect</title>
<updated>2017-04-11T08:57:30+00:00</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-10-10T16:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=5efcd944a321557644fc33fc6df4da7543fbb1c2'/>
<id>urn:sha1:5efcd944a321557644fc33fc6df4da7543fbb1c2</id>
<content type='text'>
Move submission logic to a single point at the end of the function.
This makes it easy to add locking/ queuing code later on.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - remove needless bulk out URB used for LED setup</title>
<updated>2017-04-11T08:57:30+00:00</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-10-07T00:07:31+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=5210f3afac518fa869ace269626ba2cf7fd038f0'/>
<id>urn:sha1:5210f3afac518fa869ace269626ba2cf7fd038f0</id>
<content type='text'>
This code was probably wrong ever since and is redundant with
xpad_send_led_command. Both try to send a similar command to the xbox360
controller. However xpad_send_led_command correctly uses the pad_nr instead
of bInterfaceNumber to select the led and re-uses the irq_out URB instead
of creating a new one.

Note that this change only affects the two supported wireless controllers.
Tested using the xbox360 wireless controller (PC).

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - use ida() for finding the pad_nr</title>
<updated>2017-04-11T08:57:30+00:00</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-10-10T17:00:49+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=c14410ee1654732382180e425bb1a760fca82aa7'/>
<id>urn:sha1:c14410ee1654732382180e425bb1a760fca82aa7</id>
<content type='text'>
The pad_nr corresponds to the lit up LED on the controller. Therefore there
should be no gaps when enumerating. Currently a LED is only re-assigned
after a controller is re-connected 4 times.

This patch uses ida to track connected pads - this way we can re-assign
freed up pad number immediately.

Consider the following case:
1. pad A is connected and gets pad_nr = 0
2. pad B is connected and gets pad_nr = 1
3. pad A is disconnected
4. pad A is connected again

using ida_simple_get() controller A now correctly gets pad_nr = 0 again.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - clarify LED enumeration</title>
<updated>2017-04-11T08:57:30+00:00</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-10-07T00:06:16+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=31ed980070a0aa63db257b190c5da13ad0832b5e'/>
<id>urn:sha1:31ed980070a0aa63db257b190c5da13ad0832b5e</id>
<content type='text'>
Rename led_no -&gt; pad_nr: the number stored there is not the LED number - it
gets translated later on to a LED number in xpad_identify_controller;

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - fix Razer Atrox Arcade Stick button mapping</title>
<updated>2017-04-11T08:57:29+00:00</updated>
<author>
<name>Dario Scarpa</name>
<email>dario.scarpa@duskzone.it</email>
</author>
<published>2015-10-07T00:04:36+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=f2ceeb692674c09a8cdab13ea01146f07081cede'/>
<id>urn:sha1:f2ceeb692674c09a8cdab13ea01146f07081cede</id>
<content type='text'>
The "Razer Atrox Arcade Stick" features 10 buttons, and two of them (LT/RT)
don't work properly.  Change its definition in xpad_device[] (mapping
field) to fix.

Signed-off-by: Dario Scarpa &lt;dario.scarpa@duskzone.it&gt;
Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - add Covert Forces edition of the Xbox One controller</title>
<updated>2017-04-11T08:57:29+00:00</updated>
<author>
<name>Erik Lundgren</name>
<email>eriklundgren93@gmail.com</email>
</author>
<published>2015-10-07T00:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=735f7acb1cdec997e8c9746b53b0772185592ca5'/>
<id>urn:sha1:735f7acb1cdec997e8c9746b53b0772185592ca5</id>
<content type='text'>
It is identical to the Xbox One controller but has a different product ID.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - re-send LED command on present event</title>
<updated>2017-04-11T08:57:29+00:00</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-06-22T21:11:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=74aa3c7f452fd51272fb88d8583518fc31f911c3'/>
<id>urn:sha1:74aa3c7f452fd51272fb88d8583518fc31f911c3</id>
<content type='text'>
The controller only receives commands when its present. So for the
correct LED to be lit the LED command has to be sent on the present
event.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - set the LEDs properly on XBox Wireless controllers</title>
<updated>2017-04-11T08:57:29+00:00</updated>
<author>
<name>Pierre-Loup A. Griffais</name>
<email>pgriffais@valvesoftware.com</email>
</author>
<published>2015-06-22T21:10:36+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/android_kernel_m2note/commit/?id=dcbda913542011327b7a25fa09c986678014d35e'/>
<id>urn:sha1:dcbda913542011327b7a25fa09c986678014d35e</id>
<content type='text'>
Based on Patch by Pierre-Loup A. Griffais &lt;pgriffais@valvesoftware.com&gt;:
Add the logic to set the LEDs on XBox Wireless controllers.  Command
sequence found by sniffing the Windows data stream when plugging the
device in.

Updated based on comments on linux-input:
unify codepaths in xpad_send_led_command for wired/ wireless controller.
Also document command values for clarification.
All values tested on Xbox 360 Wireless Controller.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;

Signed-off-by: Tim Clark &lt;tim.clark.82@gmail.com&gt;
</content>
</entry>
</feed>
