audio/transport: Disable set_volume functionality in DA product 01/312101/2 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240605.155451
authorWootak Jung <wootak.jung@samsung.com>
Tue, 4 Jun 2024 07:36:12 +0000 (16:36 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 5 Jun 2024 04:49:10 +0000 (13:49 +0900)
Change-Id: Ibca427f5f6824878c0a615f6792a90139b59993a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
profiles/audio/transport.c

index 2b05236..d47f5f3 100644 (file)
@@ -690,6 +690,13 @@ static void set_volume(const GDBusPropertyTable *property,
        int8_t volume;
        bool notify;
 
+       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)
                goto error;