From 121608f0405b7c52240886388dfd4771ad4d75c4 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 30 Jul 2025 20:17:49 +0300 Subject: [PATCH] bluez5: allow framing for BAP There's actually no reason to disable framed qos presets. --- spa/plugins/bluez5/bap-codec-lc3.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spa/plugins/bluez5/bap-codec-lc3.c b/spa/plugins/bluez5/bap-codec-lc3.c index f5bc7e111..d316da2b6 100644 --- a/spa/plugins/bluez5/bap-codec-lc3.c +++ b/spa/plugins/bluez5/bap-codec-lc3.c @@ -480,8 +480,6 @@ static bool select_bap_qos(struct bap_qos *conf, continue; if (!(get_duration_mask(c.frame_duration) & duration_mask)) continue; - if (c.framing) - continue; /* XXX: framing not supported */ if (c.framelen < framelen_min || c.framelen > framelen_max) continue; @@ -1079,7 +1077,11 @@ static int codec_get_qos(const struct media_codec *codec, return -EINVAL; } - qos->framing = false; + if (endpoint_qos->framing == 0x01) + qos->framing = true; + else + qos->framing = bap_qos.framing; + if (endpoint_qos->phy & 0x2) qos->phy = 0x2; else if (endpoint_qos->phy & 0x1)