From be7caf0e666232ff8e4275de1d477e3c9b0e7b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Tue, 16 Feb 2021 12:03:42 +0100 Subject: [PATCH] bluez5: backend_native: Fix default HFP codec --- spa/plugins/bluez5/backend-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index a6a533760..84f6881a8 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -387,6 +387,7 @@ static bool rfcomm_hfp_ag(struct spa_source *source, char* buf) spa_log_warn(backend->log, NAME": can't create transport: %m"); // TODO: We should manage the missing transport } + rfcomm->transport->codec = HFP_AUDIO_CODEC_CVSD; spa_bt_device_connect_profile(rfcomm->device, rfcomm->profile); } @@ -507,6 +508,7 @@ static bool rfcomm_hfp_hf(struct spa_source *source, char* buf) spa_log_warn(backend->log, NAME": can't create transport: %m"); // TODO: We should manage the missing transport } + rfcomm->transport->codec = HFP_AUDIO_CODEC_CVSD; spa_bt_device_connect_profile(rfcomm->device, rfcomm->profile); break; default: