Skip to content

audio: make sound cards require the audiodev property

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9audio: Add easy dummy audio initialiseraudio/audio.c audio/audio.h+36 -01 reply
2/9Introduce machine property "audiodev"audio/audio.c hw/core/machine.c include/hw/boards.h+37 -20 replies
3/9vl: support -audio BACKEND without modelsoftmmu/vl.c+10 -50 replies
4/9hw/arm: Support machine-default audiodev with fallbackhw/arm/integratorcp.c hw/arm/musicpal.c hw/arm/nseries.c +9 more+89 -70 replies
5/9hw/ppc: Support machine-default audiodev with fallbackhw/ppc/prep.c+6 -00 replies
6/9vt82c686: Support machine-default audiodev with fallbackhw/isa/vt82c686.c hw/mips/fuloong2e.c hw/ppc/pegasos2.c +1 more+21 -53 replies
7/9vl: recognize audiodev groups in configuration filesdocs/config/q35-emulated.cfg docs/config/q35-virtio-graphical.cfg softmmu/vl.c+18 -00 replies
8/9audio: Make AUD_register_card fallible and require audiodev=audio/audio.c audio/audio.h hw/arm/omap2.c +14 more+59 -281 reply
9/9audio: Be more strict during audio backend initialisationaudio/audio.c docs/about/deprecated.rst docs/about/removed-features.rst+41 -1130 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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: <[email protected]>

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(-)
Signature · 1 line
2.41.0