bluez5: fix BAP profiles showing

Now that we only show codec profiles, the logic that showed codecless
profile for BAP has to be removed.

This fixes BAP only showing off profile.
This commit is contained in:
Pauli Virtanen 2023-08-22 21:59:52 +03:00 committed by Wim Taymans
parent 4694b48b7b
commit dbd97020da

View file

@ -1661,15 +1661,6 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
name = spa_bt_profile_name(profile);
/* If we can't codec switch, emit codecless profile */
if (current && !can_bap_codec_switch(this)) {
codec = 0;
index = get_index_from_profile(this, profile_index, codec);
} else if ((codec != 0) != can_bap_codec_switch(this)) {
errno = -EINVAL;
return NULL;
}
if (codec) {
media_codec = get_supported_media_codec(this, codec, &idx);
if (media_codec == NULL) {