e6826f63b19f2e8588dbe2eb1e748b8c8a3f5fe2
[openwrt/openwrt.git] /
1 From 4fd6d490796171bf786090fee782e252186632e4 Mon Sep 17 00:00:00 2001
2 From: Nicholas Flintham <nick@flinny.org>
3 Date: Thu, 30 Sep 2021 09:22:39 +0100
4 Subject: [PATCH] Bluetooth: btusb: Add support for TP-Link UB500 Adapter
5
6 Add support for TP-Link UB500 Adapter (RTL8761B)
7
8 * /sys/kernel/debug/usb/devices
9 T: Bus=01 Lev=02 Prnt=05 Port=01 Cnt=01 Dev#= 78 Spd=12 MxCh= 0
10 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
11 P: Vendor=2357 ProdID=0604 Rev= 2.00
12 S: Manufacturer=
13 S: Product=TP-Link UB500 Adapter
14 S: SerialNumber=E848B8C82000
15 C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
16 I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
17 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
18 E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
19 E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
20 I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
21 E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
22 E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
23 I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
24 E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
25 E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
26 I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
27 E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
28 E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
29 I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
30 E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
31 E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
32 I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
33 E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
34 E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
35 I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
36 E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
37 E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
38
39 Signed-off-by: Nicholas Flintham <nick@flinny.org>
40 Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
41 ---
42 drivers/bluetooth/btusb.c | 4 ++++
43 1 file changed, 4 insertions(+)
44
45 --- a/drivers/bluetooth/btusb.c
46 +++ b/drivers/bluetooth/btusb.c
47 @@ -451,6 +451,10 @@ static const struct usb_device_id blackl
48 { USB_DEVICE(0x0bda, 0xb009), .driver_info = BTUSB_REALTEK },
49 { USB_DEVICE(0x2ff8, 0xb011), .driver_info = BTUSB_REALTEK },
50
51 + /* Additional Realtek 8761B Bluetooth devices */
52 + { USB_DEVICE(0x2357, 0x0604), .driver_info = BTUSB_REALTEK |
53 + BTUSB_WIDEBAND_SPEECH },
54 +
55 /* Additional Realtek 8761BU Bluetooth devices */
56 { USB_DEVICE(0x0b05, 0x190e), .driver_info = BTUSB_REALTEK |
57 BTUSB_WIDEBAND_SPEECH },