policy: Update omitted device id to HAL in case of manual routing 32/65732/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 12 Apr 2016 08:29:04 +0000 (17:29 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 12 Apr 2016 08:29:04 +0000 (17:29 +0900)
[Version] 5.0.42
[Profile] Common
[Issue Type] Bug fix

Change-Id: I37e890e4f8caa3c09818011af4aea8682d7f3920

packaging/pulseaudio-modules-tizen.spec
src/module-policy.c

index cfd85ff..4ef099e 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.41
+Version:          5.0.42
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 9d82277..2f13087 100644 (file)
@@ -903,8 +903,9 @@ static pa_hook_result_t route_change_hook_cb(pa_core *c, pa_stream_manager_hook_
                                 route_info.device_infos = pa_xrealloc(route_info.device_infos, sizeof(hal_device_info)*route_info.num_of_devices);
                                 route_info.device_infos[route_info.num_of_devices-1].type = dm_device_type;
                                 route_info.device_infos[route_info.num_of_devices-1].direction = CONVERT_TO_HAL_DIRECTION(data->stream_type);
-                                pa_log_info("  ** found a matched device and set state to ACTIVATED: type[%-16s], direction[0x%x]",
-                                            route_info.device_infos[route_info.num_of_devices-1].type, dm_device_direction);
+                                route_info.device_infos[route_info.num_of_devices-1].id = *device_id;
+                                pa_log_info("  ** found a matched device and set state to ACTIVATED: type[%-16s], direction[0x%x], id[%u]",
+                                            route_info.device_infos[route_info.num_of_devices-1].type, dm_device_direction, *device_id);
                                 /* set device state to activated */
                                 set_device_state_if_using_internal_codec(device, data->stream_type, DM_DEVICE_STATE_ACTIVATED);
                             } else