bluez5: remove per-device codec filtering

This does not work as intended, because we no longer do a codec switch
on device connect.  It should be done in a different way, but since it's
not used for anything right now, can as well remove it.
This commit is contained in:
Pauli Virtanen 2021-03-06 14:46:57 +02:00
parent 662fd8a1f9
commit e42261c6d2
6 changed files with 10 additions and 38 deletions

View file

@ -181,8 +181,7 @@ static struct spa_bt_transport *find_transport(struct impl *this, int profile, c
for (i = 0; i < num_codecs; ++i) {
spa_list_for_each(t, &device->transport_list, device_link) {
if (t->enabled &&
(t->profile & device->connected_profiles) &&
if ((t->profile & device->connected_profiles) &&
(t->profile & profile) == t->profile &&
(codecs[i] == NULL || t->a2dp_codec == codecs[i]))
return t;