* [PATCH] Adds Sony Move Navigation controller.
@ 2014-10-07 16:04 Alex Gal
2014-10-10 10:07 ` Szymon Janc
0 siblings, 1 reply; 3+ messages in thread
From: Alex Gal @ 2014-10-07 16:04 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Alex Gal
Signed-off-by: Alex <a.gal@miip.ca>
---
plugins/sixaxis.c | 7 +++++++
profiles/input/server.c | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c
index b09404a..6f7893e 100644
--- a/plugins/sixaxis.c
+++ b/plugins/sixaxis.c
@@ -60,6 +60,13 @@ static const struct {
.pid = 0x0268,
.version = 0x0000,
},
+ {
+ .name = "PLAYSTATION(R)3 Controller", /* Move Navigation */
+ .source = 0x0002,
+ .vid = 0x054c,
+ .pid = 0x042f,
+ .version = 0x0000,
+ },
};
struct leds_data {
diff --git a/profiles/input/server.c b/profiles/input/server.c
index 307db96..5463311 100644
--- a/profiles/input/server.c
+++ b/profiles/input/server.c
@@ -140,6 +140,10 @@ static bool dev_is_sixaxis(const bdaddr_t *src, const bdaddr_t *dst)
if (vid == 0x054c && pid == 0x05c4)
return true;
+ /* Move Navigation */
+ if (vid == 0x054c && pid == 0x042f)
+ return true;
+
return false;
}
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Adds Sony Move Navigation controller.
2014-10-07 16:04 [PATCH] Adds Sony Move Navigation controller Alex Gal
@ 2014-10-10 10:07 ` Szymon Janc
2014-10-15 11:24 ` Alex Gal
0 siblings, 1 reply; 3+ messages in thread
From: Szymon Janc @ 2014-10-10 10:07 UTC (permalink / raw)
To: Alex Gal; +Cc: linux-bluetooth
Hi Alex,
Thanks for patch, some small comments from my side.
On Tuesday 07 of October 2014 12:04:37 Alex Gal wrote:
> Signed-off-by: Alex <a.gal@miip.ca>
We don't use SOB in userspace so this is not needed.
Also I'd prefer if you could put plugin change into separate patch.
And prefix them appropriately ie. "sixaxis: " for plugin and "input: "
for input change.
> ---
> plugins/sixaxis.c | 7 +++++++
> profiles/input/server.c | 4 ++++
> 2 files changed, 11 insertions(+)
>
> diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c
> index b09404a..6f7893e 100644
> --- a/plugins/sixaxis.c
> +++ b/plugins/sixaxis.c
> @@ -60,6 +60,13 @@ static const struct {
> .pid = 0x0268,
> .version = 0x0000,
> },
> + {
> + .name = "PLAYSTATION(R)3 Controller", /* Move Navigation */
Does Move Navigation use same name as DS3?
> + .source = 0x0002,
> + .vid = 0x054c,
> + .pid = 0x042f,
> + .version = 0x0000,
> + },
> };
>
> struct leds_data {
> diff --git a/profiles/input/server.c b/profiles/input/server.c
> index 307db96..5463311 100644
> --- a/profiles/input/server.c
> +++ b/profiles/input/server.c
> @@ -140,6 +140,10 @@ static bool dev_is_sixaxis(const bdaddr_t *src, const bdaddr_t *dst)
> if (vid == 0x054c && pid == 0x05c4)
> return true;
>
> + /* Move Navigation */
> + if (vid == 0x054c && pid == 0x042f)
> + return true;
> +
> return false;
> }
>
>
--
Best regards,
Szymon Janc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Adds Sony Move Navigation controller.
2014-10-10 10:07 ` Szymon Janc
@ 2014-10-15 11:24 ` Alex Gal
0 siblings, 0 replies; 3+ messages in thread
From: Alex Gal @ 2014-10-15 11:24 UTC (permalink / raw)
To: Szymon Janc; +Cc: linux-bluetooth
Hi Szymon,
On Fri, Oct 10, 2014 at 6:07 AM, Szymon Janc <szymon.janc@tieto.com> wrote:
> Thanks for patch, some small comments from my side.
No problem, I will resend the patches later this week.
By the way, you were right about the Move Navigation clones since they
try to connect with a different mac address. I will try to see what
can be done about them.
Thank you,
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-15 11:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 16:04 [PATCH] Adds Sony Move Navigation controller Alex Gal
2014-10-10 10:07 ` Szymon Janc
2014-10-15 11:24 ` Alex Gal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox