device-manager: Update sco open state in dbus_filter_device_detect_handler() 73/155473/1 accepted/tizen/4.0/unified/20171018.060439 submit/tizen_4.0/20171013.073227
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 13 Oct 2017 07:48:36 +0000 (16:48 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 13 Oct 2017 07:51:53 +0000 (16:51 +0900)
[Version] 5.0.174
[Issue Type] Enhancement

Change-Id: I0440b19f10512d3a97922fe89fa9bfac035b411a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/device-manager.c

index 26dcca187b397c11d1765c9faeec1cdf76547f74..869cc940f291c36a5ba2b828325741904be2c7c6 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.173
+Version:          5.0.174
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index cc95ec850ce37602fa435a7de7bd9ffb858c0b2f..4221b96effda92abb51f9cf9b8abf616f2d3015e 100644 (file)
@@ -2523,11 +2523,12 @@ static DBusHandlerResult dbus_filter_device_detect_handler(DBusConnection *c, DB
                 handle_device_status_changed(dm, DEVICE_TYPE_BT_SCO,
                         name, dbus_message_get_path(s),  detected);
             } else if (pa_streq(property_name, "Playing")) {
+                pa_tz_device *device;
                 pa_log_info("SCO Playing : %d", value);
-                if (value) {
-                    /* update BT band/nrec information */
-                    pa_tz_device *device;
-                    if ((device = _device_list_get_device(dm, DEVICE_TYPE_BT_SCO, NULL)) != NULL) {
+                if ((device = _device_list_get_device(dm, DEVICE_TYPE_BT_SCO, NULL)) != NULL) {
+                    device->sco_opened = value;
+                    if (value) {
+                        /* update BT band/nrec information */
                         bool is_wide_band = false;
                         bool nrec = false;
                         pa_tz_device_sco_get_property(device, &is_wide_band, &nrec);