Re: To add a device support it should be BlackListed ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The blacklist just tell the hid system a device needs some special handling.  The patch you link to
was actually an ntrig employee trying to nix the existing functionality by telling the hid system to
ignore the device.  It is not a good positive example as to how to get hid to support your device.

The first thing you should check is if IS_INPUT_APPLICATION supports the "usage" your device
reports.  I'm sure there's an easy way to see what usage a device reports, but I don't know about
it.  It's pretty easy to add a printk just before (or an else after)
            if (IS_INPUT_APPLICATION(col->usage))
in hid-input.c

Anyway, that will tell you if the hid system is ignoring your device, and what to add to
IS_INPUT_APPLICATION in include/linux/hid.h, if necessary.

Rafi

Mohamed Ikbel Boulabiar wrote:
> Hi,
> 
> I am trying with my professor Stéphane Chatty to add support to a
> Stantum multitouch tablet that is a HID device.
> 
> We tried copying hid-ntrig.c and applying modification to get
> supported but we haven't reached something functional.
> 
> Should we add more information to some place to reach our goals ?
> I have read this and we maybe need to blacklist the stantum somewhere
> (hid-quirks.c ?)
> 
> "This patch is required for N-trig support for the Linux Environment.
> It requests the USBHID driver to ignore an N-trig device, when
> connected to the USB bus."
> http://kerneltrap.org/index.php?q=mailarchive/linux-usb/2009/1/20/4772014/thread
> 
> 
> Is this true ? How should we do it ? And why (because we have at least
> 3 to 4 other devices from other constructors and we want to add
> support) ?
> 
> 
> Thanks
> ______________________________
> Mohamed-Ikbel BOULABIAR
> Élève Ingénieur ENSI - Tunisie
> Stagiaire au LII - ENAC, Toulouse
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoLUWQACgkQwuRiAT9o608k5gCfUt0Z7eyUD90pacILQaVzu3pW
2x4AniKheYq6fC0FFAMaQ2Z//RfGl61c
=zGPE
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux