mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
bluez5: fix FastStream microphone support on some devices
Some devices require the source direction bit to be selected, in order to send data.
This commit is contained in:
parent
65f881c222
commit
9e94aafaec
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue