diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-09-15 17:52:40 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2016-09-18 14:58:49 +0300 |
commit | 2abcbd204149a1fd95b2bdc7eb5dc00c9f8d2863 (patch) | |
tree | a814e45ba19cbb71b8bc83ee50ddcb5c2f4df198 /src | |
parent | 8cda1fe3e2072aba21cfa9f90d707b029c07773c (diff) |
bluetooth: bluez5: Add profile name to sinks and sources
See commit 380a7fc2401ea26151e0383adff05314a263ac31.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/bluetooth/module-bluez5-device.c | 4 |
1 files 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); |