Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
0913257d
Commit
0913257d
authored
4 years ago
by
Julian Bouzas
Committed by
George Kiagiadakis
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
m-device-activation: assume last profile as the one with highest priority
parent
65507188
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/module-device-activation.c
+2
-6
2 additions, 6 deletions
modules/module-device-activation.c
with
2 additions
and
6 deletions
modules/module-device-activation.c
+
2
−
6
View file @
0913257d
...
@@ -172,16 +172,12 @@ on_device_enum_profile_done (WpProxy *proxy, GAsyncResult *res,
...
@@ -172,16 +172,12 @@ on_device_enum_profile_done (WpProxy *proxy, GAsyncResult *res,
wp_warning_object
(
self
,
"bluetooth profile does not have index / name"
);
wp_warning_object
(
self
,
"bluetooth profile does not have index / name"
);
continue
;
continue
;
}
}
wp_info_object
(
self
,
"bluez profile found: %s (%d)"
,
name
,
index
);
/* TODO:
for now we always us
e the
fir
st profile
available
*/
/* TODO:
we assum
e the
la
st profile
is the one with highest priority
*/
profile_index
=
index
;
profile_index
=
index
;
break
;
}
}
/* TODO: Currently, it seems that the bluetooth device allways returns an
* empty list of profiles when doing EnumProfile, so for now we use a default
* profile with index 1 if the list is empty. We should return an error
* if none of them were found */
set_device_profile
(
proxy
,
profile_index
);
set_device_profile
(
proxy
,
profile_index
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment