From nobody Sun Apr 12 06:04:04 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=1771306164; cv=none; d=zohomail.com; s=zohoarc; b=WbphukIoWQmJjMso0MN9WGoJ0aeVjMYR1qlNbi+rwlGtYac000kcSBoN6RcDc6HCdbFMMwB3DMwbvHHJytCAFd6y6FsoQsoC00Rt0cRWO+AN5i9PtZScKW0nk4FBS3aoXCQ+KiC9LQmDTS25OkXkI6d7aL0BGdhHupjPYDHWP2I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771306164; 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=hpaly3QuMCqYCSPy1XIc8jC8cujtpc/PHUO3JbzcXqo=; b=QrvW6rjd3i77pcOdBW6387OFrWoZRdb0F1RLMUTHmPxrhHYKpDZ8mMSq2+Wcbi3EY5DltphUNf8iJ6TaM3WoKm4tBit2pBXSB5VMOX3aGizRt81QSkhnEBQKa3NlDDzlxbc07dwfBlvDjM2L4WMQJHOHQZYWKYAVVJZQTwC0aco= 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 1771306164678554.0237549908632; Mon, 16 Feb 2026 21:29:24 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsDcs-0002cc-68; Tue, 17 Feb 2026 00:27:58 -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 1vsDcm-0002ad-Pr for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:27:52 -0500 Received: from forwardcorp1b.mail.yandex.net ([178.154.239.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsDcj-0006cW-17 for qemu-devel@nongnu.org; Tue, 17 Feb 2026 00:27:52 -0500 Received: from mail-nwsmtp-smtp-corp-canary-81.sas.yp-c.yandex.net (mail-nwsmtp-smtp-corp-canary-81.sas.yp-c.yandex.net [IPv6:2a02:6b8:c37:8aa5:0:640:e6ae:0]) by forwardcorp1b.mail.yandex.net (Yandex) with ESMTPS id AD5D788516; Tue, 17 Feb 2026 08:27:47 +0300 (MSK) Received: from heifetz-lin.yandex-team.ru (unknown [2a02:6bf:8080:b54::1:2f]) by mail-nwsmtp-smtp-corp-canary-81.sas.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id eRRjrX2Ak0U0-a7MO7L5T; Tue, 17 Feb 2026 08:27:47 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.com; s=default; t=1771306067; bh=hpaly3QuMCqYCSPy1XIc8jC8cujtpc/PHUO3JbzcXqo=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=fTjumWIlCOLbSUWS8ivAgqBn/UL45OoyWpVmiFBfwbUvjrKJ/t7mHeobo0uLA+qyz gHyc7K0yvi7dhVcRCBL1uzHhp2ufQ/L9ODdnT4wg81l0nhY16KqB5uvEXPWoJqYWJO 2VN8uflETZ3Cq7S9LuVLSA61DGj/Ftpk9aYlD+bA= Authentication-Results: mail-nwsmtp-smtp-corp-canary-81.sas.yp-c.yandex.net; dkim=pass header.i=@yandex-team.com From: Sergei Heifetz To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Eric Blake , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Markus Armbruster , Fabiano Rosas , Paolo Bonzini , Thomas Huth , Gerd Hoffmann , Laurent Vivier Subject: [PATCH 5/8] Kconfig: add AUDIO dependency to audio-related devices Date: Tue, 17 Feb 2026 10:27:37 +0500 Message-Id: <20260217052740.114117-6-heifetz@yandex-team.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260217052740.114117-1-heifetz@yandex-team.com> References: <20260217052740.114117-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=178.154.239.136; 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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: 1771306167316154100 Content-Type: text/plain; charset="utf-8" The idea of the `--disable-audio` option is to stop building audio-related source files. Although this is not yet implemented, we can already make the existing AUDIO Kconfig option a dependency for a number of devices so that the build does not break when we remove `audio/` and other sources. Note that some machines have embedded audio devices and therefore cannot be used with `--disable-audio` at all. `-audio none` should be used for such machines if audio needs to be muted. The only device that is purposefully not included in this patch is PCSPK (PC speaker), because its code has already been modified to work with `--disable-audio`. Signed-off-by: Sergei Heifetz Reviewed-by: Thomas Huth --- hw/audio/Kconfig | 21 ++++++++++++--------- hw/usb/Kconfig | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/hw/audio/Kconfig b/hw/audio/Kconfig index daf060e1be..0479818e3f 100644 --- a/hw/audio/Kconfig +++ b/hw/audio/Kconfig @@ -1,37 +1,37 @@ config SB16 bool default y - depends on ISA_BUS + depends on ISA_BUS && AUDIO =20 config ES1370 bool default y if PCI_DEVICES - depends on PCI + depends on PCI && AUDIO =20 config AC97 bool default y if PCI_DEVICES - depends on PCI + depends on PCI && AUDIO =20 config ADLIB bool default y - depends on ISA_BUS + depends on ISA_BUS && AUDIO =20 config GUS bool default y - depends on ISA_BUS + depends on ISA_BUS && AUDIO =20 config CS4231A bool default y - depends on ISA_BUS + depends on ISA_BUS && AUDIO =20 config HDA bool default y if PCI_DEVICES - depends on PCI + depends on PCI && AUDIO =20 config PCSPK bool @@ -40,18 +40,21 @@ config PCSPK =20 config WM8750 bool - depends on I2C + depends on I2C && AUDIO =20 config PL041 bool + depends on AUDIO =20 config CS4231 bool + depends on AUDIO =20 config ASC bool + depends on AUDIO =20 config VIRTIO_SND bool default y - depends on VIRTIO + depends on VIRTIO && AUDIO diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig index de95686720..e370585892 100644 --- a/hw/usb/Kconfig +++ b/hw/usb/Kconfig @@ -98,7 +98,7 @@ config USB_STORAGE_UAS config USB_AUDIO bool default y - depends on USB + depends on USB && AUDIO =20 config USB_SERIAL bool --=20 2.34.1