From nobody Sun Apr 12 02:50:43 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=1771878432; cv=none; d=zohomail.com; s=zohoarc; b=eHi+3/0ajXoEA85eDfgUhLbqdYNx4RnP3ixWUlaX5kqcVJwOUpOnKc09O8HfWSkj4hwfHIwDdwP/dfepAw3jhggl5uS4nSFwc78LrA6CzRL16tcFy00xEod+fWpbvYEqTL6IvDBWiLuwH+o8W8GHQlL7k9VV1lr+vpy6+57dPxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771878432; 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=hFepRe+ZWTO6AfdmQf/4gqWn3XAxk0Itxucc46LfZKU=; b=DAhFTZQcRZKXhmganR3/OwGkZsO8sRA3//p7IUT4uPVGmQSLcwG6iQRZwRnCmWQKzxuC/5KLBQ5dhSrK8T+BtqeXLH8lL6D1nijJRxziF0sCEn+St9Dju01WRcDFpd6VFPA1qYnd5ca0UQFwl3LbLnAYqLB6wgJc8iOWlkFSXiM= 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 1771878432196739.560628835131; Mon, 23 Feb 2026 12:27:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vucVA-0003fP-Sp; Mon, 23 Feb 2026 15:25:56 -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-0003AA-4J for qemu-devel@nongnu.org; Mon, 23 Feb 2026 15:25:38 -0500 Received: from forwardcorp1d.mail.yandex.net ([178.154.239.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vucUk-0002Oy-NN 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 forwardcorp1d.mail.yandex.net (Yandex) with ESMTPS id E5A1182F9E; Mon, 23 Feb 2026 23:25:25 +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-7a4poIKP; Mon, 23 Feb 2026 23:25:25 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.com; s=default; t=1771878325; bh=hFepRe+ZWTO6AfdmQf/4gqWn3XAxk0Itxucc46LfZKU=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=ZMUM1y1lqVf15JUFz13MElB5pOmqMCQicjC+8cZF44Q7T9Saao+hPk+/ggTcobL77 Yz2t5hNL+K1TiITmGq6mS7/QFoyaoS0uneRRaC95Tmfr/4e+D9jD2oGakpTxfB1zm3 xyurZ80oQvIElr/eJtti5HVNkKLPYi9yNEXOi2WM= 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 05/10] Kconfig: add AUDIO dependency to audio-related devices Date: Tue, 24 Feb 2026 01:25:07 +0500 Message-Id: <20260223202512.1308205-6-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=178.154.239.200; envelope-from=heifetz@yandex-team.com; helo=forwardcorp1d.mail.yandex.net X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 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_CERTIFIED_BLOCKED=1.179, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.717, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: 1771878432909158500 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 Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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