bluetooth: Use 'Alias' value as the device description

The 'Alias' property should be preffered over the 'Name' property,
according to the BlueZ API documentation.
This commit is contained in:
João Paulo Rechi Vita 2013-04-26 21:26:36 -03:00 committed by Arun Raghavan
parent 6e73c05cbc
commit 5b48062f94

View file

@ -2249,7 +2249,7 @@ static int add_card(struct userdata *u) {
data.driver = __FILE__; data.driver = __FILE__;
data.module = u->module; 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_proplist_sets(data.proplist, PA_PROP_DEVICE_DESCRIPTION, n);
pa_xfree(n); pa_xfree(n);
pa_proplist_sets(data.proplist, PA_PROP_DEVICE_STRING, device->address); pa_proplist_sets(data.proplist, PA_PROP_DEVICE_STRING, device->address);