public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Przemysław Firszt" <przemo@firszt.eu>
To: linux-bluetooth@vger.kernel.org
Subject: Wacom Graphire Bluetooth HID driver - help needed
Date: Thu, 28 May 2009 21:43:33 +0100	[thread overview]
Message-ID: <1243543413.21667.23.camel@pldmachine> (raw)

Hi,
I'm working on Wacom Graphire bluetooth tablet driver. It's a HID driver
and it's almost ready to be released, but I still have some problems.
The main one is that the tablet works in mouse mode and I need to send a
control message to switch to tablet mode. Currently I'm using an ugly
hack in /net/bluetooth/hidp/core.c - hidp_add_connection:


        rep_data [0] = 0x03; rep_data [1] = 0x00;
        hidp_send_ctrl_message(session,
                       HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE,
rep_data, 2);
        /* 0x06 - high reporting speed, 0x05 - low speed */
        rep_data [0] = 0x05; rep_data [1] = 0x00;
       hidp_send_ctrl_message(session,
                       HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE,
rep_data, 2);

That hack is based on wacom graphire bluetooth driver created by Andrew
Zabolotny, that driver has never neen mainstreamed, beacause of some
philosophy issues (as far as I understand it)

Any ideas how I can send the control message from HID driver level? Is
it possible?
--
Przemo Firszt


 
 


             reply	other threads:[~2009-05-28 20:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 20:43 Przemysław Firszt [this message]
2009-05-28 22:29 ` Wacom Graphire Bluetooth HID driver - help needed Bastien Nocera
2009-05-29  9:13   ` Przemysław Firszt
2009-06-07 12:25     ` Bastien Nocera
2009-06-07 15:53       ` Marcel Holtmann
2009-06-24 20:49         ` Wacom Graphire Bluetooth HID driver - big lag Przemysław Firszt
2009-06-24 20:55           ` 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=1243543413.21667.23.camel@pldmachine \
    --to=przemo@firszt.eu \
    --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