bluez5: backend_native: Fix default HFP codec

This commit is contained in:
Frédéric Danis 2021-02-16 12:03:42 +01:00 committed by Wim Taymans
parent 3aa0a39e30
commit be7caf0e66

View file

@ -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"); spa_log_warn(backend->log, NAME": can't create transport: %m");
// TODO: We should manage the missing transport // TODO: We should manage the missing transport
} }
rfcomm->transport->codec = HFP_AUDIO_CODEC_CVSD;
spa_bt_device_connect_profile(rfcomm->device, rfcomm->profile); 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"); spa_log_warn(backend->log, NAME": can't create transport: %m");
// TODO: We should manage the missing transport // TODO: We should manage the missing transport
} }
rfcomm->transport->codec = HFP_AUDIO_CODEC_CVSD;
spa_bt_device_connect_profile(rfcomm->device, rfcomm->profile); spa_bt_device_connect_profile(rfcomm->device, rfcomm->profile);
break; break;
default: default: