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 cfd85ff76fd75774dfe4c06c872d3f24d6caf668..4ef099e21e0f22f111278e5b5a33ce5ddf3de102 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 9d82277c017d9666e16aaec8e963b816243a5355..2f13087078c0d216625d90cb80663ccaa92de9a9 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