mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
bluetooth: Add debug logging to profile creation
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/638>
This commit is contained in:
parent
f7acc2ad7d
commit
48c78f0835
1 changed files with 10 additions and 3 deletions
|
|
@ -2195,11 +2195,18 @@ static int add_card(struct userdata *u) {
|
|||
if (uuid_to_profile(uuid, &profile) < 0)
|
||||
continue;
|
||||
|
||||
if (pa_hashmap_get(data.profiles, pa_bluetooth_profile_to_string(profile)))
|
||||
continue;
|
||||
pa_log_debug("Trying to create profile %s (%s) for device %s (%s)",
|
||||
pa_bluetooth_profile_to_string(profile), uuid, d->alias, d->address);
|
||||
|
||||
if (!pa_bluetooth_device_supports_profile(d, profile))
|
||||
if (pa_hashmap_get(data.profiles, pa_bluetooth_profile_to_string(profile))) {
|
||||
pa_log_debug("%s already exists", pa_bluetooth_profile_to_string(profile));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!pa_bluetooth_device_supports_profile(d, profile)) {
|
||||
pa_log_debug("%s is not supported by the device or adapter", pa_bluetooth_profile_to_string(profile));
|
||||
continue;
|
||||
}
|
||||
|
||||
cp = create_card_profile(u, profile, data.ports);
|
||||
pa_hashmap_put(data.profiles, cp->name, cp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue