diff options
| author | Pauli Virtanen <[email protected]> | 2021-07-26 21:02:06 +0300 |
|---|---|---|
| committer | Luiz Augusto von Dentz <[email protected]> | 2021-08-10 11:28:49 -0700 |
| commit | 55981d3541812234e687062926ff199c83f79a39 (patch) | |
| tree | c50746b417defc1f48f2410bf082f8df2717ae98 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | e1dee2c1de2b4dd00eb44004a4bda6326ed07b59 (diff) | |
Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS
Some USB BT adapters don't satisfy the MTU requirement mentioned in
commit e848dbd364ac ("Bluetooth: btusb: Add support USB ALT 3 for WBS")
and have ALT 3 setting that produces no/garbled audio. Some adapters
with larger MTU were also reported to have problems with ALT 3.
Add a flag and check it and MTU before selecting ALT 3, falling back to
ALT 1. Enable the flag for Realtek, restoring the previous behavior for
non-Realtek devices.
Tested with USB adapters (mtu<72, no/garbled sound with ALT3, ALT1
works) BCM20702A1 0b05:17cb, CSR8510A10 0a12:0001, and (mtu>=72, ALT3
works) RTL8761BU 0bda:8771, Intel AX200 8087:0029 (after disabling
ALT6). Also got reports for (mtu>=72, ALT 3 reported to produce bad
audio) Intel 8087:0a2b.
Signed-off-by: Pauli Virtanen <[email protected]>
Fixes: e848dbd364ac ("Bluetooth: btusb: Add support USB ALT 3 for WBS")
Tested-by: Michał Kępień <[email protected]>
Tested-by: Jonathan Lampérth <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions