[pulseaudio-discuss] [PATCH 2/3] bluetooth: Use 'Alias' value as the device description

jprvita at gmail.com jprvita at gmail.com
Fri Apr 26 08:30:25 PDT 2013


From: João Paulo Rechi Vita <jprvita at openbossa.org>

The 'Alias' property should be preffered over the 'Name' property, according to
the org.bluez.Device1 API documentation.
---
 src/modules/bluetooth/module-bluetooth-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 8695c80..11c6e5f 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -2229,7 +2229,7 @@ static int add_card(struct userdata *u) {
     data.driver = __FILE__;
     data.module = u->module;
 
-    n = pa_bluetooth_cleanup_name(device->name);
+    n = pa_bluetooth_cleanup_name(device->alias);
     pa_proplist_sets(data.proplist, PA_PROP_DEVICE_DESCRIPTION, n);
     pa_xfree(n);
     pa_proplist_sets(data.proplist, PA_PROP_DEVICE_STRING, device->address);
-- 
1.7.11.7



More information about the pulseaudio-discuss mailing list