Skip to content

Commit 981ee23

Browse files
Alain Michaudgregkh
authored andcommitted
Bluetooth: btusb: Add flag to define wideband speech capability
[ Upstream commit 3e4e3f7 ] This change adds a new flag to define a controller's wideband speech capability. This is required since no reliable over HCI mechanism exists to query the controller and driver's compatibility with wideband speech. Signed-off-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Stable-dep-of: da06ff1 ("Bluetooth: btusb: Add 0bda:b85b for Fn-Link RTL8852BE") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0fe69c9 commit 981ee23

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

drivers/bluetooth/btusb.c

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ static struct usb_driver btusb_driver;
5757
#define BTUSB_IFNUM_2 0x80000
5858
#define BTUSB_CW6622 0x100000
5959
#define BTUSB_MEDIATEK 0x200000
60+
#define BTUSB_WIDEBAND_SPEECH 0x400000
6061

6162
static const struct usb_device_id btusb_table[] = {
6263
/* Generic Bluetooth USB device */
@@ -332,15 +333,21 @@ static const struct usb_device_id blacklist_table[] = {
332333
{ USB_DEVICE(0x1286, 0x204e), .driver_info = BTUSB_MARVELL },
333334

334335
/* Intel Bluetooth devices */
335-
{ USB_DEVICE(0x8087, 0x0025), .driver_info = BTUSB_INTEL_NEW },
336-
{ USB_DEVICE(0x8087, 0x0026), .driver_info = BTUSB_INTEL_NEW },
337-
{ USB_DEVICE(0x8087, 0x0029), .driver_info = BTUSB_INTEL_NEW },
336+
{ USB_DEVICE(0x8087, 0x0025), .driver_info = BTUSB_INTEL_NEW |
337+
BTUSB_WIDEBAND_SPEECH },
338+
{ USB_DEVICE(0x8087, 0x0026), .driver_info = BTUSB_INTEL_NEW |
339+
BTUSB_WIDEBAND_SPEECH },
340+
{ USB_DEVICE(0x8087, 0x0029), .driver_info = BTUSB_INTEL_NEW |
341+
BTUSB_WIDEBAND_SPEECH },
338342
{ USB_DEVICE(0x8087, 0x07da), .driver_info = BTUSB_CSR },
339343
{ USB_DEVICE(0x8087, 0x07dc), .driver_info = BTUSB_INTEL },
340344
{ USB_DEVICE(0x8087, 0x0a2a), .driver_info = BTUSB_INTEL },
341-
{ USB_DEVICE(0x8087, 0x0a2b), .driver_info = BTUSB_INTEL_NEW },
342-
{ USB_DEVICE(0x8087, 0x0aa7), .driver_info = BTUSB_INTEL },
343-
{ USB_DEVICE(0x8087, 0x0aaa), .driver_info = BTUSB_INTEL_NEW },
345+
{ USB_DEVICE(0x8087, 0x0a2b), .driver_info = BTUSB_INTEL_NEW |
346+
BTUSB_WIDEBAND_SPEECH },
347+
{ USB_DEVICE(0x8087, 0x0aa7), .driver_info = BTUSB_INTEL |
348+
BTUSB_WIDEBAND_SPEECH },
349+
{ USB_DEVICE(0x8087, 0x0aaa), .driver_info = BTUSB_INTEL_NEW |
350+
BTUSB_WIDEBAND_SPEECH },
344351

345352
/* Other Intel Bluetooth devices */
346353
{ USB_VENDOR_AND_INTERFACE_INFO(0x8087, 0xe0, 0x01, 0x01),

0 commit comments

Comments
 (0)