Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Show 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