From: Mikko Laanti <mikko.laanti@strokeplan.com>
To: linux-bluetooth@vger.kernel.org
Subject: Fwd: Correct contact people(s) and Linux branch for my HID driver?
Date: Thu, 28 May 2026 21:38:18 +0300 [thread overview]
Message-ID: <74db472595986d0dec795353ea5f1eed7a3bd8e2.camel@strokeplan.com> (raw)
Hi,
I have witten following driver for bluetooth HID device iRig BlueTurn.
To whom should I contact? If it is accepted, to what git Linux kernel
branch should I it check-in?
Regards,
Mikko Laanti
// SPDX-License-Identifier: GPL-2.0+
/*
* HID driver for IK Multimedia iRig BlueTurn devices
*
* Copyright (c) 2026 Mikko Laanti <strokeplan@gmail.com>
*/
#include <linux/hid.h>
#include <linux/module.h>
#include "hid-ids.h"
MODULE_AUTHOR("Mikko Laanti <strokeplan@gmail.com");
MODULE_DESCRIPTION("iRig BlueTurn devices");
MODULE_LICENSE("GPL");
/* Changes in Makefile
obj-$(CONFIG_HID_IRIG_BLUETURN) += hid-irig-blueturn.o
* Changes in Kconfig
config HID_IRIG_BLUETURN
tristate "iRig BlueTurn devices"
help
Support for iRig BlueTurn devices, which are not fully
compliant with the
HID standard.
hid-irig-blueturn
To compile this driver as a module, choose M here: the module
will be called hid-irig-blueturn.ko.
* Changes in hid-ids.h
#define USB_VENDOR_ID_IK_MULTIMEDIA 0x0214
#define USB_VENDOR_ID_IK_MULTIMEDIA_IRIG_BLUETURN 0x0002
*/
/*
* The iRig BlueTurn (Page turner) foot controlled bluetooth keyboard
uses unnumbered keyboard messages
* iRig BlueTurn can be configured to three possible configurations for
its two buttons:
* 1. ARROW_UP/ARROW_DOWN
* 2. PAGE_UP/PAGE_DOWN
* 3. ARROW_LEFT/ARROW_RIGHT
* E.g. A compliant bluetooth keyboard sends Up Arrow: 01 00 00 52 00
00 00 00 00 (first data byte means it is "numbered")
* IK multimedia iRig BlueTurn sends Up Arrow: 00 00 00 52 00
00 00 00
* Without this driver and iRig BlueTurn connected, you'll get system
log dmesg error:
* "Event data for report 0 was too short (8 vs 7)" (hid-core.c:
hid_report_raw_event)
*/
static int irig_blueturn_raw_event(struct hid_device *hdev, struct
hid_report *report,
u8 *data, int size)
{
/* iRig Blueturn always sends unnumbered 8 bytes i.e. 64 bits
data reports.
* hid-core.c: hid_report_raw_event() decreases data size by
one because keyboard messages should be numbered.
* We decrease report size here so that it will pass data size
test in hid-core.c:hid_report_raw_event()
* Right way would be to adjust data so that it looks exactly
like compliant keyboard, but we cannot set
* the size because it has been passed to this
irig_blueturn_raw_event as a value, not as a reference.
* So we have to decrease report size here so that it will
pass data size test in hid-core.c:hid_report_raw_event()
*/
int ret = 0;
if (report->size == 64) // 64 bits length
{
report->size = 56; // decrease it to 56 bit
}
return ret;
}
static const struct hid_device_id irig_blueturn_id_table[] = {
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_IK_MULTIMEDIA,
USB_VENDOR_ID_IK_MULTIMEDIA_IRIG_BLUETURN) },
{ }
};
MODULE_DEVICE_TABLE(hid, irig_blueturn_id_table);
static struct hid_driver irig_blueturn_driver = {
.name = "irig blueturn",
.id_table = irig_blueturn_id_table,
.raw_event = irig_blueturn_raw_event,
};
module_hid_driver(irig_blueturn_driver);
next reply other threads:[~2026-05-28 18:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-28 18:38 Mikko Laanti [this message]
2026-06-05 9:25 ` Fwd: Correct contact people(s) and Linux branch for my HID driver? 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=74db472595986d0dec795353ea5f1eed7a3bd8e2.camel@strokeplan.com \
--to=mikko.laanti@strokeplan.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox