device type is wrong 92/106292/2
authorhowon kim <howon.kim@samsung.com>
Wed, 21 Dec 2016 08:21:52 +0000 (17:21 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 21 Dec 2016 10:37:19 +0000 (02:37 -0800)
[Version] 5.0.111
[Profile] Common
[Issue Type] Bug fix

Change-Id: Iacf3cb4668cc7c675ce51c3b93d2773ac9be0fcf
Signed-off-by: howon kim <howon.kim@samsung.com>
src/device-manager.c

index d6e43d2..7f4b523 100644 (file)
@@ -1126,7 +1126,7 @@ pa_dynarray* pulse_device_get_belongs_type(pa_object *pdevice, pa_device_manager
 
     PA_IDXSET_FOREACH(type_info, dm->type_infos, type_idx) {
         device_string = pulse_device_get_device_string(pdevice);
-        role = device_type_info_get_role(type_info, pdt, device_string);
+        role = device_type_info_get_role(type_info, !pdt, device_string);
         /* Found type_info which is matching with pulse_device */
         if (role) {
             ctype = pa_xmalloc0(sizeof(struct composite_type));