Skip to content

RFC sixaxis: Improved support for DualShock 3 clones

Szymon Janc linux-bluetooth 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 0 repliesNew
  2. v1 RFC2 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3core/device: Add support for setting SDP recordsrc/device.c src/device.h+34 -00 replies
2/3sixaxis: Provide DualShock 3 SDP record while adding new deviceMakefile.plugins plugins/sixaxis.c+167 -00 replies
3/3profiles/input: Remove sixaxis specific codeprofiles/input/server.c+2 -870 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 0/3] sixaxis: Improved support for DualShock 3 clones

Hi,

Some DualShock3 clones (eg ShanWan) were reported to not provide valid SDP record required by HID profile. Due to this those failed to work with current BlueZ sixaxis code (ie no input device were created).

This small serie is an attempt to extend DS3 support also with those misbehaving clones. Idea is that we can provide fixed SDP recrod for devices that use valid PID/VID and skip SDP search.

In this version SDP is kept in sixaxis plugin and provided via btd_device_set_record instead of SDP search. Nice addition is that sixaxis specific code is no longer needed in input server.

This makes code similar to how original Fedora sixaxis plugin worked as suggested in previous review round.

I tested this with genuine DS3 and it seems to work OK. Testing with clones is stil required though.

@Alex
Testing with Navigation Controller is also needed ie if SDP record is same as with DS3 or if we need dedicated one.

BR
Szymon Janc

Szymon Janc (3):
core/device: Add support for setting SDP record
sixaxis: Provide DualShock 3 SDP record while adding new device profiles/input: Remove sixaxis specific code

 Makefile.plugins        |   1 +
 plugins/sixaxis.c       | 166 ++++++++++++++++++++++++++++++++++++++++++++++++
 profiles/input/server.c |  89 +-------------------------
 src/device.c            |  31 +++++++++
 src/device.h            |   3 +
 5 files changed, 203 insertions(+), 87 deletions(-)
Signature · 1 line
2.1.4