bluetooth: bluez4: Add profile name to sinks and sources

System Internals / PulseAudio - Pali Rohár [gmail.com] - 28 September 2014 05:34 UTC

Now a2dp and hsp sinks and sources will have different names which means that applications and other modules can use sink/source to distinguish selected profile.

Module module-device-restore uses sink/source name and port name as identifier, so if different profiles have different names module-device-restore can store
volume settings for each profile.

So with this patch it is possible to configure different volume settings for a2dp and hsp profiles.

This patch does not change port names so gnome applications will be happy.

Note that similar patch is needed also for bluez5, but I'm not using bluez5 so I cannot write or test it.

380a7fc bluetooth: bluez4: Add profile name to sinks and sources
src/modules/bluetooth/module-bluez4-device.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share