mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: add CVSD codec implementation
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/507>
This commit is contained in:
parent
913e7767d6
commit
a7b21fb555
9 changed files with 211 additions and 74 deletions
|
|
@ -218,7 +218,7 @@ static int card_acquire(struct hf_audio_card *card) {
|
|||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
card->transport->codec = codec;
|
||||
card->transport->bt_codec = pa_bluetooth_get_hf_codec("CVSD");
|
||||
card->fd = fd;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -686,7 +686,7 @@ static DBusMessage *hf_audio_agent_new_connection(DBusConnection *c, DBusMessage
|
|||
|
||||
card->connecting = false;
|
||||
card->fd = fd;
|
||||
card->transport->codec = codec;
|
||||
card->transport->bt_codec = pa_bluetooth_get_hf_codec("CVSD");
|
||||
|
||||
pa_bluetooth_transport_set_state(card->transport, PA_BLUETOOTH_TRANSPORT_STATE_PLAYING);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue