From 9e94aafaec7b580a893b2d95d1b3e611875f0e53 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 25 Sep 2021 19:14:18 +0300 Subject: [PATCH] bluez5: fix FastStream microphone support on some devices Some devices require the source direction bit to be selected, in order to send data. --- spa/plugins/bluez5/a2dp-codec-faststream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spa/plugins/bluez5/a2dp-codec-faststream.c b/spa/plugins/bluez5/a2dp-codec-faststream.c index d89666c40..681725ae0 100644 --- a/spa/plugins/bluez5/a2dp-codec-faststream.c +++ b/spa/plugins/bluez5/a2dp-codec-faststream.c @@ -105,6 +105,9 @@ static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags, conf.direction = FASTSTREAM_DIRECTION_SINK; + if (codec->duplex_codec) + conf.direction |= FASTSTREAM_DIRECTION_SOURCE; + if ((i = a2dp_codec_select_config(frequencies, SPA_N_ELEMENTS(frequencies), conf.sink_frequency,