]> code.delx.au - pulseaudio/commitdiff
bluetooth: Use 'Alias' value as the device description
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>
Sat, 27 Apr 2013 00:26:36 +0000 (21:26 -0300)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:40 +0000 (00:38 +0530)
The 'Alias' property should be preffered over the 'Name' property,
according to the BlueZ API documentation.

src/modules/bluetooth/module-bluetooth-device.c

index c4a1fb0ed34b56bbf83ab756c4ec16af26d0a863..edc2ab1b6ae1fb7d8a838bacd54d6eff00645be1 100644 (file)
@@ -2249,7 +2249,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);