Fix the get / set property fail issue for transport 14/225414/1 submit/tizen/20200220.012900 submit/tizen/20200220.013347
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Feb 2020 02:06:53 +0000 (11:06 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 20 Feb 2020 00:13:37 +0000 (09:13 +0900)
Change-Id: I0452c2df36a20e74faa6d47f356082a9ffb61c63
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
profiles/audio/transport.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 8a60a77..b19aa00
@@ -615,6 +615,7 @@ static gboolean get_state(const GDBusPropertyTable *property,
        return TRUE;
 }
 
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
 static gboolean delay_exists(const GDBusPropertyTable *property, void *data)
 {
        struct media_transport *transport = data;
@@ -622,6 +623,7 @@ static gboolean delay_exists(const GDBusPropertyTable *property, void *data)
 
        return a2dp->delay != 0;
 }
+#endif
 
 static gboolean get_delay(const GDBusPropertyTable *property,
                                        DBusMessageIter *iter, void *data)
@@ -635,7 +637,7 @@ static gboolean get_delay(const GDBusPropertyTable *property,
 }
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-static void delay_report(const GDBusPropertyTable *property,
+static void set_delay(const GDBusPropertyTable *property,
                        DBusMessageIter *iter, GDBusPendingPropertySet id,
                        void *data)
 {
@@ -669,6 +671,7 @@ static void delay_report(const GDBusPropertyTable *property,
 }
 #endif
 
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
 static gboolean volume_exists(const GDBusPropertyTable *property, void *data)
 {
        struct media_transport *transport = data;
@@ -676,6 +679,7 @@ static gboolean volume_exists(const GDBusPropertyTable *property, void *data)
 
        return a2dp->volume <= 127;
 }
+#endif
 
 static gboolean get_volume(const GDBusPropertyTable *property,
                                        DBusMessageIter *iter, void *data)
@@ -770,11 +774,12 @@ static const GDBusPropertyTable transport_properties[] = {
        { "Configuration", "ay", get_configuration },
        { "State", "s", get_state },
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-       { "Delay", "q", get_delay, delay_report, delay_exists },
+       { "Delay", "q", get_delay, set_delay },
+       { "Volume", "q", get_volume, set_volume },
 #else
        { "Delay", "q", get_delay, NULL, delay_exists },
-#endif
        { "Volume", "q", get_volume, set_volume, volume_exists },
+#endif
        { "Endpoint", "o", get_endpoint, NULL, endpoint_exists,
                                G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
        { }