All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] add build option to disable audio subsystem
@ 2026-02-17  5:27 Sergei Heifetz
  2026-02-17  5:27 ` [PATCH 1/8] audio: add `audio` build option for meson and Kconfig Sergei Heifetz
                   ` (8 more replies)
  0 siblings, 9 replies; 32+ messages in thread
From: Sergei Heifetz @ 2026-02-17  5:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Alex Bennée, Eric Blake,
	Marc-André Lureau, Daniel P. Berrangé,
	Markus Armbruster, Fabiano Rosas, Paolo Bonzini, Thomas Huth,
	Gerd Hoffmann, Laurent Vivier

This patch series adds a compile-time option to disable building
audio-related sources (mostly, files under `audio/` and `hw/audio/`).
It adds `--disable-audio` and `--enable-audio` options to the
`configure` script. Audio remains enabled by default, and the changes are
harmless in that case.

When audio is disabled, it may not be possible to build a number of
devices and machines. This is expected, and can be addressed on a
case-by-case basis if needed.

This feature may be useful in production environments which only use a
specific subset of QEMU’s functionality and, in particular, do not need
the audio subsystem. In such environments it is generally beneficial to
avoid building unused code, for both security and maintenance reasons.

Sergei Heifetz (8):
  audio: add `audio` build option for meson and Kconfig
  ui/vnc: disable audio feature when configured with --disable-audio
  tests/qtest: remove -audio none when configured with --disable-audio
  hw/audio/pcspk: change PCSPK behaviour with --disable-audio
  Kconfig: add AUDIO dependency to audio-related devices
  system/vl: remove audio and audiodev options when audio is disabled
  audio: do not build audio-related sources with --disable-audio
  meson.build: ignore audio drivers when configured with --disable-audio

 Kconfig.host                |  3 ++
 audio/audio-hmp-cmds-stub.c | 28 +++++++++++++
 audio/audio-stub.c          | 35 ++++++++++++++++
 audio/meson.build           |  5 +++
 configure                   |  4 ++
 hw/audio/Kconfig            | 21 ++++++----
 hw/audio/pcspk.c            | 14 +++++++
 hw/usb/Kconfig              |  2 +-
 meson.build                 | 83 +++++++++++++++++++++----------------
 meson_options.txt           |  3 ++
 qapi/audio.json             |  3 +-
 replay/meson.build          |  9 +++-
 replay/replay-audio-stub.c  | 16 +++++++
 replay/stubs-system.c       |  6 ---
 system/vl.c                 |  6 +++
 tests/qtest/libqtest.c      |  2 +
 ui/vnc.c                    | 31 ++++++++++++--
 17 files changed, 215 insertions(+), 56 deletions(-)
 create mode 100644 audio/audio-hmp-cmds-stub.c
 create mode 100644 audio/audio-stub.c
 create mode 100644 replay/replay-audio-stub.c

-- 
2.34.1



^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2026-02-18 12:55 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17  5:27 [PATCH 0/8] add build option to disable audio subsystem Sergei Heifetz
2026-02-17  5:27 ` [PATCH 1/8] audio: add `audio` build option for meson and Kconfig Sergei Heifetz
2026-02-17  8:40   ` Thomas Huth
2026-02-18  7:30     ` Sergei Heifetz
2026-02-17  9:31   ` Peter Maydell
2026-02-17  9:42     ` Paolo Bonzini
2026-02-17 10:06       ` Peter Maydell
2026-02-17 10:14         ` Daniel P. Berrangé
2026-02-18  8:52           ` Sergei Heifetz
2026-02-18 10:50             ` Daniel P. Berrangé
2026-02-18 12:55               ` Vladimir Sementsov-Ogievskiy
2026-02-17 10:16         ` Paolo Bonzini
2026-02-17 10:05     ` Daniel P. Berrangé
2026-02-17  9:44   ` Paolo Bonzini
2026-02-18  7:26     ` Sergei Heifetz
2026-02-17  5:27 ` [PATCH 2/8] ui/vnc: disable audio feature when configured with --disable-audio Sergei Heifetz
2026-02-17  5:27 ` [PATCH 3/8] tests/qtest: remove -audio none " Sergei Heifetz
2026-02-17  9:19   ` Thomas Huth
2026-02-17  5:27 ` [PATCH 4/8] hw/audio/pcspk: change PCSPK behaviour " Sergei Heifetz
2026-02-17  9:14   ` Thomas Huth
2026-02-18  7:36     ` Sergei Heifetz
2026-02-17  9:56   ` Paolo Bonzini
2026-02-18  8:24     ` Sergei Heifetz
2026-02-17  5:27 ` [PATCH 5/8] Kconfig: add AUDIO dependency to audio-related devices Sergei Heifetz
2026-02-17  9:15   ` Thomas Huth
2026-02-17  5:27 ` [PATCH 6/8] system/vl: remove audio and audiodev options when audio is disabled Sergei Heifetz
2026-02-17  5:27 ` [PATCH 7/8] audio: do not build audio-related sources with --disable-audio Sergei Heifetz
2026-02-17  9:49   ` Paolo Bonzini
2026-02-18  9:08     ` Sergei Heifetz
2026-02-17  5:27 ` [PATCH 8/8] meson.build: ignore audio drivers when configured " Sergei Heifetz
2026-02-17  9:58 ` [PATCH 0/8] add build option to disable audio subsystem Marc-André Lureau
2026-02-17 12:16   ` Sergei Heifetz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.