From 1e5f499ed3ef52148a8811d28109e56ddb859dd1 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 11 Dec 2021 17:19:16 +0200 Subject: [PATCH] bluez5: fix aptx-ll caps size Ensure SEP exposed by Pipewire has the full aptx-LL caps also for duplex profile. --- spa/plugins/bluez5/a2dp-codec-aptx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/a2dp-codec-aptx.c b/spa/plugins/bluez5/a2dp-codec-aptx.c index bb015f699..8da062961 100644 --- a/spa/plugins/bluez5/a2dp-codec-aptx.c +++ b/spa/plugins/bluez5/a2dp-codec-aptx.c @@ -79,7 +79,8 @@ static inline bool codec_is_hd(const struct a2dp_codec *codec) static inline bool codec_is_ll(const struct a2dp_codec *codec) { - return codec->id == SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL; + return (codec->id == SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL) || + (codec->id == SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX); } static inline size_t codec_get_caps_size(const struct a2dp_codec *codec)