audio: remove QEMU_AUDIO_* and -audio-help support
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Sep 2023 09:41:05 +0000 (11:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Oct 2023 08:29:39 +0000 (10:29 +0200)
commit69a802792ab3705074585a75f5645297ae9f6794
tree22fd1d903344922dcf16e4a372747d86f1e3c0b6
parente3299631720732ceb02cf3f10b175c5e6ffcad39
audio: remove QEMU_AUDIO_* and -audio-help support

These have been deprecated for a long time, and the introduction of
-audio in 7.1.0 has cemented the new way of specifying an audio backend's
parameters.  However, there is still a need for simple configuration
of the audio backend in the desktop case; therefore, if no audiodev is
passed to audio_init(), go through a bunch of simple Audiodev* structures
and pick the first that can be initialized successfully.

The only QEMU_AUDIO_* option that is left in, waiting for a better idea,
is QEMU_AUDIO_DRV=none which is used by qtest.

Remove all the parsing code, including the concept of "can_be_default"
audio drivers: now that audio_prio_list[] is only used in a single place,
wav can be excluded directly in that function.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
21 files changed:
audio/alsaaudio.c
audio/audio.c
audio/audio.h
audio/audio_int.h
audio/audio_legacy.c [deleted file]
audio/coreaudio.m
audio/dbusaudio.c
audio/dsoundaudio.c
audio/jackaudio.c
audio/meson.build
audio/noaudio.c
audio/ossaudio.c
audio/paaudio.c
audio/pwaudio.c
audio/sdlaudio.c
audio/sndioaudio.c
audio/wavaudio.c
docs/about/deprecated.rst
docs/about/removed-features.rst
qemu-options.hx
softmmu/vl.c