Re: [PATCH] Bluetooth: btusb: add Realtek 8822CE to blacklist_table

From: Marcel Holtmann
Date: Fri Jul 03 2020 - 03:27:13 EST


Hi Joseph,

> This patch adds the Realtek 8822CE controller to the blacklist_table
> to support the wideband speech capability.
>
> Signed-off-by: Joseph Hwang <josephsih@xxxxxxxxxxxx>
> ---
>
> drivers/bluetooth/btusb.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 0e143c0cecf2a1..34a84c64e4c83e 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -359,6 +359,10 @@ static const struct usb_device_id blacklist_table[] = {
> { USB_VENDOR_AND_INTERFACE_INFO(0x8087, 0xe0, 0x01, 0x01),
> .driver_info = BTUSB_IGNORE },
>
> + /* Realtek 8822CE Bluetooth devices */
> + { USB_DEVICE(0x0bda, 0xb00c), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> +
> /* Realtek Bluetooth devices */
> { USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01),
> .driver_info = BTUSB_REALTEK },

I rather not have to list these one-by-one. Can we just not globally declare support for this? Or can we have a Realtek vendor command to read this out?

Regards

Marcel