Fix bug due to bluetooth profile removal 76/105576/4
authorHyunseok Lee <hs7388.lee@samsung.com>
Mon, 19 Dec 2016 05:00:27 +0000 (14:00 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 19 Dec 2016 11:48:10 +0000 (20:48 +0900)
[Version] 5.0.109
[Profile] Common
[Issue Type] Bug

Change-Id: I32e785f937d92895c29ad1a53dcb57c021c6569a

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

index d5e2588..23aef73 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.108
+Version:          5.0.109
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index a51c07f..6ce8615 100644 (file)
@@ -395,9 +395,6 @@ static bool skip_device(const char *stream_role, const char *device_type)
     if (pa_streq(device_type, DEVICE_TYPE_BT_SCO))
         return true;
 
-    if (pa_streq(device_type, DEVICE_TYPE_BT_A2DP))
-        return true;
-
     /* get sound profile */
     if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &sound_on) < 0) {
         pa_log_error("failed to get vconf - sound status");
@@ -909,8 +906,6 @@ static pa_hook_result_t route_change_hook_cb(pa_core *c, pa_stream_manager_hook_
                     creation_time = pa_tz_device_get_creation_time(device);
                     pa_log_debug("  -- type[%-16s], direction[0x%x], id[%u], creation_time[%llu]",
                                  dm_device_type, dm_device_direction, dm_device_id, creation_time);
-                    if (pa_streq(device->type, DEVICE_TYPE_BT_A2DP))
-                        continue;
                     if (pa_streq(device_type, dm_device_type) && IS_AVAILABLE_DIRECTION(data->stream_type, dm_device_direction)) {
                         if (!latest_device || (latest_creation_time <= creation_time)) {
                             latest_device = device;
@@ -987,7 +982,7 @@ static pa_hook_result_t route_change_hook_cb(pa_core *c, pa_stream_manager_hook_
                 if ((device = pa_device_manager_get_device_by_id(u->device_manager, *device_id))) {
                     /* FIXME : This is temparary code, until App could give
                      * proper BT-SCO device for call-voice */
-                    if (pa_streq(route_info.role, STREAM_ROLE_CALL_VOICE) && pa_streq(device->type, DEVICE_TYPE_BT_A2DP)) {
+                    if (pa_streq(route_info.role, STREAM_ROLE_CALL_VOICE) && pa_streq(device->type, DEVICE_TYPE_BT_SCO)) {
                         pa_tz_device *sco_device;
                         if ((sco_device = _get_sco_connected_device(u->device_manager)) == NULL) {
                             pa_log_error("  ** could not find BT SCO");
index 43b9d48..7504fcb 100644 (file)
@@ -70,7 +70,7 @@ bool device_type_is_use_external_card(const char *device_type) {
         return false;
     else if (pa_streq(device_type, DEVICE_TYPE_USB_AUDIO))
         return true;
-    else if (pa_streq(device_type, DEVICE_TYPE_BT_SCO))
+    else if (pa_streq(device_type, DEVICE_TYPE_BT_A2DP))
         return true;
     else
         return false;