From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: balaton@eik.bme.hu, berrange@redhat.com
Subject: [PATCH 0/7] audio: redo default audio backend creation
Date: Thu, 5 Oct 2023 14:58:08 +0200 [thread overview]
Message-ID: <20231005125815.66082-1-pbonzini@redhat.com> (raw)
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(-)
--
2.41.0
next reply other threads:[~2023-10-05 12:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 12:58 Paolo Bonzini [this message]
2023-10-05 12:58 ` [PATCH 1/7] audio: error hints need a trailing \n Paolo Bonzini
2023-10-05 12:58 ` [PATCH 2/7] audio: disable default backends if -audio/-audiodev is used Paolo Bonzini
2023-10-05 12:58 ` [PATCH 3/7] audio: extract audio_define_default Paolo Bonzini
2023-10-05 12:58 ` [PATCH 4/7] audio: extend -audio to allow creating a default backend Paolo Bonzini
2023-10-05 12:58 ` [PATCH 5/7] audio: do not use first -audiodev as default audio device Paolo Bonzini
2023-10-05 13:33 ` BALATON Zoltan
2023-10-05 13:38 ` BALATON Zoltan
2023-10-05 15:09 ` Paolo Bonzini
2023-10-05 15:40 ` BALATON Zoltan
2023-10-05 16:41 ` Paolo Bonzini
2023-10-05 18:20 ` BALATON Zoltan
2023-10-05 12:58 ` [PATCH 6/7] audio: reintroduce default audio backend for VNC Paolo Bonzini
2023-10-05 12:58 ` [PATCH 7/7] audio, qtest: get rid of QEMU_AUDIO_DRV Paolo Bonzini
2023-10-09 10:46 ` [PATCH 0/7] audio: redo default audio backend creation Marc-André Lureau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231005125815.66082-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=balaton@eik.bme.hu \
--cc=berrange@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).