Skip to content

audio: redo default audio backend creation

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7audio: error hints need a trailing \naudio/audio.c+1 -10 replies
2/7audio: disable default backends if -audio/-audiodev is usedaudio/audio.c audio/audio.h docs/about/removed-features.rst +1 more+13 -80 replies
3/7audio: extract audio_define_defaultaudio/audio.c audio/audio.h+13 -70 replies
4/7audio: extend -audio to allow creating a default backendqemu-options.hx system/vl.c+36 -200 replies
5/7audio: do not use first -audiodev as default audio deviceaudio/audio.c docs/about/deprecated.rst docs/about/removed-features.rst+15 -246 replies
6/7audio: reintroduce default audio backend for VNCaudio/audio.c audio/audio.h docs/about/removed-features.rst +1 more+23 -180 replies
7/7audio, qtest: get rid of QEMU_AUDIO_DRVaudio/audio.c tests/qtest/libqtest.c+1 -150 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc-André Lureau
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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/7] audio: redo default audio backend creation

Currently, AUD_register_card picks the audio backend from either:

- the first audiodev that was created

- the audio_prio_list[] array, which can be customized at configure time

This series instead extends -audio to define a default audio backend if no "model" is used. This preserves simple command line use where a single "-audio" option applies to all audio devices and captures, and also uses a single QAPI-based configuration syntax for both -audio and -audiodev.

The current hack to use the first -audiodev as a default audio device is removed. For migration purposes, the first audiodev is suggested in case of an error:

./qemu-system-x86_64 -device sb16 -audiodev pa,id=default
qemu-system-x86_64: -device sb16: no default audio driver available Perhaps you wanted to set audiodev=default?

VNC is changed to reintroduce use of the default audio backend; still, compared to before the cleanup effort this will not be enabled if -nodefaults is use, which is an improvement as it removes magic.

Paolo

Paolo Bonzini (7):
audio: error hints need a trailing \n
audio: disable default backends if -audio/-audiodev is used
audio: extract audio_define_default
audio: extend -audio to allow creating a default backend
audio: do not use first -audiodev as default audio device
audio: reintroduce default audio backend for VNC audio, qtest: get rid of QEMU_AUDIO_DRV

 audio/audio.c                   | 85 +++++++++++++--------------------
 audio/audio.h                   |  3 ++
 docs/about/deprecated.rst       |  6 ---
 docs/about/removed-features.rst | 14 ++++--
 qemu-options.hx                 | 29 +++++++----
 system/vl.c                     | 34 ++++++++-----
 tests/qtest/libqtest.c          |  4 +-
 ui/vnc.c                        |  2 +
 8 files changed, 93 insertions(+), 84 deletions(-)
Signature · 1 line
2.41.0