mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Frank Razenberg <frank@zzattack.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] input: make xpad recognize Razer Sabertooth as 360 controller
Date: Mon, 8 Sep 2014 14:18:19 -0700	[thread overview]
Message-ID: <20140908211819.GA18860@core.coreip.homeip.net> (raw)
In-Reply-To: <CAGL5hbP9+Qx6qa1anhiLBWOowrJi_4xwR-brCsCk5zKKeLBsfw@mail.gmail.com>

On Mon, Sep 08, 2014 at 07:45:10PM +0200, Frank Razenberg wrote:
> The xpad driver recognizes Razer Sabertooth controllers as generic
> xbox controller, while it is really a 360 controller.
> This patch adds pid/vid mappings for the controller so that it is
> correctly recognized.
> 
> Signed-off-by: Frank Razenberg <frank@zzattack.org>
> ---
> diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
> index 177602cf7079..113e30feadf9 100644
> --- a/drivers/input/joystick/xpad.c
> +++ b/drivers/input/joystick/xpad.c
> @@ -171,6 +171,7 @@ static const struct xpad_device {
>         { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0,
> XTYPE_XBOX360 },
>         { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360
> },
>         { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
> +       { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
>         { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
>         { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit",
> MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
>         { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360
> },

Applied, although next time please make sure your mailer does not mangle
the patch (it came to me line-wrapped with tabs replaced by spaces).

Thanks.

-- 
Dmitry

           reply	other threads:[~2014-09-08 21:18 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAGL5hbP9+Qx6qa1anhiLBWOowrJi_4xwR-brCsCk5zKKeLBsfw@mail.gmail.com>]

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=20140908211819.GA18860@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=frank@zzattack.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®