Skip to content

Commit

Permalink
bluez5: lc3: prefer 7.5 ms frame duration
Browse files Browse the repository at this point in the history
According to Intel people this is better for their hardware.

Link: bluez/bluez#713
  • Loading branch information
pv authored and wtay committed Jan 9, 2024
1 parent 3b01205 commit f341dfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spa/plugins/bluez5/bap-codec-lc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ static bool select_config(bap_lc3_t *conf, const struct pac_data *pac, struct sp
spa_return_val_if_fail(ltv->len == 2, false);
{
uint8_t duration = ltv->value[0];
if (duration & LC3_DUR_10)
conf->frame_duration = LC3_CONFIG_DURATION_10;
else if (duration & LC3_DUR_7_5)
if (duration & LC3_DUR_7_5)
conf->frame_duration = LC3_CONFIG_DURATION_7_5;
else if (duration & LC3_DUR_10)
conf->frame_duration = LC3_CONFIG_DURATION_10;
else {
spa_debugc(debug_ctx, "unsupported duration: 0x%02x", duration);
return false;
Expand Down

0 comments on commit f341dfe

Please sign in to comment.