2020-10-28 22:00:16

by Max Chou

[permalink] [raw]
Subject: [PATCH] Bluetooth: btusb: Add more IDs to usb_device_id table for Realtek RTL8822CE

From: Max Chou <[email protected]>

Add more IDs to usb_device_id table for Realtek
RTL8822CE and also support the wideband speech capability.

Signed-off-by: Max Chou <[email protected]>
---
drivers/bluetooth/btusb.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 1005b6e8ff74..4a1f877616d6 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -425,8 +425,22 @@ static const struct usb_device_id blacklist_table[] = {
{ USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK },

/* Additional Realtek 8822CE Bluetooth devices */
- { USB_DEVICE(0x04ca, 0x4005), .driver_info = BTUSB_REALTEK },
- { USB_DEVICE(0x13d3, 0x3548), .driver_info = BTUSB_REALTEK },
+ { USB_DEVICE(0x04ca, 0x4005), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x04c5, 0x161f), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x0b05, 0x18ef), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x13d3, 0x3548), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x13d3, 0x3549), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x13d3, 0x3553), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x13d3, 0x3555), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x2ff8, 0x3051), .driver_info = BTUSB_REALTEK |
+ BTUSB_WIDEBAND_SPEECH },

/* Silicon Wave based devices */
{ USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },
--
2.17.1


2020-10-28 22:10:22

by An, Tedd

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: btusb: Add more IDs to usb_device_id table for Realtek RTL8822CE

Hi Max

On Wed, 2020-10-28 at 10:36 +0800, [email protected] wrote:
> From: Max Chou <[email protected]>
>
> Add more IDs to usb_device_id table for Realtek
> RTL8822CE and also support the wideband speech capability.
>
> Signed-off-by: Max Chou <[email protected]>
> ---
> drivers/bluetooth/btusb.c | 18 ++++++++++++++++--
> 1 file changed, 16 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 1005b6e8ff74..4a1f877616d6 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -425,8 +425,22 @@ static const struct usb_device_id blacklist_table[] = {
> { USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK },
>
> /* Additional Realtek 8822CE Bluetooth devices */
> - { USB_DEVICE(0x04ca, 0x4005), .driver_info = BTUSB_REALTEK },
> - { USB_DEVICE(0x13d3, 0x3548), .driver_info = BTUSB_REALTEK },
> + { USB_DEVICE(0x04ca, 0x4005), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x04c5, 0x161f), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x0b05, 0x18ef), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x13d3, 0x3548), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x13d3, 0x3549), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x13d3, 0x3553), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x13d3, 0x3555), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },
> + { USB_DEVICE(0x2ff8, 0x3051), .driver_info = BTUSB_REALTEK |
> + BTUSB_WIDEBAND_SPEECH },

Please include the content of /sys/kernel/debug/usb/devices for the devices in
the commit message.

>
> /* Silicon Wave based devices */
> { USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },