[PATCH 0/9] audio: make sound cards require the audiodev property

Paolo Bonzini posted 9 patches 7 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230922094459.265509-1-pbonzini@redhat.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Jan Kiszka <jan.kiszka@web.de>, Alistair Francis <alistair@alistair23.me>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Huacai Chen <chenhuacai@kernel.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, BALATON Zoltan <balaton@eik.bme.hu>, "Hervé Poussineau" <hpoussin@reactos.org>, Paolo Bonzini <pbonzini@redhat.com>
audio/audio.c                        | 177 +++++++++++----------------
audio/audio.h                        |   4 +-
docs/about/deprecated.rst            |   6 -
docs/about/removed-features.rst      |  11 +-
docs/config/q35-emulated.cfg         |   4 +
docs/config/q35-virtio-graphical.cfg |   4 +
hw/arm/integratorcp.c                |  10 +-
hw/arm/musicpal.c                    |  11 +-
hw/arm/nseries.c                     |   4 +
hw/arm/omap2.c                       |  10 +-
hw/arm/palm.c                        |   2 +
hw/arm/realview.c                    |  11 ++
hw/arm/spitz.c                       |  12 +-
hw/arm/versatilepb.c                 |   7 ++
hw/arm/vexpress.c                    |   4 +
hw/arm/xlnx-zcu102.c                 |   5 +
hw/arm/z2.c                          |  14 ++-
hw/audio/ac97.c                      |   6 +-
hw/audio/adlib.c                     |   6 +-
hw/audio/cs4231a.c                   |   6 +-
hw/audio/es1370.c                    |   5 +-
hw/audio/gus.c                       |   6 +-
hw/audio/hda-codec.c                 |   5 +-
hw/audio/lm4549.c                    |   8 +-
hw/audio/pcspk.c                     |   4 +-
hw/audio/sb16.c                      |   6 +-
hw/audio/via-ac97.c                  |   6 +-
hw/audio/wm8750.c                    |   5 +-
hw/core/machine.c                    |  28 +++++
hw/display/xlnx_dp.c                 |   6 +-
hw/input/tsc210x.c                   |  10 +-
hw/isa/vt82c686.c                    |   2 +
hw/mips/fuloong2e.c                  |  12 +-
hw/ppc/pegasos2.c                    |  10 +-
hw/ppc/prep.c                        |   6 +
hw/ppc/sam460ex.c                    |   2 +
hw/usb/dev-audio.c                   |   5 +-
include/hw/boards.h                  |   7 ++
softmmu/vl.c                         |  25 +++-
39 files changed, 315 insertions(+), 157 deletions(-)
[PATCH 0/9] audio: make sound cards require the audiodev property
Posted by Paolo Bonzini 7 months, 1 week ago
This is the remaining part of Martin's patches to remove the deprecations
connected to audio backend configuration.  With these patches, all sound
cards have to be configured with an audio backend; only embedded cards
get the luxury of a default backend that emits or records no audio at all.
Fortunately, this is easy to do with the existing "-audio" option.

Apart from some rebasing changes, the changes are:

- the "-M" option for the embedded audiodev is only added to machines
  that need it, and renamed from "default-audiodev" to just "audiodev".

- the embedded audiodev is also accessible by specifying "-audio DRIVER"
  without a model

- the audiodev option is also configurable with -readconfig

- MIPS fuloong2e and PPC pegasos2 need changes in order to expose
  the embedded audiodev, too

Paolo

Based-on: <20230922093126.264016-1-pbonzini@redhat.com>

Martin Kletzander (6):
  audio: Add easy dummy audio initialiser
  Introduce machine property "audiodev"
  hw/arm: Support machine-default audiodev with fallback
  hw/ppc: Support machine-default audiodev with fallback
  audio: Make AUD_register_card fallible and require audiodev=
  audio: Be more strict during audio backend initialisation

Paolo Bonzini (3):
  vl: support -audio BACKEND without model
  vt82c686: Support machine-default audiodev with fallback
  vl: recognize audiodev groups in configuration files

 audio/audio.c                        | 177 +++++++++++----------------
 audio/audio.h                        |   4 +-
 docs/about/deprecated.rst            |   6 -
 docs/about/removed-features.rst      |  11 +-
 docs/config/q35-emulated.cfg         |   4 +
 docs/config/q35-virtio-graphical.cfg |   4 +
 hw/arm/integratorcp.c                |  10 +-
 hw/arm/musicpal.c                    |  11 +-
 hw/arm/nseries.c                     |   4 +
 hw/arm/omap2.c                       |  10 +-
 hw/arm/palm.c                        |   2 +
 hw/arm/realview.c                    |  11 ++
 hw/arm/spitz.c                       |  12 +-
 hw/arm/versatilepb.c                 |   7 ++
 hw/arm/vexpress.c                    |   4 +
 hw/arm/xlnx-zcu102.c                 |   5 +
 hw/arm/z2.c                          |  14 ++-
 hw/audio/ac97.c                      |   6 +-
 hw/audio/adlib.c                     |   6 +-
 hw/audio/cs4231a.c                   |   6 +-
 hw/audio/es1370.c                    |   5 +-
 hw/audio/gus.c                       |   6 +-
 hw/audio/hda-codec.c                 |   5 +-
 hw/audio/lm4549.c                    |   8 +-
 hw/audio/pcspk.c                     |   4 +-
 hw/audio/sb16.c                      |   6 +-
 hw/audio/via-ac97.c                  |   6 +-
 hw/audio/wm8750.c                    |   5 +-
 hw/core/machine.c                    |  28 +++++
 hw/display/xlnx_dp.c                 |   6 +-
 hw/input/tsc210x.c                   |  10 +-
 hw/isa/vt82c686.c                    |   2 +
 hw/mips/fuloong2e.c                  |  12 +-
 hw/ppc/pegasos2.c                    |  10 +-
 hw/ppc/prep.c                        |   6 +
 hw/ppc/sam460ex.c                    |   2 +
 hw/usb/dev-audio.c                   |   5 +-
 include/hw/boards.h                  |   7 ++
 softmmu/vl.c                         |  25 +++-
 39 files changed, 315 insertions(+), 157 deletions(-)

-- 
2.41.0