mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
bluez5: ensure transport->codec is set also for HSP
This commit is contained in:
parent
823fb91756
commit
f142c0a5b0
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ static struct spa_bt_transport *_transport_create(struct rfcomm *rfcomm)
|
||||||
t->backend = &backend->this;
|
t->backend = &backend->this;
|
||||||
t->n_channels = 1;
|
t->n_channels = 1;
|
||||||
t->channels[0] = SPA_AUDIO_CHANNEL_MONO;
|
t->channels[0] = SPA_AUDIO_CHANNEL_MONO;
|
||||||
|
t->codec = HFP_AUDIO_CODEC_CVSD;
|
||||||
|
|
||||||
td = t->user_data;
|
td = t->user_data;
|
||||||
td->rfcomm = rfcomm;
|
td->rfcomm = rfcomm;
|
||||||
|
|
@ -2299,6 +2300,7 @@ static DBusHandlerResult profile_new_connection(DBusConnection *conn, DBusMessag
|
||||||
spa_log_warn(backend->log, "can't create transport: %m");
|
spa_log_warn(backend->log, "can't create transport: %m");
|
||||||
goto fail_need_memory;
|
goto fail_need_memory;
|
||||||
}
|
}
|
||||||
|
t->codec = HFP_AUDIO_CODEC_CVSD;
|
||||||
rfcomm->transport = t;
|
rfcomm->transport = t;
|
||||||
rfcomm->has_volume = rfcomm_volume_enabled(rfcomm);
|
rfcomm->has_volume = rfcomm_volume_enabled(rfcomm);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue