mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: backend_native: Fix default HFP codec
This commit is contained in:
parent
3aa0a39e30
commit
be7caf0e66
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue