From nobody Sun Apr 12 04:36:32 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=yandex-team.com ARC-Seal: i=1; a=rsa-sha256; t=1771878417; cv=none; d=zohomail.com; s=zohoarc; b=hc9bGpSZ+nTHP4fmYcsyiSfGQDk5ysFOeX9CLHsZ5KdlCeOHhs18gUkLWIwa89SNSxWuknyAwbJl7oZFSDADiTmUO6Ti/oYm/MOjhXx/By1zT1iIMi/OT8bTyumpjShNUWOv5wo58NLV4SoOuMK9OeaAzXuH6rDGeDQCTymiIFg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771878417; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9ceJPNF+GibX+1lEopP1Na2t0yPChyucOxlsimiIu5s=; b=LOviuxU8b+hRq2KtjHfOQ3kCurHIvb9fXtlmAswTLbPGdH5JGxIY6GNJI5q9uYpwO6KQebpF6l1Sp6/6Nze9ejVdficqwlBiRWLpxMYDnGdVlakNZMYgyv6ijLTFFOqAH4QsL0O5y0JP9fQaC+iAh7sLQoVEG1ILOzoX4R6TUfQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771878417970122.16513928191728; Mon, 23 Feb 2026 12:26:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vucV7-0003Tu-6p; Mon, 23 Feb 2026 15:25:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vucUp-0003A7-3f for qemu-devel@nongnu.org; Mon, 23 Feb 2026 15:25:37 -0500 Received: from forwardcorp1b.mail.yandex.net ([2a02:6b8:c02:900:1:45:d181:df01]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vucUk-0002PB-NM for qemu-devel@nongnu.org; Mon, 23 Feb 2026 15:25:32 -0500 Received: from mail-nwsmtp-smtp-corp-main-66.iva.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-66.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:bf1f:0:640:c739:0]) by forwardcorp1b.mail.yandex.net (Yandex) with ESMTPS id 9E9A98E415; Mon, 23 Feb 2026 23:25:27 +0300 (MSK) Received: from heifetz-lin.yandex-team.ru (unknown [2a02:6bf:8080:12d::1:2c]) by mail-nwsmtp-smtp-corp-main-66.iva.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id CPmvPN6Ap8c0-EWLOsRXS; Mon, 23 Feb 2026 23:25:27 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.com; s=default; t=1771878327; bh=9ceJPNF+GibX+1lEopP1Na2t0yPChyucOxlsimiIu5s=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=jQytX73/oQ+PfgV9hyiPOrekaUXQpZmBYml9wpoTagxTmp6j50oDupdJrr55CmyqP vJBevK475SHWdbKumJnU5aYghce7l5wspqBTh2cbNMEDbUx4NSNpXYhrbYnKifGJaQ /BU7yNLdKZvHpIDtr30ZK7neLvnLUY4msxRsTsZs= Authentication-Results: mail-nwsmtp-smtp-corp-main-66.iva.yp-c.yandex.net; dkim=pass header.i=@yandex-team.com From: Sergei Heifetz To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Marcel Apfelbaum , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Fabiano Rosas , Laurent Vivier , Thomas Huth , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eric Blake , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , "Michael S. Tsirkin" , Markus Armbruster , "Dr. David Alan Gilbert" Subject: [PATCH v2 06/10] system/vl: remove audio and audiodev options when audio is disabled Date: Tue, 24 Feb 2026 01:25:08 +0500 Message-Id: <20260223202512.1308205-7-heifetz@yandex-team.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260223202512.1308205-1-heifetz@yandex-team.com> References: <20260223202512.1308205-1-heifetz@yandex-team.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a02:6b8:c02:900:1:45:d181:df01; envelope-from=heifetz@yandex-team.com; helo=forwardcorp1b.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @yandex-team.com) X-ZM-MESSAGEID: 1771878418925158500 Content-Type: text/plain; charset="utf-8" Remove the audio and audiodev runtime options when QEMU is configured with `--disable-audio`. Signed-off-by: Sergei Heifetz --- system/vl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/vl.c b/system/vl.c index 3e341142a0..1034a4688f 100644 --- a/system/vl.c +++ b/system/vl.c @@ -2248,7 +2248,9 @@ static int global_init_func(void *opaque, QemuOpts *o= pts, Error **errp) static bool is_qemuopts_group(const char *group) { if (g_str_equal(group, "object") || +#ifdef CONFIG_AUDIO g_str_equal(group, "audiodev") || +#endif g_str_equal(group, "machine") || g_str_equal(group, "smp-opts") || g_str_equal(group, "boot-opts")) { @@ -2265,6 +2267,7 @@ static void qemu_record_config_group(const char *grou= p, QDict *dict, object_option_add_visitor(v); visit_free(v); =20 +#ifdef CONFIG_AUDIO } else if (g_str_equal(group, "audiodev")) { Audiodev *dev =3D NULL; Visitor *v =3D qobject_input_visitor_new_keyval(QOBJECT(dict)); @@ -2272,6 +2275,7 @@ static void qemu_record_config_group(const char *grou= p, QDict *dict, audio_add_audiodev(dev); } visit_free(v); +#endif =20 } else if (g_str_equal(group, "machine")) { /* @@ -3057,6 +3061,7 @@ void qemu_init(int argc, char **argv) } break; #endif +#ifdef CONFIG_AUDIO case QEMU_OPTION_audiodev: default_audio =3D 0; audio_parse_option(optarg); @@ -3097,6 +3102,7 @@ void qemu_init(int argc, char **argv) } break; } +#endif case QEMU_OPTION_h: help(0); break; --=20 2.34.1