audio: cleanups & add a manual test
Get series with b4
b4 am [email protected] change-id 20260216-audio-89652d2709f1Versions newest first
- v1 Latest posting 2/285 patches 4 repliesIn review
- v1 posting 1/212 of 85 patches 0 repliesSuperseded
Patches in v1 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/85 | audio: remove obsolete/obscure functionsaudio/ hw/ include/ +1 more | +1 | 0 replies | |
| 2/85 | adlib: remove dead codehw/ | +0 | 0 replies | |
| 3/85 | audio/adlib: drop ts_helper HWVoice fieldaudio/ audio/ | +0 | 0 replies | |
| 4/85 | audio/dbus: make "dbus" the default backend when using -display dbusaudio/ audio/ ui/ | +27 | 0 replies | |
| 5/85 | qemu-options.hx: clarify default audio backend selectionqemu-options.hx | +18 | 0 replies | |
| 6/85 | qemu-options.hx: document -audiodev dbusqemu-options.hx | +10 | 0 replies | |
| 7/85 | audio: replace vm_running with runstate_is_running()audio/ audio/ | +2 | 0 replies | |
| 8/85 | audio: list backends as modulesaudio/ | +2 | 0 replies | |
| 9/85 | build-sys: create a libaudioaudio/ meson.build | +11 | 0 replies | |
| 10/85 | scripts/modinfo: add type annotationsscripts/ | +8 | 0 replies | |
| 11/85 | scripts/modinfo: remove trailing ;scripts/ | +1 | 0 replies | |
| 12/85 | scripts/modinfo: use in instead of find()scripts/ | +1 | 0 replies | |
| 13/85 | scripts/modinfo: use f-stringsscripts/ | +6 | 0 replies | |
| 14/85 | scripts/modinfo: use argparsescripts/ | +14 | 0 replies | |
| 15/85 | scripts/modinfo: make --devices optionalscripts/ | +7 | 0 replies | |
| 16/85 | scripts/modinfo: add --skip-missing-depsscripts/ | +71 | 0 replies | |
| 17/85 | util: add some extra stubs for qemu modules initializationsystem/ util/ | +3 | 0 replies | |
| 18/85 | tests: start manual audio backend testMAINTAINERS audio/ meson.build +5 more | +702 | 0 replies | |
| 19/85 | audio: constify audsettings argumentaudio/ audio/ audio/ +1 more | +10 | 0 replies | |
| 20/85 | audio: introduce AudioMixengBackendaudio/ audio/ audio/ +6 more | +143 | 0 replies | |
| 21/85 | audio: use DEFINE_TYPESaudio/ | +20 | 0 replies | |
| 22/85 | audio: simplify audio_init()audio/ | +29 | 0 replies | |
| 23/85 | audio: move object creation to audio_driver_init()audio/ | +34 | 0 replies | |
| 24/85 | audio: add QOM module-objects for each backendaudio/ audio/ audio/ +11 more | +341 | 0 replies | |
| 25/85 | audio: remove set_dbus_server from audio_driveraudio/ audio/ audio/ | +12 | 0 replies | |
| 26/85 | audio: lookup "audio-" object types, and realize themaudio/ include/ | +27 | 0 replies | |
| 27/85 | audio: drop audio driver registrationaudio/ audio/ audio/ +12 more | +13 | 0 replies | |
| 28/85 | module: remove audio module supportinclude/ | +1 | 0 replies | |
| 29/85 | audio: replace type_init() with DEFINE_TYPESaudio/ audio/ audio/ +10 more | +106 | 0 replies | |
| 30/85 | audio: keep a strong reference on the backendaudio/ | +7 | 0 replies | |
| 31/85 | audio: make list type declaration privateaudio/ audio/ | +7 | 0 replies | |
| 32/85 | audio: make create_pdos() privateaudio/ audio/ | +1 | 0 replies | |
| 33/85 | replay: remove dependency on audio/audio/ audio/ include/ +6 more | +85 | 0 replies | |
| 34/85 | audio: make all the backend-specific APIs take the beaudio/ audio/ audio/ +19 more | +192 | 0 replies | |
| 35/85 | audio: make AudioBackend truly abstractaudio/ audio/ include/ +1 more | +227 | 0 replies | |
| 36/85 | audio: split AudioBackendaudio/ audio/ audio/ +1 more | +211 | 0 replies | |
| 37/85 | audio: AUD_ -> audio_be_audio/ audio/ audio/ +19 more | +278 | 0 replies | |
| 38/85 | audio-be: add common pre-conditionsaudio/ tests/ | +64 | 0 replies | |
| 39/85 | audio-be: add some state trace for debuggingaudio/ audio/ | +9 | 0 replies | |
| 40/85 | audio: split AudioMixengBackend code in audio-mixeng-be.caudio/ audio/ audio/ +3 more | +2158 | 0 replies | |
| 41/85 | audio: make audio_driver init() & fini() optionalaudio/ | +8 | 0 replies | |
| 42/85 | audio/dbus: convert to QOM lifecycle methodsaudio/ | +39 | 3 replies | |
| 43/85 | audio/spice: convert to QOM lifecycle methodsaudio/ | +17 | 0 replies | |
| 44/85 | audio/wav: convert to QOM lifecycle methodsaudio/ | +1 | 0 replies | |
| 45/85 | audio/noaudio: convert to QOM lifecycle methodsaudio/ | +0 | 0 replies | |
| 46/85 | audio/alsa: convert to QOM lifecycle methodsaudio/ | +20 | 0 replies | |
| 47/85 | audio/oss: convert to QOM lifecycle methodsaudio/ | +23 | 0 replies | |
| 48/85 | audio/pa: convert to QOM lifecycle methodsaudio/ | +57 | 0 replies | |
| 49/85 | audio/sdl: convert to QOM lifecycle methodsaudio/ | +23 | 0 replies | |
| 50/85 | audio/pw: convert to QOM lifecycle methodsaudio/ | +58 | 0 replies | |
| 51/85 | audio/jack: convert to QOM lifecycle methodsaudio/ | +9 | 0 replies | |
| 52/85 | audio/sndio: convert to QOM lifecycle methodsaudio/ | +2 | 0 replies | |
| 53/85 | audio/coreaudio: convert to QOM lifecycle methodsaudio/ | +1 | 0 replies | |
| 54/85 | audio/dsound: convert to QOM lifecycle methodsaudio/ audio/ | +45 | 0 replies | |
| 55/85 | audio: remove audio_driver init/fini/nextaudio/ audio/ audio/ +13 more | +28 | 0 replies | |
| 56/85 | audio: remove audio_driveraudio/ audio/ audio/ +13 more | +149 | 0 replies | |
| 57/85 | audio: move pcm_ops into AudioMixengBackendClassaudio/ audio/ audio/ +13 more | +308 | 0 replies | |
| 58/85 | audio: constify some add_capture() argumentsaudio/ audio/ include/ +1 more | +11 | 0 replies | |
| 59/85 | audio/alsa: replace custom logging with error_report and trace eventsaudio/ audio/ | +72 | 0 replies | |
| 60/85 | audio/coreaudio: replace custom logging with error_reportaudio/ | +60 | 0 replies | |
| 61/85 | audio/dbus: remove unused AUDIO_CAP macroaudio/ | +0 | 0 replies | |
| 62/85 | audio/dsound: replace custom logging with error_report & traceaudio/ audio/ audio/ +1 more | +108 | 0 replies | |
| 63/85 | audio/jack: replace custom logging with report & traceaudio/ audio/ | +22 | 0 replies | |
| 64/85 | audio/noaudio: remove unused AUDIO_CAP macroaudio/ | +0 | 0 replies | |
| 65/85 | audio/oss: replace custom logging with report & traceaudio/ audio/ | +81 | 0 replies | |
| 66/85 | audio/pa: replace custom logging with report & traceaudio/ | +38 | 0 replies | |
| 67/85 | audio/pw: replace custom logging with error_reportaudio/ | +5 | 0 replies | |
| 68/85 | audio/sdl: replace custom logging with error_reportaudio/ | +9 | 0 replies | |
| 69/85 | audio/sndio: replace custom logging with error_reportaudio/ | +10 | 0 replies | |
| 70/85 | audio/spice: remove unused AUDIO_CAP macroaudio/ | +0 | 0 replies | |
| 71/85 | audio/wav: replace custom logging with error_reportaudio/ | +13 | 0 replies | |
| 72/85 | audio/mixeng: replace redundant pcm_info fields with AudioFormataudio/ audio/ audio/ +3 more | +126 | 0 replies | |
| 73/85 | audio: replace int endianness with bool big_endian in audsettingsaudio/ audio/ audio/ +25 more | +90 | 0 replies | |
| 74/85 | audio: replace ldebug with trace eventsaudio/ audio/ audio/ | +13 | 0 replies | |
| 75/85 | audio: rework DEBUG_POLLaudio/ audio/ audio/ +1 more | +12 | 0 replies | |
| 76/85 | audio: replace DEBUG_CAPTURE with tracesaudio/ audio/ | +10 | 0 replies | |
| 77/85 | audio: replace DEBUG_OUT with tracesaudio/ audio/ | +13 | 0 replies | |
| 78/85 | audio: replace DEBUG_AUDIO with traceaudio/ audio/ audio/ | +6 | 0 replies | |
| 79/85 | tests/audio: add an invalid settings testtests/ | +21 | 0 replies | |
| 80/85 | audio: rework invalid audsettings erroraudio/ audio/ | +10 | 0 replies | |
| 81/85 | audio: rework audio_bug()audio/ audio/ audio/ | +46 | 0 replies | |
| 82/85 | audio: replace remaining dolog() and AUD_logaudio/ audio/ audio/ | +15 | 0 replies | |
| 83/85 | audio: remove AUD_log/ldebugaudio/ audio/ audio/ +1 more | +1 | 0 replies | |
| 84/85 | audio: remove AudioMixengBackendClass.nameaudio/ audio/ audio/ +12 more | +8 | 0 replies | |
| 85/85 | audio: fix leak of audio capture nameaudio/ | +2 | 0 replies |
Reviews trailers per patch
78 of 85 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 00/85] audio: cleanups & add a manual test
Hi
This is the combination of the two earlier series:
[PATCH 00/37] audio: cleanups & add a manual test [PATCH 00/43] audio: more cleanups (2/2 for 11.0)
Patches missing r-b trailers:
- scripts/modinfo: use argparse
- scripts/modinfo: make --devices optional
- scripts/modinfo: add --skip-missing-deps
- util: add some extra stubs for qemu modules initialization
- tests: start manual audio backend test
- audio: use DEFINE_TYPES
- audio: replace type_init() with DEFINE_TYPES
- audio: keep a strong reference on the backend
- replay: remove dependency on audio/
- audio: fix leak of audio capture name
---
Marc-André Lureau (85):
audio: remove obsolete/obscure functions
adlib: remove dead code
audio/adlib: drop ts_helper HWVoice field
audio/dbus: make "dbus" the default backend when using -display dbus qemu-options.hx: clarify default audio backend selection qemu-options.hx: document -audiodev dbus
audio: replace vm_running with runstate_is_running()
audio: list backends as modules
build-sys: create a libaudio
scripts/modinfo: add type annotations
scripts/modinfo: remove trailing ;
scripts/modinfo: use in instead of find() scripts/modinfo: use f-strings
scripts/modinfo: use argparse
scripts/modinfo: make --devices optional
scripts/modinfo: add --skip-missing-deps
util: add some extra stubs for qemu modules initialization
tests: start manual audio backend test
audio: constify audsettings argument
audio: introduce AudioMixengBackend
audio: use DEFINE_TYPES
audio: simplify audio_init()
audio: move object creation to audio_driver_init()
audio: add QOM module-objects for each backend
audio: remove set_dbus_server from audio_driver
audio: lookup "audio-" object types, and realize them
audio: drop audio driver registration
module: remove audio module support
audio: replace type_init() with DEFINE_TYPES
audio: keep a strong reference on the backend
audio: make list type declaration private
audio: make create_pdos() private
replay: remove dependency on audio/
audio: make all the backend-specific APIs take the be
audio: make AudioBackend truly abstract
audio: split AudioBackend
audio: AUD_ -> audio_be_
audio-be: add common pre-conditions
audio-be: add some state trace for debugging
audio: split AudioMixengBackend code in audio-mixeng-be.c
audio: make audio_driver init() & fini() optional audio/dbus: convert to QOM lifecycle methods
audio/spice: convert to QOM lifecycle methods
audio/wav: convert to QOM lifecycle methods audio/noaudio: convert to QOM lifecycle methods audio/alsa: convert to QOM lifecycle methods
audio/oss: convert to QOM lifecycle methods
audio/pa: convert to QOM lifecycle methods
audio/sdl: convert to QOM lifecycle methods
audio/pw: convert to QOM lifecycle methods
audio/jack: convert to QOM lifecycle methods
audio/sndio: convert to QOM lifecycle methods audio/coreaudio: convert to QOM lifecycle methods audio/dsound: convert to QOM lifecycle methods
audio: remove audio_driver init/fini/next
audio: remove audio_driver
audio: move pcm_ops into AudioMixengBackendClass
audio: constify some add_capture() arguments
audio/alsa: replace custom logging with error_report and trace events audio/coreaudio: replace custom logging with error_report audio/dbus: remove unused AUDIO_CAP macro
audio/dsound: replace custom logging with error_report & trace audio/jack: replace custom logging with report & trace audio/noaudio: remove unused AUDIO_CAP macro
audio/oss: replace custom logging with report & trace audio/pa: replace custom logging with report & trace audio/pw: replace custom logging with error_report audio/sdl: replace custom logging with error_report audio/sndio: replace custom logging with error_report audio/spice: remove unused AUDIO_CAP macro
audio/wav: replace custom logging with error_report audio/mixeng: replace redundant pcm_info fields with AudioFormat
audio: replace int endianness with bool big_endian in audsettings
audio: replace ldebug with trace events
audio: rework DEBUG_POLL
audio: replace DEBUG_CAPTURE with traces
audio: replace DEBUG_OUT with traces
audio: replace DEBUG_AUDIO with trace
tests/audio: add an invalid settings test
audio: rework invalid audsettings error
audio: rework audio_bug()
audio: replace remaining dolog() and AUD_log
audio: remove AUD_log/ldebug
audio: remove AudioMixengBackendClass.name
audio: fix leak of audio capture name
MAINTAINERS | 1 + meson.build | 27 +- audio/audio_int.h | 168 +- audio/audio_template.h | 212 +- audio/dsound_template.h | 89 +- include/qemu/audio-capture.h | 28 +- include/qemu/audio.h | 183 +- include/qemu/module.h | 3 +- include/qemu/timer.h | 1 + include/system/replay.h | 11 +- replay/replay-internal.h | 2 + audio/alsaaudio.c | 273 ++- audio/audio-be.c | 274 +++ audio/audio-mixeng-be.c | 1770 +++++++++++++++ audio/audio.c | 2246 ++------------------ audio/audio_win_int.c | 31 +- audio/dbusaudio.c | 168 +- audio/dsoundaudio.c | 265 ++- audio/jackaudio.c | 127 +- audio/mixeng.c | 1 - audio/noaudio.c | 78 +- audio/ossaudio.c | 300 ++- audio/paaudio.c | 261 +-- audio/pwaudio.c | 214 +- audio/sdlaudio.c | 176 +- audio/sndioaudio.c | 108 +- audio/spiceaudio.c | 113 +- audio/wavaudio.c | 101 +- audio/wavcapture.c | 9 +- hw/audio/ac97.c | 44 +- hw/audio/adlib.c | 33 +- hw/audio/asc.c | 22 +- hw/audio/cs4231a.c | 24 +- hw/audio/es1370.c | 28 +- hw/audio/gus.c | 13 +- hw/audio/hda-codec.c | 36 +- hw/audio/lm4549.c | 26 +- hw/audio/pcspk.c | 8 +- hw/audio/sb16.c | 30 +- hw/audio/via-ac97.c | 22 +- hw/audio/virtio-snd.c | 38 +- hw/audio/wm8750.c | 47 +- hw/display/xlnx_dp.c | 18 +- hw/usb/dev-audio.c | 20 +- replay/replay-audio.c | 51 +- replay/replay.c | 2 +- replay/stubs-system.c | 8 +- system/vl.c | 2 - tests/audio/audio-stubs.c | 69 + tests/audio/test-audio.c | 619 ++++++ ui/dbus.c | 20 +- ui/vnc.c | 6 +- util/module.c | 3 + audio/coreaudio.m | 201 +- audio/meson.build | 12 +- audio/trace-events | 46 + qemu-options.hx | 35 +- .../codeconverter/codeconverter/test_regexps.py | 1 - scripts/modinfo-generate.py | 146 +- tests/audio/meson.build | 23 + tests/meson.build | 1 + ui/meson.build | 3 + 62 files changed, 4983 insertions(+), 3914 deletions(-)
---
base-commit: ece408818d27f745ef1b05fb3cc99a1e7a5bf580
change-id: 20260216-audio-89652d2709f1
Best regards,
Signature · 1 line
Marc-André Lureau <[email protected]>