Bluetooth: mt7921s: Add WBS support
authorYake Yang <yake.yang@mediatek.com>
Wed, 16 Mar 2022 23:15:23 +0000 (07:15 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Mar 2022 16:12:08 +0000 (17:12 +0100)
It is time to add wide band speech (WBS) support.

Reviewed-by: Mark Chen <markyawenchen@gmail.com>
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Yake Yang <yake.yang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtksdio.c

index c28eb9f..f3dc588 100644 (file)
@@ -1123,6 +1123,9 @@ static int btmtksdio_setup(struct hci_dev *hdev)
                        return err;
                }
 
+               /* Enable WBS with mSBC codec */
+               set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks);
+
                /* Enable GPIO reset mechanism */
                if (bdev->reset) {
                        err = btmtksdio_reset_setting(hdev);