base-usb: add new Lightspeed receiver
used in the G305 Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
parent
966c55e69d
commit
1bb08d011d
|
@ -55,6 +55,7 @@ NANO_RECEIVER_6042 = _lenovo_receiver(0x6042)
|
||||||
# Lightspeed receivers
|
# Lightspeed receivers
|
||||||
LIGHTSPEED_RECEIVER_C539 = _lightspeed_receiver(0xc539)
|
LIGHTSPEED_RECEIVER_C539 = _lightspeed_receiver(0xc539)
|
||||||
LIGHTSPEED_RECEIVER_C53a = _lightspeed_receiver(0xc53a)
|
LIGHTSPEED_RECEIVER_C53a = _lightspeed_receiver(0xc53a)
|
||||||
|
LIGHTSPEED_RECEIVER_C53f = _lightspeed_receiver(0xc53f)
|
||||||
|
|
||||||
del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver
|
del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver
|
||||||
|
|
||||||
|
@ -76,4 +77,5 @@ ALL = (
|
||||||
NANO_RECEIVER_6042,
|
NANO_RECEIVER_6042,
|
||||||
LIGHTSPEED_RECEIVER_C539,
|
LIGHTSPEED_RECEIVER_C539,
|
||||||
LIGHTSPEED_RECEIVER_C53a,
|
LIGHTSPEED_RECEIVER_C53a,
|
||||||
|
LIGHTSPEED_RECEIVER_C53f,
|
||||||
)
|
)
|
||||||
|
|
|
@ -157,7 +157,8 @@ def _process_hidpp10_notification(device, status, n):
|
||||||
protocol_name = ('unifying (eQuad DJ)' if n.address == 0x04
|
protocol_name = ('unifying (eQuad DJ)' if n.address == 0x04
|
||||||
else 'eQuad' if n.address == 0x03
|
else 'eQuad' if n.address == 0x03
|
||||||
else 'M185' if n.address == 0x0A
|
else 'M185' if n.address == 0x0A
|
||||||
else 'Lightspeed' if n.address == 0x0C
|
else 'Lightspeed 1' if n.address == 0x0C
|
||||||
|
else 'Lightspeed 1_1' if n.address == 0x0D
|
||||||
else None)
|
else None)
|
||||||
if protocol_name:
|
if protocol_name:
|
||||||
if _log.isEnabledFor(_DEBUG):
|
if _log.isEnabledFor(_DEBUG):
|
||||||
|
|
|
@ -345,7 +345,7 @@ class Receiver(object):
|
||||||
self.serial = 0
|
self.serial = 0
|
||||||
self.max_devices = 6
|
self.max_devices = 6
|
||||||
|
|
||||||
if self.product_id == 'c539' or self.product_id == 'c53a':
|
if self.product_id == 'c539' or self.product_id == 'c53a' or self.product_id == 'c53f':
|
||||||
self.name = 'Lightspeed Receiver'
|
self.name = 'Lightspeed Receiver'
|
||||||
elif self.max_devices == 6:
|
elif self.max_devices == 6:
|
||||||
self.name = 'Unifying Receiver'
|
self.name = 'Unifying Receiver'
|
||||||
|
|
|
@ -37,6 +37,7 @@ ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c534", GOTO="solaar_apply"
|
||||||
# Lightspeed receivers
|
# Lightspeed receivers
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c539", GOTO="solaar_apply"
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c539", GOTO="solaar_apply"
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53a", GOTO="solaar_apply"
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53a", GOTO="solaar_apply"
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53f", GOTO="solaar_apply"
|
||||||
|
|
||||||
# Lenovo nano receiver
|
# Lenovo nano receiver
|
||||||
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
|
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
|
||||||
|
|
Loading…
Reference in New Issue