Commit: 5db6d2fef66fb87217b7795b3d24372e219a9692
Parent: 0491cdf317542c09d7c8a5d80578560257289628
Author: Myrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-08-12 18:04:12
Tree: 5f207a3fe747ff11e8ccfa9323f2d43bf90a448c

audio: Don't initialize media transport volume from media player Media player objects may be shared between devices. As a result, a device without support for hardware volume that is connected after one that does may end up being erroneously considered hardware volume-capable. fa7828bdd ("transport: Fix not being able to initialize volume properly") introduced btd_device_{get,set}_volume that is used as an alternative in case no media player objects are present. Therefore, we can remove media_player_get_device_volume and instead use btd_device_get_volume to determine the initial volume.

Diffstat

M profiles/audio/avrcp.c | 2 +-
M profiles/audio/media.c | 33 +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M profiles/audio/media.h | 1 -

3 files changed, 2 insertions(+), 34 deletions(-)

View Full Diff | Patch