Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba40af6f authored by Jiao Zhou's avatar Jiao Zhou
Browse files

floss: update wbs supported pkt size and buffer size

Intel chip 8087:0a2b is violating the spec's preference of using 60
first. Update supported pkt size and buffer size to support it.

Tag: #floss
Flag: EXEMPT, floss change for ChromeOS only
Test: Deploy the floss to dut and verified BT Mic works
Test: mmm packages/modules/Bluetooth
Bug: 294104264
Change-Id: I8b1ca493ac314e2a8c1d3b8ae710109be8b4b6e6
parent f532b9a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -149,10 +149,10 @@ static const uint8_t btm_h2_header_frames_count[] = {0x08, 0x38, 0xc8, 0xf8};
 * code ties to limited packet size values. Specifically list them out
 * to check against when setting packet size. The first entry is the default
 * value as a fallback. */
constexpr size_t btm_wbs_supported_pkt_size[] = {BTM_MSBC_PKT_LEN, 72, 0};
constexpr size_t btm_wbs_supported_pkt_size[] = {BTM_MSBC_PKT_LEN, 72, 24, 0};
/* Buffer size should be set to least common multiple of SCO packet size and
 * BTM_MSBC_PKT_LEN for optimizing buffer copy. */
constexpr size_t btm_wbs_msbc_buffer_size[] = {BTM_MSBC_PKT_LEN, 360, 0};
constexpr size_t btm_wbs_msbc_buffer_size[] = {BTM_MSBC_PKT_LEN, 360, 120, 0};

/* The pre-computed SCO packet per HFP 1.7 spec. This mSBC packet will be
 * decoded into all-zero input PCM. */