On 8/19/21 1:44 AM, Greg KH wrote:
On Wed, Aug 18, 2021 at 07:04:47PM -0400, Mike wrote:
From: Pauli Virtanen <pav@xxxxxx>
Kernel Version 5.13
commit 55981d3541812234e687062926ff199c83f79a39 upstream.
There is no such commit in Linus's tree :(
- new_alts = btusb_find_altsetting(data, 6) ? 6 : 1;
- /* Because mSBC frames do not need to be aligned to the
- * SCO packet boundary. If support the Alt 3, use the
- * Alt 3 for HCI payload >= 60 Bytes let air packet
- * data satisfy 60 bytes.
- */
- if (new_alts == 1 && btusb_find_altsetting(data, 3))
+ if (btusb_find_altsetting(data, 6))
+ new_alts = 6;
+ else if (btusb_find_altsetting(data, 3) &&
+ hdev->sco_mtu >= 72 &&
+ test_bit(BTUSB_USE_ALT3_FOR_WBS, &data->flags))
new_alts = 3;
Your patch is also corrupted and could not be applied :(
You're totally right, Greg. My apologies. Never work when you're tired.
I'll resubmit when it makes Linus' tree unless the author does.