From: Egor Vorontsov <sdoregor@sdore.me>
To: linux-bluetooth@vger.kernel.org
Cc: Egor Vorontsov <sdoregor@sdore.me>
Subject: [PATCH BlueZ 1/2] profiles/input: Add cable pairing constants for DualSense
Date: Tue, 3 Jun 2025 12:56:16 +0300 [thread overview]
Message-ID: <20250603095617.92785-2-sdoregor@sdore.me> (raw)
In-Reply-To: <20250603095617.92785-1-sdoregor@sdore.me>
Sony DualSense & DualSense Edge controllers support cable pairing
the same way as previous Sixaxis controller generations do.
This patch prepares their input profile for its implementation.
---
profiles/input/server.c | 3 ++-
profiles/input/sixaxis.h | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/profiles/input/server.c b/profiles/input/server.c
index c8be445c7..68105d48c 100644
--- a/profiles/input/server.c
+++ b/profiles/input/server.c
@@ -122,7 +122,8 @@ static bool dev_is_sixaxis(const bdaddr_t *src, const bdaddr_t *dst)
cp = get_pairing(vid, pid, NULL);
if (cp && (cp->type == CABLE_PAIRING_SIXAXIS ||
- cp->type == CABLE_PAIRING_DS4))
+ cp->type == CABLE_PAIRING_DS4 ||
+ cp->type == CABLE_PAIRING_DUALSENSE))
return true;
return false;
diff --git a/profiles/input/sixaxis.h b/profiles/input/sixaxis.h
index ab8831995..ac7e75223 100644
--- a/profiles/input/sixaxis.h
+++ b/profiles/input/sixaxis.h
@@ -17,6 +17,7 @@ typedef enum {
CABLE_PAIRING_UNSUPPORTED = 0,
CABLE_PAIRING_SIXAXIS,
CABLE_PAIRING_DS4,
+ CABLE_PAIRING_DUALSENSE,
} CablePairingType;
struct cable_pairing {
@@ -72,6 +73,30 @@ get_pairing(uint16_t vid, uint16_t pid, const char *name)
.version = 0x0001,
.type = CABLE_PAIRING_DS4,
},
+ {
+ .name = "Sony Interactive Entertainment Wireless Controller",
+ .source = 0x0002,
+ .vid = 0x054c,
+ .pid = 0x0ce6,
+ .version = 0x0001,
+ .type = CABLE_PAIRING_DUALSENSE,
+ },
+ {
+ .name = "Sony Interactive Entertainment DualSense Wireless Controller",
+ .source = 0x0002,
+ .vid = 0x054c,
+ .pid = 0x0ce6,
+ .version = 0x0001,
+ .type = CABLE_PAIRING_DUALSENSE,
+ },
+ {
+ .name = "Sony Interactive Entertainment DualSense Edge Wireless Controller",
+ .source = 0x0002,
+ .vid = 0x054c,
+ .pid = 0x0df2,
+ .version = 0x0001,
+ .type = CABLE_PAIRING_DUALSENSE,
+ },
};
guint i;
--
2.49.0
next prev parent reply other threads:[~2025-06-03 10:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 9:56 [PATCH BlueZ 0/2] Cable pairing support for DualSense Egor Vorontsov
2025-06-03 9:56 ` Egor Vorontsov [this message]
2025-06-03 11:32 ` bluez.test.bot
2025-08-21 13:11 ` [PATCH BlueZ 1/2] profiles/input: Add cable pairing constants " Bastien Nocera
2025-06-03 9:56 ` [PATCH BlueZ 2/2] plugins/sixaxis: Implement cable pairing " Egor Vorontsov
2025-06-03 14:40 ` Luiz Augusto von Dentz
2025-06-03 14:55 ` Egor Vorontsov
2025-06-03 15:38 ` Luiz Augusto von Dentz
2025-06-03 18:35 ` Egor Vorontsov
2025-06-04 12:41 ` Luiz Augusto von Dentz
2025-06-04 22:50 ` Egor Vorontsov
2025-08-10 20:46 ` Egor Vorontsov
2025-08-21 13:12 ` Bastien Nocera
2025-08-21 13:12 ` Bastien Nocera
2025-08-21 13:12 ` Bastien Nocera
2025-08-21 13:00 ` [PATCH BlueZ 0/2] Cable pairing support " Bastien Nocera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250603095617.92785-2-sdoregor@sdore.me \
--to=sdoregor@sdore.me \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.