From 2abcbd204149a1fd95b2bdc7eb5dc00c9f8d2863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Thu, 15 Sep 2016 17:52:40 +0200 Subject: [PATCH] bluetooth: bluez5: Add profile name to sinks and sources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See commit 380a7fc2401ea26151e0383adff05314a263ac31. Signed-off-by: Pali Rohár --- src/modules/bluetooth/module-bluez5-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c index b8b04931b..a05ae8d87 100644 --- a/src/modules/bluetooth/module-bluez5-device.c +++ b/src/modules/bluetooth/module-bluez5-device.c @@ -947,7 +947,7 @@ static int add_source(struct userdata *u) { data.module = u->module; data.card = u->card; data.driver = __FILE__; - data.name = pa_sprintf_malloc("bluez_source.%s", u->device->address); + data.name = pa_sprintf_malloc("bluez_source.%s.%s", u->device->address, pa_bluetooth_profile_to_string(u->profile)); data.namereg_fail = false; pa_proplist_sets(data.proplist, "bluetooth.protocol", pa_bluetooth_profile_to_string(u->profile)); pa_source_new_data_set_sample_spec(&data, &u->sample_spec); @@ -1104,7 +1104,7 @@ static int add_sink(struct userdata *u) { data.module = u->module; data.card = u->card; data.driver = __FILE__; - data.name = pa_sprintf_malloc("bluez_sink.%s", u->device->address); + data.name = pa_sprintf_malloc("bluez_sink.%s.%s", u->device->address, pa_bluetooth_profile_to_string(u->profile)); data.namereg_fail = false; pa_proplist_sets(data.proplist, "bluetooth.protocol", pa_bluetooth_profile_to_string(u->profile)); pa_sink_new_data_set_sample_spec(&data, &u->sample_spec);