Commit: 4b6153b0501cf18812cb869c2320c41e51f81adc
Parent: d1f3beaaf1949e41fbceba7b56b410bf2fe64879
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-07-23 19:36:06
Tree: 37971324d9d3238a0b724d7bb710231f0f5a249d

audio/transport: supply volume on transport init Sometimes the response of RegisterNotification for volume change event came before we create the transport for the corresponding device. If that happens, the volume will be stuck to an uninitialized invalid value. The property Volume of MediaTransport1 will also be left unaccessible. This patch supplies the initial volume when creating a new transport. The value is obtained from the media_player object. However, since the avrcp session might not be created by the time the transport is created, we also try to initialize the volume when creating avrcp session.

Diffstat

M profiles/audio/avrcp.c | 27 ++++++++++++++++++++++++++-
M profiles/audio/avrcp.h | 2 ++
M profiles/audio/media.c | 60 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - -
M profiles/audio/media.h | 2 ++
M profiles/audio/transport.c | 2 +-

5 files changed, 77 insertions(+), 16 deletions(-)

View Full Diff | Patch