mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
HID: steelseries: Fix ARCTIS_1_X device mislabeling
The SteelSeries Arctis 1 Wireless for Xbox (0x12b6) was labelled as the plain Arctis 1 Wireless. Rename USB_DEVICE_ID_STEELSERIES_ARCTIS_1 to USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X, along with the matching quirk flag and device table entry. The device ID value is unchanged. Signed-off-by: Sriman Achanta <srimanachanta@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
2346d6997b
commit
44300576b5
|
|
@ -1377,8 +1377,8 @@
|
|||
|
||||
#define USB_VENDOR_ID_STEELSERIES 0x1038
|
||||
#define USB_DEVICE_ID_STEELSERIES_SRWS1 0x1410
|
||||
#define USB_DEVICE_ID_STEELSERIES_ARCTIS_1 0x12b6
|
||||
#define USB_DEVICE_ID_STEELSERIES_ARCTIS_9 0x12c2
|
||||
#define USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X 0x12b6
|
||||
#define USB_DEVICE_ID_STEELSERIES_ARCTIS_9 0x12c2
|
||||
#define USB_DEVICE_ID_STEELSERIES_MSI_KLC 0x1122
|
||||
#define USB_DEVICE_ID_STEELSERIES_MSI_ALC 0x1161
|
||||
|
||||
|
|
|
|||
|
|
@ -747,7 +747,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
|
|||
#endif
|
||||
#if IS_ENABLED(CONFIG_HID_STEELSERIES)
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_SRWS1) },
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_ARCTIS_1) },
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X) },
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_ARCTIS_9) },
|
||||
#endif
|
||||
#if IS_ENABLED(CONFIG_HID_SUNPLUS)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#include "hid-ids.h"
|
||||
|
||||
#define STEELSERIES_SRWS1 BIT(0)
|
||||
#define STEELSERIES_ARCTIS_1 BIT(1)
|
||||
#define STEELSERIES_ARCTIS_1_X BIT(1)
|
||||
#define STEELSERIES_ARCTIS_9 BIT(2)
|
||||
#define STEELSERIES_MSI_RGB BIT(3)
|
||||
|
||||
|
|
@ -396,7 +396,7 @@ static void steelseries_headset_fetch_battery(struct hid_device *hdev)
|
|||
{
|
||||
int ret = 0;
|
||||
|
||||
if (hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_1)
|
||||
if (hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X)
|
||||
ret = steelseries_headset_request_battery(hdev,
|
||||
arctis_1_battery_request, sizeof(arctis_1_battery_request));
|
||||
else if (hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_9)
|
||||
|
|
@ -829,7 +829,7 @@ static int steelseries_probe(struct hid_device *hdev, const struct hid_device_id
|
|||
return 0;
|
||||
}
|
||||
|
||||
if ((sd->quirks & (STEELSERIES_ARCTIS_1 | STEELSERIES_ARCTIS_9)) &&
|
||||
if ((sd->quirks & (STEELSERIES_ARCTIS_1_X | STEELSERIES_ARCTIS_9)) &&
|
||||
steelseries_headset_battery_register(sd) < 0)
|
||||
hid_err(sd->hdev,
|
||||
"Failed to register battery for headset\n");
|
||||
|
|
@ -897,7 +897,7 @@ static uint8_t steelseries_headset_map_capacity(uint8_t capacity, uint8_t min_in
|
|||
|
||||
static bool steelseries_is_headset(struct hid_device *hdev)
|
||||
{
|
||||
return hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_1 ||
|
||||
return hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X ||
|
||||
hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_9;
|
||||
}
|
||||
|
||||
|
|
@ -923,7 +923,7 @@ static int steelseries_headset_raw_event(struct hid_device *hdev,
|
|||
connected = sd->headset_connected;
|
||||
charging = sd->battery_charging;
|
||||
|
||||
if (hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_1) {
|
||||
if (hdev->product == USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X) {
|
||||
hid_dbg(sd->hdev,
|
||||
"Parsing raw event for Arctis 1 headset (%*ph)\n", size, read_buf);
|
||||
if (size < ARCTIS_1_BATTERY_RESPONSE_LEN ||
|
||||
|
|
@ -1010,8 +1010,8 @@ static const struct hid_device_id steelseries_devices[] = {
|
|||
.driver_data = STEELSERIES_SRWS1 },
|
||||
|
||||
{ /* SteelSeries Arctis 1 Wireless for XBox */
|
||||
HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_ARCTIS_1),
|
||||
.driver_data = STEELSERIES_ARCTIS_1 },
|
||||
HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_ARCTIS_1_X),
|
||||
.driver_data = STEELSERIES_ARCTIS_1_X },
|
||||
|
||||
{ /* SteelSeries Arctis 9 Wireless for XBox */
|
||||
HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_ARCTIS_9),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user