bluez5: remove HFP codec id from transports

Make HFP codec id backend/codec internal detail. Remove
spa_bt_transport::codec field which is now unused.
This commit is contained in:
Pauli Virtanen 2025-06-07 22:17:56 +03:00 committed by Wim Taymans
parent 3f9fb8d664
commit 83f6d719b1
7 changed files with 24 additions and 32 deletions

View file

@ -33,6 +33,7 @@
#include "defs.h"
#include "media-codecs.h"
#include "hfp-codec-caps.h"
#ifdef HAVE_LIBUSB
#include <libusb.h>
@ -281,7 +282,6 @@ static int rfcomm_new_transport(struct rfcomm *rfcomm, int codec_id)
t->backend = &backend->this;
t->n_channels = 1;
t->channels[0] = SPA_AUDIO_CHANNEL_MONO;
t->codec = codec_id;
t->media_codec = codec;
td = t->user_data;