public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gorinov <linux-kernel@altimeter.info>
To: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND v2] HID: winwing: Enable rumble effects
Date: Fri, 27 Feb 2026 15:10:16 -0800	[thread overview]
Message-ID: <f9ae4ed457bcfebe9f9ad1c7305b986b@altimeter.info> (raw)
In-Reply-To: <s44p8pqp-6934-0r6q-n712-o5p5n2qs0429@xreary.bet>

On 2026-02-26 06:58, Jiri Kosina wrote:

> On Thu, 26 Feb 2026, Ivan Gorinov wrote:
> 
>> Enable rumble motor control on TGRIP-15E and TGRIP-15EX throttle grips
>> by sending haptic feedback commands (EV_FF events) to the input 
>> device.
>> 
>> Signed-off-by: Ivan Gorinov <linux-kernel@altimeter.info>
> [ ... snip ... ]
> 
>> +
>> +        buf[0] = 0x02;
>> +        buf[1] = 0x03;
>> +        buf[2] = 0xbf;
>> +        buf[3] = 0x00;
>> +        buf[4] = 0x00;
>> +        buf[5] = 0x03;
>> +        buf[6] = 0x49;
>> +        buf[7] = 0x00;
>> +        buf[8] = m;
>> +        buf[9] = 0x00;
>> +        buf[10] = 0;
>> +        buf[11] = 0;
>> +        buf[12] = 0;
>> +        buf[13] = 0;
> 
> Do these magic numbers have any real meaning, or is it just mimicking
> observed binary stream?
> It'd be nice to have at least short comment explaining it.

Mimicking USB requests captured by usbmon when the vendor's app is 
running in a Win10 VM (Qemu).
I will add some comments.

      reply	other threads:[~2026-02-27 23:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-26  5:49 [PATCH RESEND v2] HID: winwing: Enable rumble effects Ivan Gorinov
2026-02-26 14:58 ` Jiri Kosina
2026-02-27 23:10   ` Ivan Gorinov [this message]

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=f9ae4ed457bcfebe9f9ad1c7305b986b@altimeter.info \
    --to=linux-kernel@altimeter.info \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.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