Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pulseaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marijn Suijten
pulseaudio
Commits
b268433a
Commit
b268433a
authored
Oct 25, 2020
by
Marijn Suijten
🦀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! bluetooth: Synchronize AVRCP Absolute Volume with A2DP sink
parent
91c54f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/modules/bluetooth/bluez5-util.c
src/modules/bluetooth/bluez5-util.c
+10
-1
No files found.
src/modules/bluetooth/bluez5-util.c
View file @
b268433a
...
...
@@ -418,10 +418,17 @@ pa_hashmap *pa_bluetooth_transport_get_all(pa_bluetooth_discovery *y) {
static
void
pa_bluetooth_transport_remote_volume_changed
(
pa_bluetooth_transport
*
t
,
pa_volume_t
volume
)
{
pa_bluetooth_hook_t
hook
;
bool
is_source
;
pa_assert
(
t
);
if
(
pa_bluetooth_profile_is_a2dp_source
(
t
->
profile
))
{
is_source
=
pa_bluetooth_profile_is_a2dp_source
(
t
->
profile
);
pa_log_debug
(
"Reporting volume change %d/127 for %s"
,
volume
,
is_source
?
"source"
:
"sink"
);
if
(
is_source
)
{
t
->
rx_volume_gain
=
volume
;
hook
=
PA_BLUETOOTH_HOOK_TRANSPORT_RX_VOLUME_GAIN_CHANGED
;
}
else
if
(
pa_bluetooth_profile_is_a2dp_sink
(
t
->
profile
))
{
...
...
@@ -771,6 +778,8 @@ static void parse_transport_property(pa_bluetooth_transport *t, DBusMessageIter
if
(
key
==
NULL
)
return
;
pa_log_debug
(
"Transport property %s changed"
,
key
);
dbus_message_iter_recurse
(
i
,
&
variant_i
);
switch
(
dbus_message_iter_get_arg_type
(
&
variant_i
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment