audio/transport: Disable set_volume functionality in DA product 36/313736/2
authorWootak Jung <wootak.jung@samsung.com>
Tue, 4 Jun 2024 07:36:12 +0000 (16:36 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 1 Jul 2024 09:50:28 +0000 (18:50 +0900)
Change-Id: Ibca427f5f6824878c0a615f6792a90139b59993a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
profiles/audio/transport.c

index c8409e6..9f16671 100644 (file)
@@ -806,6 +806,13 @@ static void set_volume(const GDBusPropertyTable *property,
        bool notify;
        int err;
 
+       if (TIZEN_FEATURE_BLUEZ_FHUB) {
+               error("This function is not supported in DA product");
+               g_dbus_pending_property_error(id, ERROR_INTERFACE ".NotSupported",
+                               "Operation is not supported");
+               return;
+       }
+
        if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_UINT16) {
                g_dbus_pending_property_error(id,
                                ERROR_INTERFACE ".InvalidArguments",